QPC based timer seems to affect sleep

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
evilC
Posts: 4824
Joined: 27 Feb 2014, 12:30

QPC based timer seems to affect sleep

27 Feb 2014, 13:06

http://bpaste.net/show/Iipv3P91o7qZu0T4FdCS/

In my thread on the regular AHK forums, obeeb seems to reckon that the reason the Send seems to stop execution is that a Send {a} is actually interpreted like Send {a down}; Sleep 50; Send {a up}.

This seems to be correct.

I do have a workaround, but thought I would ask if anyone else could shed more light on the subject.

Cheers
obeeb
Posts: 140
Joined: 20 Feb 2014, 19:15

Re: QPC based timer seems to affect sleep

01 Mar 2014, 20:15

This http://ahkscript.org/boards/viewtopic.p ... 466#p13581 seems to be the answer.
lexicos wrote:Your callback is being called on a thread other than the script's main thread. This causes difficult-to-predict behaviour since AutoHotkey is not designed to be multi-threaded. It's almost surprising that the script works at all.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], peter_ahk, Pianist and 323 guests