Sign in to follow this  
Followers 0
RandomGuest

Pixel search + Mouse move

2 posts in this topic

#1 ·  Posted (edited)

First of all, im quite new to Autoit.

$Pixel = PixelSearch ( 0, 0, 474, 176, 0x00CE00)
If @ERROR Then
Send("{2 down}")
Sleep(500)
Send("{2 up}")
Else
Send("{1 down}")
Sleep(500)
Send("{1 up}")
EndIf

So, if I want AutoIt to do another pixelsearch, it does not do anything.

How can I make it so it can first do this pixelsearch above, then it starts another pixelsearch for another color and so on?...

Edited by RandomGuest

Share this post


Link to post
Share on other sites



I guess you want a loop. Check out For/Next, While/WEnd, and Do/Until in the help file.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  
Followers 0