one time settimer in onmessage function will create a dead loop
Posted: 29 Nov 2021, 02:33
[Moderator's note: Topic moved from Bug Reports.]
ahk 1.1.33.10
win10 x64
In the following example, the count does not increase when the mouse stays on the gui and doesn't move anymore.
But in the following example, the count keeps increasing even if the mouse doesn't move anymore.
ahk 1.1.33.10
win10 x64
In the following example, the count does not increase when the mouse stays on the gui and doesn't move anymore.
Code: Select all
Gui Show, w100 h100, Window
OnMessage(0x200, "WM_MOUSEMOVE")
return
GuiClose:
ExitApp
return
WM_MOUSEMOVE()
{
static zzz
aaa:
zzz++
ToolTip, %zzz%
return
}
Code: Select all
Gui Show, w100 h100, Window
OnMessage(0x200, "WM_MOUSEMOVE")
return
GuiClose:
ExitApp
return
WM_MOUSEMOVE()
{
static zzz
SetTimer, aaa, -100
return
aaa:
zzz++
ToolTip, %zzz%
return
}