Jump to content
Sign in to follow this  
kevin98770

New, Need help on colour detection click

Recommended Posts

How would I make a script where the mouse clicks a certain color waits 5 seconds then finds that color again and clicks it again, and if there isn't any of that color press right arrow on the keyboard for 1 second? and then repeat.

Edited by kevin98770

Share this post


Link to post
Share on other sites

How can you possibly know this is a bot? There is nothing blatantly depicting a bot.

here are a couple of ways you can press the arrow for a second, one will probably do.

Func _Send()
$idelay = Opt("SendKeyDownDelay")
Opt("SendKeyDownDelay", 1000)
Send("{RIGHT}")
Opt("SendKeyDownDelay", $idelay)
EndFunc   ;==>_Send2
 
 
Func _Send()
$iTimer = TimerInit()
While TimerDiff($iTimer) < 1000
  Send("{RIGHT}")
WEnd
EndFunc   ;==>_Send2
Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...