Jump to content
Sign in to follow this  
aram

How can i exit or pause my autoit scipt trough a hotkey?

Recommended Posts

aram

hello,

i have written a script by autoit but i dont know what i have to write that the script exites or pauses when i am pressing a hotkey.

it would be nice if you can help me.

thats my script its a login script for a game called silkroad:

Sleep(3000)

While 1

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",216, 720,1,5)

MouseClick("left",458, 559,1,5)

Sleep(1800)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",216, 692,1,5)

MouseClick("left",458, 559,1,5)

Sleep(1800)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",208, 673,1,5)

MouseClick("left",458, 559,1,5)

Sleep(18000)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",210, 648,1,5)

MouseClick("left",458, 559,1,5)

Sleep(1800)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",214, 622,1,5)

MouseClick("left",458, 559,1,5)

Sleep(1800)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",230, 596,1,5)

MouseClick("left",458, 559,1,5)

Sleep(1800)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",220, 566,1,5)

MouseClick("left",458, 559,1,5)

Sleep(1800)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",226, 541,1,5)

MouseClick("left",458, 559,1,5)

Sleep(1800)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",222, 513,1,5)

MouseClick("left",458, 559,1,5)

Sleep(1800)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",223, 489,1,5)

MouseClick("left",458, 559,1,5)

Sleep(1800)

Send("{LWIN}")

MouseClick("left",212, 752,1,5)

MouseClick("left",236, 462,1,5)

MouseClick("left",458, 559,1,5)

Sleep(19000)

WEnd

thx for reading.

Share this post


Link to post
Share on other sites
aram

THX very much

Edited by aram

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  

×