lilandywandy Posted July 19, 2005 Share Posted July 19, 2005 HotKeySet("{ESC}", "mExit")MouseClick("left", 568, 23, 1)While 1 If PixelGetColor(90,752) = Dec("313c4a") Then Send("{F8}") Sleep(5000) EndIfWendFunc mExit() ExitEndFunchow can i make it so that when the program is turned on, it checks (90,90)'s color and inserts it in the If PixelGetColor(90,752) = Dec("313c4a") Then ?then how do i add after this, if color changes at (90,90) from the original, then send("{F11}")? Link to comment Share on other sites More sharing options...
herewasplato Posted July 19, 2005 Share Posted July 19, 2005 HotKeySet("{ESC}", "mExit") $var = PixelGetColor(90,90) MouseClick("left", 568, 23, 1) While 1 If PixelGetColor(90,752) = Dec($var) Then Send("{F8}") If NOT PixelGetColor(90,90) = Dec($var) Then Send("{F11}") Sleep(5000) Wend Func mExit() Exit EndFunc [size="1"][font="Arial"].[u].[/u][/font][/size] 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