Jump to content

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
Link to comment
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.

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

  • Recently Browsing   0 members

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