Jump to content
Sign in to follow this  
User751139

Quick Question

Recommended Posts

User751139

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

Share this post


Link to post
Share on other sites
rambo3889

Dude you should really read the help file and second this belongs in the support forum not here.


My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youÂ’re the best in town Fight!

Share this post


Link to post
Share on other sites
User751139

Right sorry bout that.. i got it to work thanks, can u tell me how the looping command works? ive read it a few times cant seem to get it to work

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  

×