Sign in to follow this  
Followers 0
ezzetabi

Runwait Bug?

6 posts in this topic

#1 ·  Posted (edited)

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!

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

Share this post


Link to post
Share on other sites

mickeySoft??? :angry: always reffered to it as microsquish... B) perhapes we should call it MickeySquish... :whistle:


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

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

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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  
Followers 0