Jump to content
Sign in to follow this  
Unweighted

AutoIt code won't start

Recommended Posts

Unweighted

#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

Share this post


Link to post
Share on other sites
Jos

Which error?

By the way: Have you read our forums rules as your script name seems pretty iffy.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Unweighted

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

Share this post


Link to post
Share on other sites
Jos

So again: What is the error?

To me the script should start but not do anything.

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Unweighted

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?

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Unweighted

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

Share this post


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

Thought my question was pretty clear..no?

Now tell me you which application  you want to click?

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Unweighted

I want it to search for images on chrome, sorry

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×