meowbits Posted May 6, 2009 Share Posted May 6, 2009 ERROR: unbalanced paranthesis expression. ; start pixel search for store icon $coord1 = PixelSearch(0,0,770,525, $storeIconColor,0) If IsArray($coord1) = 1 Then ; save coords as 'storeCoords' $storeCoords = ($coord1[0], $coord1[1]) MouseClick("left", $storeCoords[0], $storeCoords[1])Anyone know what the problem here is? Link to comment Share on other sites More sharing options...
WideBoyDixon Posted May 6, 2009 Share Posted May 6, 2009 ; start pixel search for store icon $coord1 = PixelSearch(0,0,770,525, $storeIconColor,0) If IsArray($coord1) = 1 Then ; save coords as 'storeCoords' $storeCoords[0] = $coord1[0] $storeCoords[1] = $coord1[1] MouseClick("left", $storeCoords[0], $storeCoords[1]) [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
Dougiefresh Posted May 6, 2009 Share Posted May 6, 2009 (edited) $storeCoords = ($coord1[0], $coord1[1])You need to define the dimensions of the array like below: dim $StoreCoords[2] = [$coord1[0], $coord1[1]] or if you're just going to copy the results from one variable to another, I think something like this would work: $StoreCoords = $coord1 Edited May 6, 2009 by Dougiefresh Link to comment Share on other sites More sharing options...
meowbits Posted May 6, 2009 Author Share Posted May 6, 2009 ; start pixel search for store icon $coord1 = PixelSearch(0,0,770,525, $storeIconColor,0) If IsArray($coord1) = 1 Then ; save coords as 'storeCoords' $storeCoords[0] = $coord1[0] $storeCoords[1] = $coord1[1] MouseClick("left", $storeCoords[0], $storeCoords[1]) THANKS!! 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