voidale Posted February 2, 2010 Author Posted February 2, 2010 (edited) 'Subscript used with non-Array variable' means your WinGetPos failed ... Maybe you've specified the wrong Window title ? try $size = WinGetPos("Vista V1.3") ; check for failure If Not $size = 0 Then MouseClick("left", $size[0], $size[1]) Else MsgBox(0, "error", "WinGetPos Error !") EndIf HTH, whim Thanks, got controlclick working again! Edited February 2, 2010 by voidale
somdcomputerguy Posted February 2, 2010 Posted February 2, 2010 (edited) $size = WinGetPos("[Vista V1.3]") won't work.$size = WinGetPos("Vista V1.3") will work.Notice the square brackets [ ] in first line's title. Edited February 2, 2010 by snowmaker - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
voidale Posted February 2, 2010 Author Posted February 2, 2010 $size = WinGetPos("[Vista V1.3]") won't work. $size = WinGetPos("Vista V1.3") will work. Notice the square brackets [ ] in first line's title. thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now