1. Close window
- Posted by vern at lvp.eastlink.ca Jan 26, 2002
- 437 views
This is a multi-part message in MIME format. ------=_NextPart_000_003F_01C1A667.1E17C0C0 charset="iso-8859-1" Hi, this may sound like a dumb question, but I have a script that runs an exw. script (cascading scripts?) anyway, the .ex colsole does not close on it's own and the calling script waits until it is closed to continue...question, how do I make the window close automatically? something like close(fn) ------=_NextPart_000_003F_01C1A667.1E17C0C0 charset="iso-8859-1" <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2712.300" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi, this may sound like a dumb question, but I have a script that runs an exw. script (cascading scripts?) anyway, the .ex colsole does not close on it's own and the calling script waits until it is closed to continue...question, how do I make the window close ------=_NextPart_000_003F_01C1A667.1E17C0C0--
2. Re: Close window
- Posted by Martin Stachon <martin.stachon at worldonline.cz> Jan 26, 2002
- 430 views
This is a multi-part message in MIME format. ------=_NextPart_000_0029_01C1A696.BFB4FFE0 charset="iso-8859-1" Try adding if graphics_mode(-1) then end if at the end of the .ex script Hi, this may sound like a dumb question, but I have a script that runs an exw. script (cascading scripts?) anyway, the .ex colsole does not close on it's own and the calling script waits until it is closed to continue...question, how do I make the window close automatically? something like close(fn) ------=_NextPart_000_0029_01C1A696.BFB4FFE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 5.50.4522.1800" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face="Arial CE" size=2>Try adding</FONT></DIV> <DIV><FONT face="Arial CE" size=2> if graphics_mode(-1) then end if</FONT></DIV> <DIV><FONT size=2>at the end of the .ex script</FONT></DIV> <BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV><FONT face="Arial CE" size=2></FONT><FONT size=2></FONT><BR></DIV><PRE>============ The Euphoria Mailing List ============ </PRE> <DIV><FONT face=Arial size=2>Hi, this may sound like a dumb question, but I have a script that runs an exw. script (cascading scripts?) anyway, the .ex colsole does not close on it's own and the calling script waits until it is closed to continue...question, how do I make the window close automatically? something like ------=_NextPart_000_0029_01C1A696.BFB4FFE0--
3. Close window
- Posted by vern at lvp.eastlink.ca Jan 26, 2002
- 411 views
This is a multi-part message in MIME format. ------=_NextPart_000_002E_01C1A6B8.4C2B8B80 charset="iso-8859-1" Hi, I recently posted a ? about my script not closing its console window cause a calling script to hang.. it was suggested to use the statement if graphic_mode(-1) I tried this with no effect, is there a way for a exw.exe script to not open a console window? This script does not seek user input via console, te the window opens and waits for the enter key to be struck...odd behavior....any suggections? Bernie ------=_NextPart_000_002E_01C1A6B8.4C2B8B80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2712.300" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi, I recently posted a ? about my script not closing its console window cause a calling script to hang..</FONT></DIV> <DIV><FONT face=Arial size=2>it was suggested to use the statement if graphic_mode(-1)</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I tried this with no effect, is there a way for a exw.exe script to not open a console window?</FONT></DIV> <DIV><FONT face=Arial size=2>This script does not seek user input via console, te the window opens and waits for the enter key to be struck...odd behavior....any suggections?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> ------=_NextPart_000_002E_01C1A6B8.4C2B8B80--
4. Re: Close window
- Posted by pampeano at rocketmail.com Jan 26, 2002
- 412 views
Hi Vern, Try free_console() Best Regards, Guillermo Bonvehi AKA: KNiXEUR - Caballero Rojo --- vern at lvp.eastlink.ca wrote: > > Hi, I recently posted a ? about my script not closing its console > window cause a calling script to hang.. > it was suggested to use the statement if graphic_mode(-1) > > I tried this with no effect, is there a way for a exw.exe script to > not open a console window? > This script does not seek user input via console, te the window opens > and waits for the enter key to be struck...odd behavior....any > suggections? > > Bernie > > > >
5. Re: Close window
- Posted by Robert Craig <rds at RapidEuphoria.com> Jan 26, 2002
- 428 views
Bernie writes: > ... is there a way for a exw.exe script to not open a console window? > This script does not seek user input via console, te the window > opens and waits for the enter key to be struck...odd behavior.... > any suggections? Executing free_console() in dll.e should make your console window go away, although it will come back again if your program does any console I/O. A console window appears automatically in a Windows Euphoria program whenever you print to the screen with printf(), puts() etc., input text from the keyboard using gets(), getc() etc. or you call clear_screen(), position() or any function that interacts with the DOS-style console in some way. You'll also get a console window if your program gets error or warning messages from Euphoria. You can always shut off warnings by saying: without warning at the top of your program. GUI programs normally don't use any DOS-style console I/O routines. They use the routines supplied by Win32Lib (or some other GUI library) to interact with the user. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com
6. Re: Close window
- Posted by vern at lvp.eastlink.ca Jan 27, 2002
- 446 views
> Executing free_console() in dll.e should make your > console window go away, although it will come back again > if your program does any console I/O. > > A console window appears automatically in a > Windows Euphoria program whenever you print to > the screen with printf(), puts() etc., input text from the > keyboard using gets(), getc() etc. or you call > clear_screen(), position() or any function that > interacts with the DOS-style console in some way. > GUI programs normally don't use any DOS-style > console I/O routines. They use the routines supplied by > Win32Lib (or some other GUI library) to interact with the user. > > Regards, > Rob Craig > Rapid Deployment Software > http://www.RapidEuphoria.com > > free_console() worked, don't know why I never thought of it before, thank you :) Bernie > > >