Unweighted Posted August 2, 2014 Posted August 2, 2014 (edited) #include "ImageSearch.au3" $X = 0 $Y = 0 Func Start() $Search = _ImageSearch('mc1.bmp', 0, $X, $Y, 0) If $Search = 1 Then MouseMove($X, $Y, 1) MouseClick("left") EndIf $Search = _ImageSearch('mc2.bmp', 0, $X, $Y, 0) If $Search = 1 Then MouseMove($X, $Y, 1) MouseClick("left") EndIf $Search = _ImageSearch('mc3.bmp', 0, $X, $Y, 0) If $Search = 1 Then MouseMove($X, $Y, 1) MouseClick("left") EndIf EndFunc while 1 sleep(100) WEnd >"C:Program FilesAutoIt3SciTE..autoit3.exe" /ErrorStdOut "C:UsersPrimaryDownloadsmctStart.au3" Hello there, I have this code and this is the error I get - what did I do wrong? Thank you Edited August 2, 2014 by Unweighted
Developers Jos Posted August 2, 2014 Developers Posted August 2, 2014 Which error? By the way: Have you read our forums rules as your script name seems pretty iffy. 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.
Unweighted Posted August 2, 2014 Author Posted August 2, 2014 Well the script won't start running, yes I have problems with naming things - I just like to keep it simple before I get it all to work and rename it Even keeping things simple, the script doesn't start
Developers Jos Posted August 2, 2014 Developers Posted August 2, 2014 (edited) So again: What is the error? To me the script should start but not do anything. Jos Edited August 2, 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.
Unweighted Posted August 2, 2014 Author Posted August 2, 2014 So again: What is the error? To me the script should start but not do anything. Jos >"C:Program FilesAutoIt3SciTE..autoit3.exe" /ErrorStdOut I am guessing this is an error since the script won't start clicking on images?
Developers Jos Posted August 2, 2014 Developers Posted August 2, 2014 I am guessing this is an error since the script won't start clicking on images? No this is the command performed and you script is running fine but you told it just to loop and not do anything as you never call the Func Start(). Now tell me you which application you want to click? 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.
Unweighted Posted August 2, 2014 Author Posted August 2, 2014 (edited) No this is the command performed and you script is running fine but you told it just to loop and not do anything as you never call the Func Start(). Now tell me you which application you want to click? Jos What do you mean? Please explain, I am pretty new to this I just want the script to click on images, and loop at the moment before I develop it. This is just a testing script - I want it to find images, and click on them Edited August 2, 2014 by Unweighted
Developers Jos Posted August 2, 2014 Developers Posted August 2, 2014 What do you mean? Please explain, I am pretty new to this I just want the script to click on images, and loop at the moment before I develop it. This is just a testing script - I want it to find images, and click on them Thought my question was pretty clear..no? Now tell me you which application you want to click? 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.
Unweighted Posted August 2, 2014 Author Posted August 2, 2014 I want it to search for images on chrome, sorry
Developers Jos Posted August 2, 2014 Developers Posted August 2, 2014 I want it to search for images on chrome, sorry Feels like pullling teeth here and am done asking questions. I am going to assume this is a Gmae automation and against our forumrules. Send me a PM in case you have a proper explanation what it is you want to do or else see you back when you have a legitimate question. 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.
Recommended Posts