Jump to content

Recommended Posts

Posted (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 by Unweighted
Posted

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

Posted

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
Posted

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.
  :)

Posted (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 by Unweighted
  • Developers
Posted

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.
  :)

  • Developers
Posted

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.
  :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...