lolp1 Posted October 1, 2006 Share Posted October 1, 2006 Hello, I was wondering if doing this is possible. I want to do: PixelGetColor( X , X ) And if the pixel colorcomes back as 0x5A0000 I would like it to send("1") How would I do this? Link to comment Share on other sites More sharing options...
Fossil Rock Posted October 1, 2006 Share Posted October 1, 2006 If PixelGetColor ( x , y ) = 0x5A0000 Then send("1"); change x & y for real coordinates Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
AzKay Posted October 1, 2006 Share Posted October 1, 2006 Do $Loop = 1 $Color = PixelGetColor(x, y) If $Color = Dec(0x5A0000) Then Send("1") $Loop = 0 EndIf Until $Loop = 0 # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
lolp1 Posted October 1, 2006 Author Share Posted October 1, 2006 Thanks:D Link to comment Share on other sites More sharing options...
Developers Jos Posted October 1, 2006 Developers Share Posted October 1, 2006 Do $Loop = 1 $Color = PixelGetColor(x, y) If $Color = Dec(0x5A0000) Then Send("1") $Loop = 0 EndIf Until $Loop = 0 SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
AzKay Posted October 1, 2006 Share Posted October 1, 2006 This version does the same as your version... just for comparison Do Sleep(10) Until PixelGetColor($x, $y) = 0x5A0000 Send("1")I think, I overthink. Lol, I try to get something simple, then, end up making it the worst way. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
lolp1 Posted October 1, 2006 Author Share Posted October 1, 2006 To put it on a endless loop would I just: While 1 $x = 76 $y = 462 Do Sleep(10) Until PixelGetColor($x, $y) = 0x8C7D52 Send("1") Wend Link to comment Share on other sites More sharing options...
AzKay Posted October 1, 2006 Share Posted October 1, 2006 (edited) $x = 76 $y = 462 While 1 If PixelGetColor($x, $y) = 0x8C7D52 Then Send("1") WEnd Edited October 1, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
lolp1 Posted October 1, 2006 Author Share Posted October 1, 2006 Thanks so much, problem resolved. 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