Jump to content
The simFlight Network Forums

Buttons and Switch Assignments - Key Press (Repeat While Held) Not Working


alexchard

Recommended Posts

Hello, 

I am trying to set up multiple PTT Switches in my Simulator using MSFS, FSUIPC and VPilot. 

I have 3 Buttons assigned to press the "Oemtilde" key however when I tick the "Key Press to repeat while held" check box it does not apply the setting when I press OK?

Does anyone have any idea why this might be happening? I've attached my FSUIPC7.ini file. 

Thanks,

Alex Chard

FSUIPC7.ini

Link to comment
Share on other sites

13 hours ago, alexchard said:

I have 3 Buttons assigned to press the "Oemtilde" key however when I tick the "Key Press to repeat while held" check box it does not apply the setting when I press OK?

This is because you have assigned to send the key press (@key) on button release - you are not sending any keys on button press:

Quote

1=UB,6,K192,8     -{Key press: '@key}-
2=UB,4,K192,8     -{Key press: '@key}-
3=UJ,0,K192,8     -{Key press: '@key}-

If you want to send the key repeatedly while the button is being held, you need to assign on the button press not release.

Link to comment
Share on other sites

6 minutes ago, alexchard said:

John, is it possible to have one button press that can send two Keyboard commands at the same time?

Yes - just comment out the first assignment in your ini (i.e. insert a semi-colon after the = sign on the assignment line in your FSUIPC7.ini) when you have the the button assignments panel open, then press the Reload all buttons button once you have saved the changes. Next, assign the second keypress to the button then click Ok. Then, open the button assignments panel again, remove the semi-colon you inserted to comment-out the first assignment in your FSUIPC7.ini and save the file, then click the Reload all buttons button again.

Or you can just duplicate the assignment line in your ini, update the assignment line number to make it unique, and then change the key code (the number after the K) to the key code of the key you want to send - no point changing the comment as this will get rewritten based upon the actual assignment.

John

Link to comment
Share on other sites

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.