September 11, 20241 yr Hello, I would like to use a Toggle switch to switch between various views I have saved. Basically Alt+1, Alt+2, Alt+3, etc It works with the Hotkey but there is no option for a second state image so I can easily see what view is selected. When I select a Toggle , I am unsure what type of Key Down Event to use and how I would send Alt+1 to the sim. How do I go about this, or, is there a better way? Thanks!
September 11, 20241 yr Commercial Member You can send virtual keyboard events with AAO. A script is recommended for doing that, which first sets the Windows FOCUS on flightsim before sending the keyboard key. There are examples for that in the AAO manual. If the scan codes of your keyboard are the same as on mine, the script looks like this: (FOCUS:flightsimulator) (SPLIT:100) (VKD:56-184-164) (VKD:2-130-49) (SPLIT:100) (VKU:2-130-49) (VKU:56-184-164) The SPLITs are necessary to slow down the script, otherwise MSFS doesn't "get" the keyboard keys. Is there a better way: probably, by using the camera variables from the MSFS SDK. But that process is quite involved. Camera events don't work, they have been INOP since the MSFS Alpha. LORBY-SI
Create an account or sign in to comment