Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sending Keyboard Comands

Featured Replies

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!

spacer.png

  • 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 by Lorby_SI

LORBY-SI

  • 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!

  • 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 by Lorby_SI

LORBY-SI

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.

  • 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.

  1. Assuming that you have two computers, one "local" with the sim, the other "remote" with the master copy of AAO.
  2. 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
  3. 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)
  4. On the local AAO, open the "Add Button" dialog
  5. On the remote computer, "Test" the script
  6. 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 by Lorby_SI

LORBY-SI

  • 3 weeks later...
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).

 Pilotfly.gif?raw=1

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.