Sign in to follow this  
Followers 0
miketh2005

Will this script work?

6 posts in this topic

Will this script work? Please help, thanks.

Func Bot()
    $coord = PixelSearch(0, 0, 4, 187, 0xB20000)
    If Not @error Then
        MouseClick("primary", $coord[0], $coord[1], 2)
        Sleep(5000) ;five seconds
        MouseClick("primary", 1230, 167)
        Bot()
    EndIf

    If @error Then
        Bot()
    EndIf
EndFunc   ;==>Bot

Share this post


Link to post
Share on other sites



Looks to me you are opening up a second thread on the same subject to see if you get response this time.

Jos


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

Share this post


Link to post
Share on other sites

How do I make it so that if it finds nothing after 30 seconds it do another function?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Ok, this script doesn't work at all. I don't know why, that's why I asked here.

Did all the helpful people leave? :D

Edited by miketh2005

Share this post


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