Jump to content
pasqui

Script for Loop + hotkey for stop loop

Recommended Posts

Hi, how to can I have this script in Loop and with a HotKey to stop it?

 

I tried this but the Stop (ctrl+alt+x) doesn't work, it is always in loop:

 

HotKeySet("^!x", "MyExit")

While 1
mouseClick("left",978,658,8)
sleep(400)
mouseClick("left",624,571,7)
sleep(1000)
mouseClick("left",541,578,6)
sleep(3)
mouseClick("left",571,518,5)
sleep(3)
mouseClick("left",617,457,4)
sleep(3)
mouseClick("left",766,381,3)
sleep(3)
mouseClick("left",692,326,2)
sleep(3)
mouseClick("left",565,271,1)
sleep(1000)
WEnd

Func MyExit()
    Exit
EndFunc

 

Thank you in advance

Share this post


Link to post
Share on other sites

Hi pasqui,

Welcome to the AutoIt forum! Is there anyway we can find out what you are automating, maybe there would be a better way of doing this?

EDIT: It also works fine for me.

Edited by MikahS
comments

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites

Work fine here!

What program is running in the foreground when you are trying this?

Jos

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

×
×
  • Create New...