flip2405 Posted September 30, 2008 Share Posted September 30, 2008 $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. Link to comment Share on other sites More sharing options...
DW1 Posted September 30, 2008 Share Posted September 30, 2008 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Ø^¦,^ÇÈ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 AutoIt3 Online Help Link to comment Share on other sites More sharing options...
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