November 15, 20241 yr Does anyone know: in AAO, how to assign a combo keypress to a script activation. Such as ALT-H? I thought I knew but it seems I don’t. I assumed selecting the script as the Key Down Event, selecting Keyboard as the Device, putting ALT in the Assigned Combo box, with suppressed key-down, and H in the Assigned button/key box would do it. But it doesn’t.
November 15, 20241 yr Commercial Member Not sure, but Alt is not really a key but a modifier. Might be related to that. I will check it out. But: why not use Alt+H as the assigned key? And: "suppress" means that when "Alt" is pressed, the event will NOT fire. Edited November 15, 20241 yr by Lorby_SI LORBY-SI
November 15, 20241 yr Commercial Member Please note: when you assign such a keyboard combination in AAO, you press the keys one after the other, not at the same time, like you do in actual operation. Edited November 15, 20241 yr by Lorby_SI LORBY-SI
November 16, 20241 yr Author If I try to enter ALT H as a keypress, as soon as I press ALT, it is recognised as a keypress itself immediately. Not a modifier to another keypress.
November 16, 20241 yr Commercial Member 4 hours ago, kevinbuckley70 said: If I try to enter ALT H as a keypress, as soon as I press ALT, it is recognised as a keypress itself immediately. Not a modifier to another keypress. That's OK, that is how it works in AAO. Select your Key Down and Key Up Events Set Device to "Keyboard" Click on the green LED next to "Press button/key" or inside the textbox Press "Alt" and release it => the box says "LMenu" Press "H" and release it => the box says "LMenu H" Save The Key Down Event is now bound to the Alt+H keyboard combo (=in actual operation, both keys have to be pressed at the same time - it is only when assigning them that you have to press them in sequence) Edited November 16, 20241 yr by Lorby_SI LORBY-SI
November 16, 20241 yr Commercial Member Not sure yet what the deal is with a keyboard key being used as Combo button when the acutal assigned key is also from the keyboard. That doesn't seem to work at all. But - I'm not sure that it is even necessary, since you can assign every keyboard combo you want directly, as explained above. What does work is using a keyboard Combo with a button from other hardware, like a joystick. Edited November 16, 20241 yr by Lorby_SI LORBY-SI
November 16, 20241 yr Author 2 hours ago, Lorby_SI said: That's OK, that is how it works in AAO. Select your Key Down and Key Up Events Set Device to "Keyboard" Click on the green LED next to "Press button/key" or inside the textbox Press "Alt" and release it => the box says "LMenu" Press "H" and release it => the box says "LMenu H" Save The Key Down Event is now bound to the Alt+H keyboard combo (=in actual operation, both keys have to be pressed at the same time - it is only when assigning them that you have to press them in sequence) Ah OK. I'll try that. Thanks.
November 16, 20241 yr Author So I tried entering the ALT and J in sequence and, when pressing the ALT key, that correctly enters as LMENU. If I then press the J key, it enters J but gives a warning beep. If I save that key binding, when I hit ALT J I just get the beep and the script is not triggered. You can see this in the screen capture video here: https://1drv.ms/v/s!AmqUzCY4Oc9bgtISzE-nOkYA_wpKFQ?e=Z6J7Rk if I change ALT J to CTRL J, it works just fine. I have tried a handful of different ALT + key and they all give the beep and don't work. I thought maybe these ALT codes were maybe bound in MSFS and so denied access but I checked and picked some which aren't used in MSFS, and that's not the case. And even if a CTRL + key IS bound in MSFS, it doesn't stop AAO hooking it as well. Any ideas why AAO, or my installation, won't allow me to bind ALT keys? Edited November 16, 20241 yr by kevinbuckley70 Mistake in the text
November 16, 20241 yr Commercial Member 2 hours ago, kevinbuckley70 said: Any ideas why AAO, or my installation, won't allow me to bind ALT keys? No, sorry. It is the same here. It is independent from the sim and the beep is not coming from AAO. Must be a Windows thing, this used to work a while (months/years) ago. Edited November 16, 20241 yr by Lorby_SI LORBY-SI
November 16, 20241 yr Commercial Member OK, I found a fix for the Alt key. I don't know when this happened, but apparently at some point AAO stopped understanding system keys like this one. This bugfix will be part of version 4.50 btw. the "bing" is a Windows message. Depending on what app currently has the focus, it is telling you that you are trying to shortcut to a menu that isn't there. LORBY-SI
November 17, 20241 yr Author 12 hours ago, Lorby_SI said: OK, I found a fix for the Alt key. I don't know when this happened, but apparently at some point AAO stopped understanding system keys like this one. This bugfix will be part of version 4.50 btw. the "bing" is a Windows message. Depending on what app currently has the focus, it is telling you that you are trying to shortcut to a menu that isn't there. Cool. I circumvented the problem by using CTRL-SHIFT which works fine and I found 14 characters which I can use directly or unbind from MSFS along with CTRL-SHIFT. If you fix the ALT problem that will be great. But for now, I have what I need. Thanks for the great response.
December 12, 20241 yr Author I'm a bit further forward in my Streamdeck/AAO journey but now struggling to understand something. I'm trying to use the Streamdeck to control some functions of my aeroplane (Milviz C310R) via AAO and some other buttons to control the tour guide/mentor function, enable/disable and PTT in Sayintentions. So the Streamdeck simulated keypresses go to different destinations depending upon which button is pressed. Is that even possible? Whilst searching for answers to this, I heard about the AAO Streamdeck plugin. I'll take a look at that. Is that what I need to explicitly map some keys to AAO? Or is that just a VR panel?
December 12, 20241 yr Commercial Member 3 hours ago, kevinbuckley70 said: Is that even possible? Use a script and the (FOCUS) command to target specific apps for VKeys. Example: (FOCUS:flightsimulator2024) (SPLIT:100) (VKD:42-170-160) (VKD:46-174-67) (SPLIT:100) (VKU:46-174-67) (VKU:42-170-160) This script sends Shift-C to the sim. On the Script Editor, after typing in the FOCUS part, you can get the VK codes using the "Insert vKey" button. The (SPLIT:100) parts are important, because MSFS doesn't understand these virtual keyboard strokes when they happen too fast. 3 hours ago, kevinbuckley70 said: I'll take a look at that. Is that what I need to explicitly map some keys to AAO? With the AAO StreamDeck plugin you configure everything (simulator variables, events, scripts etc.) in the Elgato software as AAO actions (Toggle, OnOff, Sliders, SteamGauges etc.). They don't appear as buttons in AAO at all, the plugin just uses the AAO WebAPI to talk to the sim. All SD Profiles for AAO that you find on flightsim.to were made for/with this plugin. Examples: Flightsim.to - Profile of Chris_PU_A320 Flightsim.to - Profile of Guenseli Make sure to look around for other profiles too, there are many more. 3 hours ago, kevinbuckley70 said: Or is that just a VR panel? The plugin itself has nothing whatsoever to do with VR. There is a separate feature that lets you stream the SD profiles that you made for the AAO plugin to an AAO gauge - that you can view in VR. Edited December 12, 20241 yr by Lorby_SI LORBY-SI
December 12, 20241 yr Author Thanks for the quick response. The other problem I am facing is that the two buttons I want to assign for SayIntentions actions are basically PTT buttons. So I want the StreamDeck to emulate holding a key down whilst I hold the button down on the StreamDeck and for that button hold to be passed to SayIntentions. I realise this is not actually an AAO problem! But I wasn't successful finding an easy answer to this on the StreamDeck forum, so I just wondered if you know how to do that.
December 12, 20241 yr Commercial Member 4 hours ago, kevinbuckley70 said: if you know how to do that. I do. Consider the script above, you'll see that there are VKD and VKU codes - for Key Down and Key up. For what you want to do, you would split the script in two - one Script handles the key down, the other the key up. (FOCUS:flightsimulator2024) (SPLIT:100) (VKD:42-170-160) (VKD:46-174-67) (FOCUS:flightsimulator2024) (SPLIT:100) (VKU:46-174-67) (VKU:42-170-160) On the StreamDeck you would use for example the "Event" Action from the AAO Plugin, and assign the two scripts to the Key Down and Key Up events. Then this button should work as you intend. LORBY-SI
Create an account or sign in to comment