Send Keys with a delay
Posted: 03 Aug 2017, 21:28
Greetings,
I'm trying to figure out how to add a delay between each key pressure with lmc_send_keys() function.
There was apparently such a function on HIDMacros: HIDMacros.SendKeysSlow
I tried googling that but couldn't find anything so according to this file (https://github.com/me2d13/luamacros/blo ... ndKeys.pas) I tried to work around line 203
So I tried:
lmc_send_keys('^+{F1}', _, _, 500)
lmc_send_keys('^+{F1}', false, '', 500)
lmc_send_keys('^+{F1}', true, '', 500)
None of those lines worked and they all instantly press the three keys.
Is there an existing solution for this problem ? I actually want:
I'm trying to figure out how to add a delay between each key pressure with lmc_send_keys() function.
There was apparently such a function on HIDMacros: HIDMacros.SendKeysSlow
I tried googling that but couldn't find anything so according to this file (https://github.com/me2d13/luamacros/blo ... ndKeys.pas) I tried to work around line 203
Code: Select all
//Function SendKeys(SendKeysString : PChar; Wait : Boolean; ToWindow : string = ''; Delayms: Integer = 0) : Boolean;
lmc_send_keys('^+{F1}', _, _, 500)
lmc_send_keys('^+{F1}', false, '', 500)
lmc_send_keys('^+{F1}', true, '', 500)
None of those lines worked and they all instantly press the three keys.
Is there an existing solution for this problem ? I actually want:
Thanks !Ctrl DWN -> Wait 50ms -> Shift DWN -> Wait 50ms -> F1 DWN -> Wait 50 ms -> Ctrl, Shift, F1 UP