July 18, 20223 yr Hi, i'm testing the latest version of AAO connected remotely to my PC which runs MSFS however for some reason I'm unable to forward any keyboard comands associated with joystick buttons (eg. Pause key to toggle Active Pause). I'm attaching a picture of my current config for this specific binding, any idea of what I'm doing wrong? Sorry about it, I've read the documentation but I can't get my head around it. Thanks!
July 18, 20223 yr Commercial Member 17 minutes ago, colmoschin94 said: AAO connected remotely to my PC which runs MSFS What does that mean? If AAO is running on a different PC than the sim, this cannot work. The virtual key in AAO is the same as pressing a key on the keyboard - on the PC where app is running. And that key will only be received by the app that currently has the focus on that PC. Edited July 18, 20223 yr by Lorby_SI LORBY-SI
July 18, 20223 yr Author Hi! Yes I'm using AAO via a Networked Simconnect setup (basically I've a streaming server running the SIM on one side and a small laptop that I use along with the controls to use the simulator), that explains why the virtual keyboard commands do not work. Is there any other viable way to toggle specific commands like "active pause" or "views" that are not listed in the default AAO actions/not work (I've read about the views having problems due to SDK limitations). Thanks!
July 19, 20223 yr Commercial Member I've been thinking about that, but I can't see a good solution. 1. Write a script or program that runs on the sim computer, that accesses the AAO WebAPI and sends virtual keypresses or joystck events (vJoy) to the sim as required. 2. Find out if these actions can be triggered in-sim, with a BVar or something. Then piggyback your code on the AAO LVar to BVar mapper. 3. Petition Asobo that they make sure that everything that can be assigned in the controller setup can also be triggered through SimConnect. Edited July 19, 20223 yr by Lorby_SI LORBY-SI
July 21, 20223 yr Hi colmoschin94, I just posted a HowTo on sending vitrtual keys to another computer. This is working for me toggling the active Pause on my networked computer. It is not easy, but allows me now to send any key command to a networked computer via VB scripting.
July 22, 20223 yr Commercial Member I may have another suggestion along the same lines as the solution of huha001, but without extra programming. I haven't tested it yet, but there is a good chance that it will work. Starting with version 2.31, AAO is able to send HTTP requests from inside a script. You should be able to use that feature to send button events to the WebAPI of a second copy of AAO, where those buttons are configured and trigger other things - like virtual keys. Assuming that you have two computers, one "local" with the sim, the other "remote" with the master copy of AAO. Now you set up a local AAO in offline mode on the sim computer with the WebAPI activated. Make sure to choose a different port than the WebAPI of the master AAO has. Let's assume the sim computer has the IP 192.168.178.44 and you are using port 36080 for the WebAPI In the "master" AAO, on the remote computer, create a script with the following code: (HTTPPOST:192.168.178.44:36080/webapi?dev=1234&chn=5&btn=1) On the local AAO, open the "Add Button" dialog On the remote computer, "Test" the script If all goes to plan, the button #1 should show up for device #1234 on channel #5 in the assignment dialog. You can then assign whatever you want to this button - for example a VKD/VKU script You can use whatever device, channel and button numbers you wish, as long as they are not conflicting with others. You can also implement press and release separately by adding a bval parameter press: (HTTPPOST:192.168.178.44:36080/webapi?dev=1234&chn=5&btn=1&bval=127) release: (HTTPPOST:192.168.178.44:36080/webapi?dev=1234&chn=5&btn=1&bval=0) All rules concerning web security apply. You will probably have to allow the chosen port through your firewall(s) etc. Edited July 22, 20223 yr by Lorby_SI LORBY-SI
August 8, 20223 yr On 7/18/2022 at 1:10 PM, colmoschin94 said: Hi! Yes I'm using AAO via a Networked Simconnect setup (basically I've a streaming server running the SIM on one side and a small laptop that I use along with the controls to use the simulator), that explains why the virtual keyboard commands do not work. Is there any other viable way to toggle specific commands like "active pause" or "views" that are not listed in the default AAO actions/not work (I've read about the views having problems due to SDK limitations). Thanks! I'm curious. Are you using the sim installed on a desktop from a laptop by way of remote software eg. Windows Remote Desktop or VNC? Wouldn't there be additional graphics lag? I vaguely remember trying this but I received some kind of licensing error (I might be mistaken here). Hardware: i7-8700k, GTX 1070-ti, 32GB ram, NVMe/SSD drives with lots of free space. Software: latest Windows 10 Pro, P3Dv4.5+, FSX Steam, and lots of addons (100+ mostly Orbx stuff).
Archived
This topic is now archived and is closed to further replies.