Jump to content

Recommended Posts

Posted

Hi,

This is probably a pretty dumb question but I need to stop my script in a batch file.  In the screen shot my script is running and I can stop it by clicking EXIT. What is the command and can I use it in a batch file?

Regards

Geoffl

Screenshot (5).png

Posted

You could set a key combination to exit your script.
Please check the help file for HotKeySet.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

What you could do is translate the batch to autoit, and then you would be able to stop it.

Im not aware of any way you can stop a batch file unless by stopping it's process.

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted

Thank you for your help. I do not want to stop the batch file I want to stop Autoit.

In my screen shot , if I click EXIT, Autoit stops. This  must be a command in Auotit. 

 

  • Moderators
Posted

This belongs on a batch forum then, not an AutoIt forum. In short, Google would have given you your answer:

http://tweaks.com/windows/39559/kill-processes-from-command-prompt/

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted (edited)

Your mentioning of a batch file confused things a bit

  On 12/13/2017 at 7:26 AM, Geoffl said:

What is the command and can I use it in a batch file?

Expand  

So that made me think you in fact want to stop a batch file.. of course autoit commands wont work in batch files.

As for stopping the script, you can use a "hotkeyset" and direct to a function that exits the script, but there more ways of doing the same.

Edited by careca
  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted

Np. but Is it solved? If you have trouble post here what you tried.

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

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
  • Recently Browsing   0 members

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