Sign in to follow this  
Followers 0
flip2405

array error

2 posts in this topic

$XY = PixelSearch(902,721,1023,767,0xF78F84)

ProcessClose("aim6.exe")

sleep(400)

mousemove($XY[0] , $XY[1] )

do you see somthing wrong with that i keep geting the

Line -1:

Error:Subscript used with non-Array variable.

Share this post


Link to post
Share on other sites



Yes I see something wrong. No error checking on the PixelSearch

With Error Checking:

$XY = PixelSearch(902,721,1023,767,0xF78F84)
If @error Then
    MsgBox(0, "Error", "PixelSearch did not find what you were looking for... Exiting script")
    Exit
EndIf
ProcessClose("aim6.exe")
sleep(400)
mousemove($XY[0] , $XY[1] )oÝ÷ Øêâ*.Á©íyÛhÁ¨­º{^¦,^Ç­Èb²Ëqë,~éZºÚ"µÍ[H  ÌÍÖBÚ[HÝÐ^J   ÌÍÖJBIÌÍÖHH^[ÙXÚ
L
ÌKLË
ÍËÎ
BTÛY
L
BÑ[ØÙÜÐÛÜÙJ ][ÝØZ[M^I][ÝÊBÛY

B[ÝÙ[[ÝJ ÌÍÖVÌH  ÌÍÖVÌWH

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0