dfdub Posted November 20, 2007 Posted November 20, 2007 I am trying to run this very basic example script (pulled directly from AutoIt Help) and receiving errors. $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 ) MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) The error message is: "Error: Subscript used with non-Array variable." I have tried declaring $coord and have stared at this simple yet bothersome problem for several hours now. Any thoughts?
Jex Posted November 20, 2007 Posted November 20, 2007 $coord = PixelSearch( 0, 0, 20, 300, 0xFF0000 ) If Not @error Then MsgBox(0, "X and Y are:", $coord[0] & "," & $coord[1]) If msgbox not open that mean PixelSearch cant find that color in that area. My scripts : Immediate Window , My Web Browser , Travian , Text Effect , Characters & Words per minute or second , Image Editor (ImageMagick) , Matrix style background effect ( Screensaver ) , Mail Sender , Protectlinks decoder and Rapidshare links checker , Fonts Fetcher , Region determine , Compare pictures , Gradient color box , Mouse Coordinates, Colors, Pixel Search things , Encrypt/Decrypt and embeding file in jpeg thing , Hard disk space monitor , Reflex game , Multiplayer Tic Tac Toe , WLM ( MSN ) personal message changer
dfdub Posted November 20, 2007 Author Posted November 20, 2007 But the script doesn't run at all and it gives an error that leads me to believe I have not declared the variable correctly.
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