Sign in to follow this  
Followers 0
jb1095

Commands To Stop Scripts

3 posts in this topic

hey all, i am working on a script that will loop or "repeat, 1000" times, my question is this, s there a command i can put in to stop the script while its running?

below is a sample script i am playing with.

WinRestore, Diablo II

Sleep, 100

Repeat, 1000

LeftClick, 260, 480 ;click npc sell button

Sleep, 50

LeftClick, 446, 185 ; click on item to sell(hand weapon)

Sleep, 20

LeftClick, 446, 185 ; confirm sell

Sleep, 50

RightClick, 117, 358 ;click on weapon where it was sold

Sleep, 20

RightClick, 117, 358 ;buy weapon back

Sleep, 50

EndRepeat

I want to be able to stop the script if i press a certain key or series of keys. I hope you know what i mean because right now, if the script is running and I hit alt-ctrl-del to attempt to stop it, it doesnt stop and i need to hard boot my machine.

Share this post


Link to post
Share on other sites



It's bad enough posting V3 support questions in the scripts & scraps forum, but V2 support questions are even further out of place...

Share this post


Link to post
Share on other sites

thanks guys, i downloaded the newest version(i thought i had it for some reason)

sorry for wrong post section

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