astalol Posted April 8, 2014 Posted April 8, 2014 (edited) Hi ! So my question is very simple I believe.. But I haven't found the answer through my google researches. I'm trying to use a variable instead of coordinates for the function pixelsearch(). here's a example of what I have : Local $topleftslotX=1014 Local $topleftslotY=472 Local $botrightslotX=1044 Local $botrightslotY=542 $SearchResult = PixelSearch($topleftslotX, $topleftslotY, $botrightslotX, $botrightslotY, 0xffffff) If not @error Then ($MB_SYSTEMMODAL, "", "X and Y are: " & $SearchResult[0] & "," & $SearchResult[1]) EndIf Sadly it doesn't seem to work. Do you guys know if i'm doing something wrong ? Or is it simply impossible to use variables as arguments ? Thanks for any help! Edited April 8, 2014 by astalol
Developers Jos Posted April 8, 2014 Developers Posted April 8, 2014 (edited) Should work fine. .... and make sure you have read our forumrules as well. Jos Edited April 8, 2014 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
astalol Posted April 8, 2014 Author Posted April 8, 2014 hmm, I must have failed somewhere else then. I'm gonna triple check everything. thanks for your help!
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