Jump to content

Commands To Stop Scripts


jb1095
 Share

Recommended Posts

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...