Jump to content
Sign in to follow this  
Guest NatasD

Looping mouseclicks

Recommended Posts

Guest NatasD

Hello, I tried to search for this, but I was unable to find it. I just started using Autoit today, so I am kinda unsure how things work.

I was wondering how I would get some mouseclicks to keep looping until I kill the script.

Here is the script:

WinWaitActive("Title", "", 120)
WinMove ("Title", "", 50, 50)

[THIS IS WHAT NEEDS TO BE LOOPED]
MouseClick ( "left" , 250, 450 , 1 , 20)
Sleep (3000)
MouseClick ( "left" , 300, 400 , 1 , 10)
Sleep (3000)
MouseClick ( "left" , 650, 450 , 1 , 20)
Sleep (3000)
MouseClick ( "left" , 550, 150 , 1 , 10)

Thanks in advance.

Edited by NatasD

Share this post


Link to post
Share on other sites
Valuater

Welcome to the Autoit3 Forums

Please don't post twice

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
realkiller

WinWaitActive("Title", "", 120)

WinMove ("Title", "", 50, 50)

While 1

MouseClick ( "left" , 250, 450 , 1 , 20)

Sleep (3000)

MouseClick ( "left" , 300, 400 , 1 , 10)

Sleep (3000)

MouseClick ( "left" , 650, 450 , 1 , 20)

Sleep (3000)

MouseClick ( "left" , 550, 150 , 1 , 10)

WEnd

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  

×