Look at the following example. Why is the value of variable “i” empty?
Code: Select all
Gui, Show, w500 h300
OnMessage(0x200, "WM_MOUSEMOVE")
return
WM_MOUSEMOVE() {
SetTimer, Test, -100
return
Test:
i=1
Loop 10 {
Sleep, 100
j=1
} Until (i!=j)
MsgBox, %i% - %j%
return
}