Jump to content
Sign in to follow this  
lancealotg

Multiple functions with one key press

Recommended Posts

Great job on Linda.I am using the MCP combo and would like to program one key on the MCP to perform a Lvar function and a keyboard combination at the same time.For instance, I would like to turn on the taxi light and at the same time turn on FSpassengers music (Ctrl + Shift + T).Is this possible and how would I go about it.Thanks

Share this post


Link to post
Share on other sites

Thank you!At present, this is not directly possible, but it is definitely (is definitely right, Artem?) on the to do list ... but it needs a bigger workaround with the LINDA GUI. So do not aspect this with one of the next updates.Would take some time ...A workaround would be to make your on LUA script for this, means just copy out the both codes and put it into a single function and assign this.If ou don't know how to do, just drop a note, we will show you the lines here ...


Guenter Steiner
--------------------------------------------------------------------------------------

Betatester for: A2A, LORBY, FSR-Pillow Tester
--------------------------------------------------------------------------------------

Share this post


Link to post
Share on other sites
Thank you!At present, this is not directly possible, but it is definitely (is definitely right, Artem?) on the to do list ... but it needs a bigger workaround with the LINDA GUI. So do not aspect this with one of the next updates.Would take some time ...A workaround would be to make your on LUA script for this, means just copy out the both codes and put it into a single function and assign this.If ou don't know how to do, just drop a note, we will show you the lines here ...
Thanks for responding,I have made a few keys that have multiple codes in one function but not with a keyboard combination. I don't know how to code that.For example, I have a start up function that turns on both batteries, both avionics and turns on the no smoking sign.Could you explain how the keyboard combination (Ctrl + Shift + T) would look in the following codefunction Startup_int () ipc.writeLvar("L:RightBatSwitch", 1) ipc.control(66587, 8028) ipc.sleep(250) ipc.writeLvar("L:LeftBatSwitch", 1) ipc.control(66587, 8028) ipc.writeLvar("L:RightAvionicsMasterGuard", 1) ipc.control(66587, 8026) ipc.sleep(400) ipc.writeLvar("L:RightAvionicsMaster", 1) ipc.control(66587, 8028) ipc.sleep(100) ipc.writeLvar("L:LeftAvionicsMasterGuard", 1) ipc.control(66587, 8026) ipc.sleep(400) ipc.writeLvar("L:LeftAvionicsMaster", 1) ipc.control(66587, 8028) ipc.sleep (300) ipc.writeLvar("L:NoSmokingSigns", 1) ipc.control(66587, 8028) ipc.sleep(10) ipc.control(66587, 74)endThanks

Share this post


Link to post
Share on other sites

I'm only at my laptop now, so I just explain the things out of my brain...Have a look into the LINDA library of AivlaSoft EFB (linda/libs/lib-aivlasoft.lua)there you find ome keypressesits simple:the LUA code is -- CTRL + SHIFT + U ipc.keypress(85,11)so STRG+SHIFT+T seems to be (84, 11).THese keys are explained in the FSUIPC advanced users manual - as I say, its just out of my brain.You can make now your own library and functions as you did with the startup_int already and insert the ipc.keypress


Guenter Steiner
--------------------------------------------------------------------------------------

Betatester for: A2A, LORBY, FSR-Pillow Tester
--------------------------------------------------------------------------------------

Share this post


Link to post
Share on other sites
I'm only at my laptop now, so I just explain the things out of my brain...Have a look into the LINDA library of AivlaSoft EFB (linda/libs/lib-aivlasoft.lua)there you find ome keypressesits simple:the LUA code is -- CTRL + SHIFT + U ipc.keypress(85,11)so STRG+SHIFT+T seems to be (84, 11).THese keys are explained in the FSUIPC advanced users manual - as I say, its just out of my brain.You can make now your own library and functions as you did with the startup_int already and insert the ipc.keypress
Thank you for being so generous with your time.

Share this post


Link to post
Share on other sites

The other workaround is to assign and call the Lua action form LINDA and at the same time make an assignment in the FSUIPC for the same button to simulate the keypress. But this will work only in case of joysticks assignments.And, yes, I'm thinking about the multiple actions assignments in the future versions.


Artem Crum, EASA PPL
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
LINDA Lua Integrated Non-complex Device Assigning
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

Share this post


Link to post
Share on other sites
Thank you for being so generous with your time.
you are very welcome!

Guenter Steiner
--------------------------------------------------------------------------------------

Betatester for: A2A, LORBY, FSR-Pillow Tester
--------------------------------------------------------------------------------------

Share this post


Link to post
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
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...