Page 1 of 1

Press F12 and then type LOL

Posted: 18 Apr 2016, 02:31
by zqckfair
Hello

How can I type something while pressing another key ?
I'm using LuaMacros.

Is it possible with something like lmc_send_keys ("{F12 down}LOL{F12 up}") ?

Re: Press F12 and then type LOL

Posted: 18 Apr 2016, 08:03
by admin

Re: Press F12 and then type LOL

Posted: 18 Apr 2016, 13:16
by zqckfair
Yes, I have, but I still don't know how to keep a key down, while in the same time : typing something else.
In some scripting language, we can do that.
The question is : is it possible to hold down a key with luamacros ?
Exemple :

Code: Select all

elseif (button == string.byte('H')) then lmc_send_keys('{F10 Down}Hello world{F10 Up}')
-- This would Write Hello world while holding the F10 key down.

Re: Press F12 and then type LOL

Posted: 19 Apr 2016, 07:33
by admin
Sorry, overlooked that in your first post.
No, it's currently not possible... wouldn't be that complicated probably, but not implemented now.