Jump to content
The simFlight Network Forums

Recommended Posts

Posted (edited)

I seemingly cannot get FSUIPC7 to “press” a button on a vJoy device.  I created vJoy device ID 1 using the Configure vJoy tool, and am monitoring it using vJoy monitor.  I can use the vJoy feeder demo app and see the button states toogle in the viewer as expected.  Then I wrote a LUA script which is running as I can see in the log file.  It loops endlessly while writing a ‘1’ to offset 0x3340 as below

while true do

    ipc.writeUD(0x3340, 1)

    sleep(1000)

end

However, there is no change in status in vJoy monitor.  I would expect to see button 1 set on vJoy ID #1, similarly to using the feeder app.  I can confirm that the value 0x01 is being written into the correct offset 0x3340 by putting a watch on that location.  FSUIPC is just not delivering that news to vJoy, or so it appears.

There are no errors in the log.  In debug mode I can see the execution repeating the lines over and over in the while loop continuously.  The script has not terminated either with or without errors.

What could I be doing wrong?  I feel like I must be missing a basic concept here as this appears to be a rather simple task.

P.S.,

My reason for wanting to do this is that the Airbus A320 sidestick has but one trigger on it for radio comms PTT.  For SayIntentionsAI ATC app, it would be nice to have a second intercom PTT button somewhere to talk to the AI copilot and/or cabin crew.  For this I need vJoy to interface with SayIntentionsAI.

Configuration:

FSUIPC 7.5.1, Windows 11 24H2, MSFS 2020, Brunner CLS-E Joystick (A320 version), full A320 hardware cockpit from Skalarki, SayIntentionsAI, ActiveSky for MSFS.

Edited by Holt
missing info

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.