Page 1 of 1

Wait / Pause in Send()

Posted: 12 Apr 2021, 05:16
by Coiler
I'm not sure how difficult this would be to implement, but I think it would fantastic to have the ability to wait in a Send() command. I believe the best way to handle it would be to allow the user to define a few wait times at startup, then assign those wait times to operators. I actually implemented this in the AHK+HTML binding setup I've been working on, and its very convenient:

Code: Select all

SetWait("w",11)
SetWait("W",33)

Send( "{a down}|W|{a up}|w|{b down}|W|{b up}" )
One situation where this would be really useful is with input mode, where you can't use the normal key delays.

Re: Wait / Pause in Send()

Posted: 12 Apr 2021, 05:29
by HotKeyIt
In AHK_H you can use:

Code: Select all

Send( "{a down}{33}{a up}{11}{b down}{33}{b up}" )

Re: Wait / Pause in Send()

Posted: 12 Apr 2021, 08:16
by Coiler
Sweet, I did not know this! Thanks!

Edit: I did not notice the H suffix until my joy fell onto the keyboard. I haven't tried messing around with that, yet. Thanks for the info, though!