If I click the window slowly 8 times, WM_LBUTTONDOWN will trigger correctly 8 times.
I tried using other methods, such as OnEvent("Click", ) , but that didn't work either.
The only way I have found to safely receive all mouse events is to register the left button as a hotkey.
Code: Select all
t:=gui()
t.show("w200 h200")
OnMessage(0x0201, WM_LBUTTONDOWN)
WM_LBUTTONDOWN(*){
static id:=0
id++
ToolTip id
}