darklonerlv Posted January 1, 2011 Posted January 1, 2011 $Input1 = GUICtrlCreateCombo("5000", 0, 20, 50, 21) GUICtrlSetData(-1, "5000|5100|5200|5300|5400|5500|5600|5700|5800|5900|6000|6100|6200|6300|6400|6500") "5000" = PixelSearch(471, 482, 471, 482, 13921636, 50) Do(GUICtrlRead($Input1) Until Not @error Send("{UP}") Do(GUICtrlRead($Input2) Until Not @error Send("{UP}") (79,8) : ERROR: syntax error "5000" ~~~~~~~^ i assume i need to call these as functions just not sure what im missing
wakillon Posted January 1, 2011 Posted January 1, 2011 $Input1 = GUICtrlCreateCombo("5000", 0, 20, 50, 21) GUICtrlSetData(-1, "5000|5100|5200|5300|5400|5500|5600|5700|5800|5900|6000|6100|6200|6300|6400|6500") "5000" = PixelSearch(471, 482, 471, 482, 13921636, 50) Do(GUICtrlRead($Input1) Until Not @error Send("{UP}") Do(GUICtrlRead($Input2) Until Not @error Send("{UP}") (79,8) : ERROR: syntax error "5000" ~~~~~~~^ i assume i need to call these as functions just not sure what im missing You Must write a variable name like $_PixelSearch ! "5000" can't be a variable and can't give you a result ! See PixelSearch function in helpfile AutoIt 3.3.18.0 X86 - SciTE 4.4.6.0 - WIN 11 24H2 X64 - Other Examples Scripts
darklonerlv Posted January 1, 2011 Author Posted January 1, 2011 Input1 = GUICtrlCreateCombo("5000", 0, 20, 50, 21) GUICtrlSetData(-1, "$5000|$5100|$5200|$5300|$5400|$5500|$5600|$5700|$5800|$5900|$6000|$6100|$6200|$6300|$6400|$6500") $5000= PixelSearch(471, 482, 471, 482, 13921636, 0) Do $coord = PixelSearch(guictrlread($Input1),guictrlread($Input1),Guictrlread($Input1),Guictrlread($Input1),Guictrlread($Input1),Guictrlread($Input1)) Until Not @error Send("{UP}") is what i have now, and another issue as arrived it seems its not reading the pixelsearch values off this method
JoHanatCent Posted January 3, 2011 Posted January 3, 2011 is what i have now, and another issue as arrived it seems its not reading the pixelsearch values off this methodHi, what you have here does not make a lot of sense?Can you explain what you want to do with the Data in the set because they do not look like coordinates?What is the "Up" suppose to do?
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