lilandywandy Posted June 23, 2005 Share Posted June 23, 2005 HotKeySet("{PAUSE}", "mExit") MouseClick("left", 568, 23, 1) While 1 If PixelGetColor(120,777) = Dec("7b7984") Then Sleep(500) Send("{F1}") Sleep(7000) Send("{F2}") Sleep(200) Send("{F1}") Sleep(7000) Send("{F2}") Send("{F2}") Sleep(200) Send("{F2}") Else MouseClick("right", 75,568, 1, 0) MouseClick("right", 119,568, 1, 0) MouseClick("right", 162,568, 1, 0) EndIf Wend this is not complete, cause i dont know how to make it do what i really want... basically i want this thing to mouse click those coords till (100,100) turn green and pause till (100,100) is not green anymore.. in other terms, it keeps clicking and pauses when 100,100 is green, and resumes click when 100,100 is no longer green i also want to to stop clicking if 200,200 is purple and do the If PixelGetColor(120,777) = Dec("7b7984") Then Sleep(500) Send("{F1}") Sleep(7000) Send("{F2}") Sleep(200) Send("{F1}") Sleep(7000) Send("{F2}") Send("{F2}") Sleep(200) Send("{F2}") and then resume the script i have above is a start but i dont know how to do the pause on green thingy =( Link to comment Share on other sites More sharing options...
quick_sliver007 Posted June 23, 2005 Share Posted June 23, 2005 maybe this will help While 1 $purple = PixelGetColor(200,200 ) $green = PixelGetColor(100,100 ) If $purple = color Then; when purple is purple ;do stuff EndIf If $green = color Then; when $green is green ;do stuff here Else; when $green is not green ;do stuff EndIf WEnd Replace the word "color" with the number of the color. Also things may need to be moved around to fit the logic of what you are tring to do. . Link to comment Share on other sites More sharing options...
lilandywandy Posted June 23, 2005 Author Share Posted June 23, 2005 While 1 $purple = PixelGetColor(120,777) $green = PixelGetColor(370,708) If $purple = 7b7984 Then Sleep(500) Send("{F1}") Sleep(7000) Send("{F2}") Sleep(200) Send("{F1}") Sleep(7000) Send("{F2}") Send("{F2}") Sleep(200) Send("{F2}") EndIf If $green = 00f742 Then Sleep(5000) Else MouseClick("right", 75,568, 1, 0) MouseClick("right", 119,568, 1, 0) MouseClick("right", 162,568, 1, 0) MouseClick("right", 193,568, 1, 0) MouseClick("right", 228,568, 1, 0) EndIf Wend Func mExit() Exit EndFunc im getting an error when im trying to run it something about unknown command Link to comment Share on other sites More sharing options...
buzz44 Posted June 23, 2005 Share Posted June 23, 2005 If $purple = "7b7984" Then ;.... ;.... If $green = "00f742" Then ;.... ;.... Quotation marks. qq 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