Jump to content
The simFlight Network Forums

Assigning the same button(s) to different functions


Recommended Posts

Hi

Assigning the same button(s) to different functions

-------------------------------------------------------------

Background:    Running VRS Superbug  / TacPack with Saitek X52 Pro.

--------------------------------------------------------------

OBJECTIVE & PROBLEM:    I would like to know if it is possible to have the same button or buttons assigned for different functions based on Conditional Programming through the INI file.   I would like to be able to hold the Pinkie Lever to turn a FLAG on and use an existing pre-assigned button to execute a new action while I am holding the Pinkie Lever.

I need to stick to the INI in-line code.  I strongly prefer not to look at further software - Linda, SDK etc.

-------------------------------------------------------------

I have looked at the User Guide and Advance Guides and googled articles but I must be doing something wrong if the above is possible.

I have assigned most of the buttons on the Yoke and the Throttle and all work fine which serves the navigation requirements.  However, I will need to look at the Weaponry.

 

Charles Abela

Specs: Windows 7 Premium 64 BIT, Intel i7 5820, 16G Ram, NVIDIA GTX 970, Monitor 1920 x 1080 x 16, FSX Acceleration.

Registered copy of latest FSUIPC4. Purchased 20 September 2017

-----------------------------------------

Current Settings

[Buttons.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]

0=P0,8,K77,10    -{Key press: ctl+M}-

1=P0,9,K82,10    -{Key press: ctl+R}-

2=P0,10,K65,10 -{Key press: ctl+A}-

3=P0,11,K77,8    -{Key press: M}-

4=P0,12,K65,9    -{Key press: shft+A}-

5=P0,13,K78,8    -{Key press: N}-

6=P0,4,K67,9      -{Key press: shft+C}-

7=R0,7,C65588,0               -{BRAKES}-

8=P0,6,K191,8    -{Key press: /?key}-

9=P0,24,K71,8    -{Key press: G}-

10=P0,26,K90,8 -{Key press: Z}-

11=P0,25,K119,8               -{Key press: F8}-

12=P0,23,K117,8               -{Key press: F6}-

13=P0,32,K49,8 -{Key press: 1}-

14=P0,36,K50,8 -{Key press: 2}-

15=P0,38,K57,8 -{Key press: 9}-

16=P0,34,K48,8 -{Key press: 0}-

17=P0,39,K51,8 -{Key press: 3}-

18=P0,33,K52,8 -{Key press: 4}-

19=P0,35,K86,8 -{Key press: V}-

20=P0,37,K53,8 -{Key press: 5}-

21=H0,19,K38,10               -{Key press: ctl+Up}-

22=P0,21,K40,10               -{Key press: ctl+Down}-

23=P0,22,K37,10               -{Key press: ctl+Left}-

24=P0,20,K39,10               -{Key press: ctl+Right}-

25=P0,2,K87,9    -{Key press: shft+W}-

26=P0,3,K80,9    -{Key press: shft+P}-

27=P0,14,K71,9 -{Key press: shft+G}-

28=P0,5,K72,10 -{Key press: ctl+H}-

 

 

[Keys.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]

1=111,8,65853,0                -{Num/: Press=SPOILERS_ARM_TOGGLE }-

Link to comment
Share on other sites

MOVED FROM THE SUBFORUMS!

PLEASE ALWAYS POST SUPPORT QUESTIONS TO THE MAIN SUPPORT FORUM, i.e. HERE. Otherwise they may not be seen and answered. The subforums are for reference information not on-going exchanges which eventually scroll off into history.

6 hours ago, Charles Abela said:

I would like to know if it is possible to have the same button or buttons assigned for different functions based on Conditional Programming through the INI file.

Yes. There is a section, with examples, in the Advanced User's guide, a large part of the section on Button Programming. You can have conditions based on buttons or switches, or on offset values, or a combination. 

6 hours ago, Charles Abela said:

I would like to be able to hold the Pinkie Lever to turn a FLAG on and use an existing pre-assigned button to execute a new action while I am holding the Pinkie Lever.

There are button flags which you can turn on and off. and test.

6 hours ago, Charles Abela said:

I have looked at the User Guide and Advance Guides and googled articles but I must be doing something wrong if the above is possible.

Well, you posted a list of your button assignments, but I don't see any attempt made to do any conditional programming, so I can't really comment on what you are doing wrong!

If you post what you've tried and explain what you want it to do then maybe I can help more specifically.

Unfortunately, I am away visiting my brother for a long weekend and after this morning I won't be back till Monday 2nd.

Pete

P.S. Additional, forgotten above. The first appendix to the Advanced guide gives examples from a user.

 

Link to comment
Share on other sites

Assigning the same button(s) to different functions

-------------------------------------------------------------

Background: Running VRS Superbug  / TacPack with Saitek X52 Pro.

--------------------------------------------------------------

Hi Pete,

Thank you for your comments. Went through the documentation again and got the Conditional Instruction to work.  I was slack with the numbers and left the wrong parameters at the end, 11 instead of 8 etc., when I was copying and pasting.  I skipped by mistake the 'Initial Buttons' instruction.  Will include it if I see something going wrong.

I used the Pinkie with the FLAG to change the function of the Toggle 6 Silver Button on the Yoke. 

It re-arms and activates the GUN or re-arms and activates AIM-120.

I am attaching a copy of INI file.  Heavily commented ... apologies. Please let me know if there is a better way. Not urgent.

Charles Abela

FSUIPC4.ini

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.