Jump to content

AutoIt code won't start


Recommended Posts

#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
Link to comment
Share on other sites

  • Developers

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

Link to comment
Share on other sites

  • Developers

So again: What is the error?

To me the script should start but not do anything.

Jos

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

Link to comment
Share on other sites

  • Developers

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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

Link to comment
Share on other sites

  • Developers

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...