Two functions for one key

Announcements, general discussion
Post Reply
peroni
Posts: 14
Joined: 16 Dec 2011, 15:33

Two functions for one key

Post by peroni » 28 Jan 2012, 23:18

Hello, I would like to be able to assign two functions to one key
For example the letter A when pressed on its own would turn on the taxi lights but when pressed while holding a button on my yoke it would trigger cabin lights.
Is that already possible and if so how?

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Two functions for one key

Post by admin » 30 Jan 2012, 08:30

Yes, you have to script such macro (using IsButtonPressed), have a look at http://www.hidmacros.eu/scripting.php#game
Petr Medek
LUAmacros author

peroni
Posts: 14
Joined: 16 Dec 2011, 15:33

Re: Two functions for one key

Post by peroni » 30 Jan 2012, 15:20

Thanks, I must have missed that.
This tool is incredibly powerful once you get the hang of it, thanks again, I'll send you a little donation.

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Two functions for one key

Post by admin » 31 Jan 2012, 08:07

Thanks for positive feedback and the donation :-)
Petr Medek
LUAmacros author

Post Reply