Jump to content
Sign in to follow this  
lilandywandy

hmmmm............ help?

Recommended Posts

lilandywandy

HotKeySet("{ESC}", "mExit")

MouseClick("left", 568, 23, 1)

While 1

If PixelGetColor(90,752) = Dec("313c4a") Then

Send("{F8}")

Sleep(5000)

EndIf

Wend

Func mExit()

Exit

EndFunc

how 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}")?

Share this post


Link to post
Share on other sites
herewasplato

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]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.