I did my testings in Windows 10 (build 19045.3693), AHK 2.0.10.
1) The script freezes while an AHK GUI titlebar button (eg Close) is held:
Code: Select all
#Requires AutoHotkey v2
gGui := Gui()
gGui.Show("w200 h200")
gGui.OnEvent("Close", (*) => ExitApp())
SetTimer((*) => ToolTip(A_TickCount), 100)
Code: Select all
#Requires AutoHotkey v2
CoordMode "Mouse", "Screen"
; SendMode "Event"
gGui := Gui()
gGui.Show("w200 h200")
gGui.OnEvent("Close", (*) => ExitApp())
SetTimer((*) => ToolTip(A_TickCount), 100)
*LButton::
{
MouseGetPos(&X, &Y, &hWnd, &hCtrl)
MouseClick("Left", X, Y, 1, 0, "D")
}
*LButton Up::MouseClick("Left", , , 1, 0, "U")
4) There is about a 1 pixel wide region where a LButton remap will freeze the script:
Code: Select all
#Requires AutoHotkey v2
gGui := Gui()
gGui.Show("w200 h200")
gGui.OnEvent("Close", (*) => ExitApp())
SetTimer((*) => ToolTip(A_TickCount), 100)
F1::LButton