Jump to content

Recommended Posts

Posted (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! :D Edited by voidale
  • Replies 42
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

$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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...