Sign in to follow this  
Followers 0
whoRu

Need Help

4 posts in this topic

#1 ·  Posted (edited)

hi, i want to know how to write a left mouse click scrip but i dont know anything bout autoit. this what i want it to do. run the strip then it will wait for like 5sec then left click 1 time then wait for like 5sec then left click again then stop. in the middle of the 1st click and the 2nd click i can change the time it take to do the 2nd click. how do i do that? can any1 help me out please. thanks

Edited by whoRu

Share this post


Link to post
Share on other sites



Like this?

MouseClick("left"); 1st click
Sleep(5000); Sleep 5 sec
MouseClick("left"); 2nd click
Exit; Exit

:iamstupid:

Share this post


Link to post
Share on other sites

Hmmm... I think some working with the help file included would help you a lot...

But, OK:

$waittime = InputBox("Insert time to wait", "Enter the time in milliseconds you want to wait between click one and two")

MouseClick("left") ; This is your first click

sleep($waittime) ; Wait for $waittime milliseconds

MouseClick("left") ; This is you second click

exit ; Exit the script...

Share this post


Link to post
Share on other sites

thanks alot

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  
Followers 0