Code: Select all
Send, ^{r}
Sleep,1000
Send, {Enter}
Code: Select all
Send, ^{r}
Sleep,1000
Send, {Enter}
Code: Select all
Send ^{r}{Sleep 100}{Enter} ; 100 = 1s
Wouldn't this send the Sleep keyboard key a hundred times (which obviously would take some time - but how much might depend on key delay settings and send mode, I guess), which wouldn't be equivalent to Sleep (sure, obvious, if 100 = 1s). Well, if it works for the use case... but I would hesitate to call it "a better way", "more professional" or "simpler", which you asked for, Barney15. It's more "any other method". Edit: Not sure, if there could be side-effects in some programs.teadrinker wrote: ↑07 Apr 2020, 12:17For me this works:Code: Select all
Send ^{r}{Sleep 100}{Enter} ; 100 = 1s
The {Sleep 100} will simply sent the sleep key 100 times. There is no way in AutoHotkey_L to include a sleep command directly into the send string.teadrinker wrote: ↑07 Apr 2020, 12:17For me this works:Code: Select all
Send ^{r}{Sleep 100}{Enter} ; 100 = 1s
Code: Select all
Send ^{r}{1000}{Enter} ; sleep 1000ms before Enter
Code: Select all
setKeyDelay,1000 ; specify this in the auto-execute, or at the beginning of a logical thread (hotkey, timer, etc.)
send ^{r}{Enter}
Users browsing this forum: Google [Bot] and 295 guests