Jump to content
Sign in to follow this  
rbhkamal

AutoIt doesn't quit on Exit

Recommended Posts

rbhkamal

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

Share this post


Link to post
Share on other sites
MvGulik
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 ...
 

Share this post


Link to post
Share on other sites
rbhkamal

darn!

It looks like AutoIt is not forking the child process properly


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

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
rbhkamal

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

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  

×