Jump to content
Sign in to follow this  
TAScott

Set a pixelgetcolor to a variable and complete a few tasks HELP!

Recommended Posts

Ok so ,, this is my script so far

Sleep(2000)

MouseMove(616,515)

MouseDown("left")

MouseUp("left")

Sleep(5000)

MouseMove(919,665)

MouseDown("left")

MouseUp("left")

sleep(500)

MouseMove(890,577)

MouseDown("left")

MouseUp("left")

sleep(10000)

PixelGetColor(851,577)

Once i get the pixel color i want to set it to a variable. So I can use an If than statement like...... If var1 is lets say F20000 (RED) than... move mouse click blah blah blah,,, I also need to know how to repeat just this part of the script until,, The Var1 isn't red anymore,,

Share this post


Link to post
Share on other sites

$Color = PixelGetColor(851,577)
if Hex($Color,6) = 0xFF0000 Then
; do stuff
EndIf

What do i put after EndIf ,,, If i want that particular loop to end when that pixel turns black,,???

Share this post


Link to post
Share on other sites

kip has performed the ever-elusive TRIPLE POST!!! That will surely bring home a gold medal at the 08 AutoIt Winter Games.

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...