ezzetabi Posted February 26, 2004 Posted February 26, 2004 (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! and the msgbox never appear. It is just me, or it is a bug that need to be checked? Strangely enough, it does not happen using an internal cmd command: Runwait,%comspec% /k dir c:\\ MsgBox,1,...,You used the Console! Edited February 26, 2004 by ezzetabi
Developers Jos Posted February 26, 2004 Developers Posted February 26, 2004 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.
Somerset Posted February 26, 2004 Posted February 26, 2004 mickeySoft??? always reffered to it as microsquish... perhapes we should call it MickeySquish...
ezzetabi Posted February 26, 2004 Author Posted February 26, 2004 I used the /k arguments to keep the console open... using /c everythig is fine, but not what I'd like...
Developers Jos Posted February 26, 2004 Developers Posted February 26, 2004 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.
Beastmaster Posted February 26, 2004 Posted February 26, 2004 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/W2KAutoIt 2
Recommended Posts