Something about this usage that is preventing the While statement to work...
Code: Select all
Gui, Add, Button, gok1 x9 y582 w306 h440 HWNDhScrolla
;[...]
ok1:
while GetKeyState("LButton","P")
{
MouseGetPos, MouseX, MouseY, MouseWin, MouseCtl, 2 ;Get MouseCtl
ControlClick, x%MouseX% y%MouseY%, %MainTitle%, , Left ;ElSCP1 is the Navigator control
Sleep 10
}
Return
What could be going on here?
OH WAIT!!! is it because ok1: is firing off when the mouse button is released???!!! Damn. I bet that's it.
Thank you!
R