Jump to content

Quick kill running scripts


sleepy
 Share

Recommended Posts

I can't find a kill or quit control for autoit scripts and or exe file. Being new to this

tool and developing I make mistakes and can't stop the script. If I bring up the

process control the script seams to start interacting with that or any window I open.

In automationanywhere you can just do escape?

Link to comment
Share on other sites

I can't find a kill or quit control for autoit scripts and or exe file. Being new to this

tool and developing I make mistakes and can't stop the script. If I bring up the

process control the script seams to start interacting with that or any window I open.

In automationanywhere you can just do escape?

Try this

HotKeySet ( '{F9}', 'MyExit' )
Func MyExit()
    Exit
EndFunc

Now, [F9] will kill the script. Sometimes you might just want to get out of a hung loop. Use this:

GLOBAL $DumpOut = 0
HotKeySet ( '{F10}', 'MyExitLoop' )
Func MyExitLoop()
    $DumpOut = 1
EndFunc
Then, add this to to the loop:

If $DumpOut = 1 Then
     $DumpOut = 0
     ExitLoop
EndIf
Hitting [F10] will now exit the loop.
Link to comment
Share on other sites

AHHH Thanks!!!!

I can't find a kill or quit control for autoit scripts and or exe file. Being new to this

tool and developing I make mistakes and can't stop the script. If I bring up the

process control the script seams to start interacting with that or any window I open.

In automationanywhere you can just do escape?

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...