Jump to content

AutoIt doesn't quit on Exit


Recommended Posts

Run( "cmd.exe" )
 ConsoleWrite( "Now should exit!" )
 Exit

The following code will not exit until the child process cmd.exe exits... was this always the case? If yes, I'd like to know why (to educate my self).

How can I avoid this?

Thanks!

RK

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

Link to comment
Share on other sites

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

  • Developers

It isn't a Autoit3 issue because you will see in the Taskmanager that AutoIt3.exe is finishes fine.

Add this to your SciTEuser.properties and try again:

command.go.$(au3)="$(autoit3dir)\autoit3.exe" /ErrorStdOut "$(FilePath)" $(1) $(2) $(3) $(4)

You will see it exits fine.

I checked AutoIt3Wrapper and it looks like SciTE has some issues with the STDOUT/STDERR and reading the buffers doesn't error out.

I made a workaround in the current Beta version of Autoit3Wrapper to test for Autoit3.exe finishing and no STDxxx being read from the buffers.

Try to see if that fixes it for you.

Jos :idea:

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Cool! It now works with no problems. I'm gald it wasn't an AutoIt bug

Thanks A lot!

"When the power of love overcomes the love of power, the world will know peace"-Jimi Hendrix

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