Jump to content
The simFlight Network Forums

Set Button action in FSUIPC5.ini


Recommended Posts

Hello,

I am trying to assign 2 actions to buttons of my throttle using the technique explained in the Advanced Manual  (Format of buttons definition).

I am not a developer and all these things are not familiar to me.

I want to assign the TAB key to a button and the ENTER key to another one. After some studies, I wrote the following statements in the FSUIPC5.ini file but expected actions are not occurring:

16=P7,13,K,4     -{Shifts: TAB}-                       As there is no Key press, I have left K with no data... Is that correct?

20=P7,14,K13,8     -{Key press: ENTER }-      This one looks correct regarding the syntax but it does something else (full throttle...)

The statements in {...} are entered manually by me. 

Can someone help me fixing this?

Thanks

Bruno

Link to comment
Share on other sites

2 hours ago, Braudoux said:

I am trying to assign 2 actions to buttons of my throttle using the technique explained in the Advanced Manual  (Format of buttons definition).

But why are you doing this? If you want to assign a key press to a button, just use the left-hand side of the Buttons + Switches assignment UI panel. Just do that and then take a look at how the assignment line looks in your FSUIPC5.ini file afterwards.

2 hours ago, Braudoux said:

The statements in {...} are entered manually by me. 

You shouldn't do that either - these comments/annotations are automatically generated.

2 hours ago, Braudoux said:

16=P7,13,K,4     -{Shifts: TAB}-                       As there is no Key press, I have left K with no data... Is that correct?

No. You need a number - use 0 if assigning to a modifier on its own, and you need to add 8 to the shifts, so should be:

16=P7,13,K0,12

You need to do this one by editing your ini, as you need to give a non-modifier key when assigning in the UI.

2 hours ago, Braudoux said:

20=P7,14,K13,8     -{Key press: ENTER }-      This one looks correct regarding the syntax but it does something else (full throttle...)

Maybe the ENTER key is assigned somewhere to the full throttle control?
Try activating logging for Buttons and Key operations, as well as Events (non-axis controls) and see what is logged when you press the assigned button.

If you require any further assistance, please also attach your FSUIPC5.ini file the next time so I can see your actual assignments.

And, if you are manually editing your FSUIPC5.ini file, make sure that you reload the changes in the UI if FSUIPC is running.

John

Link to comment
Share on other sites

16 hours ago, John Dowson said:

But why are you doing this? If you want to assign a key press to a button, just use the left-hand side of the Buttons + Switches assignment UI panel. Just do that and then take a look at how the assignment line looks in your FSUIPC5.ini file afterwards.

Hello John,

I did that because the TAB and ENTER buttons are not recognized when I press them...

Now, thanks to your latest explanations, I have understood and successfully set my 2 buttons. 
Thanks for your patience but keep in mind that what is obvious for you is not always the same for us...

Cheers

Bruno

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

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