Jump to content

Quick Question


Recommended Posts

hi there guys, i just need some help resolving this problem, basically i want my script to hit the ("a") button and sleep about 20 mil second and then left click on the mouse (as soon as possible).. and repeat that or i should say have that looped, it's my 1st time using this and i made this from reading th tutorial, i hope you guys can help out a newbie thanks :)

Also it would be great if someone can show me how to toggle the script to on and off or Pause/Unpause with F9 or any of those keys, thanks again any help will be greatly appreciate it :)

This is what i have so far.. i think it's way off... :whistle:

func MoveClick()

$Cord = PixelSearch($pos[0] - 200, $pos[1] - 200,$pos[0] + 200, $pos[1] + 200, 0x84849C, 0)

if @error then

;MouseMove($MoveCord[0], $MoveCord[1], 0)

send("a")

sleep(20) ;

MouseClick("left")

sleep("400") ;

EndFunc

Edited by User751139
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...