Jump to content

Recommended Posts

Posted

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

Sleep(200)

EndIf

Wend

MouseClick(XXXXX)

MouseClick(XXXXX)

MouseClick(XXXXX)

MouseClick(XXXXX)

MouseClick(XXXXX)

Func mExit()

Exit

EndFunc

how do i make it so that this program once turn on is click in those places, and stops when If PixelGetColor(120,777) = Dec("7b7984") and does that command, and then resume clicking?

and also , the speed range 0 being fastest, whats slowest?

Posted

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}")
      Sleep(200)
   Else
      MouseClick(XXXXX)
      MouseClick(XXXXX)
      MouseClick(XXXXX)
      MouseClick(XXXXX)
      MouseClick(XXXXX)
   EndIf
Wend

Func mExit()
   Exit
EndFunc

The speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10. Straight out the help file...

qq

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
  • Recently Browsing   0 members

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