Jump to content
Sign in to follow this  
ezzetabi

Runwait Bug?

Recommended Posts

I use ver 2.64 .

Try to make that script

Runwait,%comspec% /k PING 127.0.0.1
MsgBox,1,...,You used the Console!

Now, the script awaits that the user close the Console windows via exit command (or clicking the X in the top right) and after... AutoIt crashes! B) and the msgbox never appear.

It is just me, or it is a bug that need to be checked? :whistle:

Strangely enough, it does not happen using an internal cmd command:

Runwait,%comspec% /k dir c:\\
MsgBox,1,...,You used the Console!
Edited by ezzetabi

Share this post


Link to post
Share on other sites

The script words fine when you type EXIT on the commandline..

But you are correct... I get a nice mickeySoft error (Xc0000005) when i click on the top Right X to close the window:

just as a workarround:

FileAppend,dir c:\\ \npause, %temp%\\mydir.bat
Runwait,%comspec% /c %temp%\\mydir.bat
FileDelete,%temp%\\mydir.bat
MsgBox,1,...,You used the Console!

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

Share this post


Link to post
Share on other sites

I used the /k arguments to keep the console open... using /c everythig is fine, but not what I'd like...

what about using "Runwait,command.com /k dir c:\\" ?

Then you would have to type EXIT to close properly....


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

Share this post


Link to post
Share on other sites

A bug, a bug. Yep, and I've learned to live with it ...

OK: Run, cmd /k ...

OK: Run, cmd /c ...

OK: RunWait, cmd /c ...

FALSE: RunWait, cmd /k ...

So I'm using R&/K for testing (to get the results in the /konsole window) and swap to RW&/C with the final release.

-----

WinNT/W2K

AutoIt 2

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...