TAScott Posted December 12, 2007 Share Posted December 12, 2007 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,, Link to comment Share on other sites More sharing options...
Kip Posted December 12, 2007 Share Posted December 12, 2007 (edited) $Color = PixelGetColor(851,577) if Hex($Color,6) = 0xFF0000 Then ; do stuff EndIf Edited December 12, 2007 by kip MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
TAScott Posted December 12, 2007 Author Share Posted December 12, 2007 $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,,??? Link to comment Share on other sites More sharing options...
Kip Posted December 13, 2007 Share Posted December 13, 2007 Do 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) $Color = PixelGetColor(851,577) Until $Color <> 0xFF0000 MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
weaponx Posted December 13, 2007 Share Posted December 13, 2007 kip has performed the ever-elusive TRIPLE POST!!! That will surely bring home a gold medal at the 08 AutoIt Winter Games. Link to comment Share on other sites More sharing options...
Kip Posted December 13, 2007 Share Posted December 13, 2007 whoops, my webbrowser was kinda slow, so i clicked 3 times on Post MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now