Jump to content
Sign in to follow this  
kevin98770

New, Need help on colour detection click

Recommended Posts

kevin98770

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
Ramzes

You should look for some functions like:

They are necessary for you.

By the way, what are you programming?


Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font]

Share this post


Link to post
Share on other sites
russell

this is a bot


muppet hands are so soft :)

Share this post


Link to post
Share on other sites
JohnOne

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  

×