Jump to content

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


Recommended Posts

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

Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...