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.

Virtual Keyboard / views

Featured Replies

Hi there,

I would like to assign some views to a voice command (overhead, external view, drone view etc.). My initial thoughts were to use a virtual event for this, where I assign the key combo I use now on my real keyboard tot a virtual event on the virtual keyboard. This doesn't seem to work however. I try to find a solution in the manual, but couldn't find it. Can you help me out with this issue?

 

Kind regards,

Vincent

 

  • Commercial Member
1 hour ago, Vincentbreda said:

This doesn't seem to work however.

Why not?

Option 1:
In general, virtual keyboard keys only work when the MSFS window has the focus. If you can't ensure that, use a script that first sets the focus on MSFS, then sends the virtual keys.

(FOCUS:flightsimulator) (SPLIT:100) (VKD:29- 157-162) (VKD:56-184-164) (VKD:20-148-84) (SPLIT:100) (VKU:20-148-84) (VKU:29-157-162) (VKU:56- 184-164)

The virtual key codes you get with the button "Insert VKey" on the RPN script editor.

Option 2:
Alternatively you can also use vJoy. Install vJoy, create a virutal joystick, create the assignments in AAO to virtual joystick buttons on the vJoy device, then assign them to the cameras in MSFS

Option 3:
Use RPN scripts to switch the views directly instead of virtual keys/buttons.
A fellow simmer made a camera button profile for the StreamDeck that has scripts with all kinds of views, you can find it on flightsim.to (it is for the iniBuilds A310, disregard the StreamDeck part, you only want the scripts package for the views)
Here are a few script examples:

External camera:
3·(>A:CAMERA·STATE,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)

Showcase camera:
5·(>A:CAMERA·STATE,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)

Drone
4·(>A:CAMERA·STATE,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)

Cockpit camera:
2·(>A:CAMERA·STATE,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)

Pilot View
2·(>A:CAMERA·STATE,·Enum)·1·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·1·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)

FO View
2·(>A:CAMERA·STATE,·Enum)·1·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·5·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)

Instruments 1
2·(>A:CAMERA·STATE,·Enum)·2·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)

Instruments 2
2·(>A:CAMERA·STATE,·Enum)·2·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·1·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)

Quickview 1 (left)
2·(>A:CAMERA·STATE,·Enum)·3·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·0·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)

Quickview 2 (right)
2·(>A:CAMERA·STATE,·Enum)·3·(>A:CAMERA·VIEW·TYPE·AND·INDEX:0,·Enum)·1·(>A:CAMERA·VIEW·TYPE·AND·INDEX:1,·Enum)
 

etc.

Edited by Lorby_SI

LORBY-SI

  • Author

Thanks a lot for your in-depth reply, I'm going to try your solutions to see what works best for me!

 

Kind regards,

 

Vincent

 

These are cool and good to know different options instead of sending keyboard events.

Any way of making these views slow down? They teleport directly into the view as opposed to smoothly moving like the keyboard shortcut does..

  • Commercial Member
8 hours ago, C414AC said:

These are cool and good to know different options instead of sending keyboard events.

Any way of making these views slow down? They teleport directly into the view as opposed to smoothly moving like the keyboard shortcut does..

Try splitting the RPN code. Instead of setting the camera state and view type index 0 from scratch every time, set the camera state and correct view type index 0 once and change only the view type index 1. Then the camera will float to the new position. Doesn't work for everything, meaning you may have to trial&error the parameters until the camera behaves like you want it to. If it can.

Here is the spec for these variables:

Camera Variables (flightsimulator.com)

 

Edited by Lorby_SI

LORBY-SI

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.