Jump to content

Help please....couple questions


Recommended Posts

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?

Link to comment
Share on other sites

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

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...