1. openDialog for ShellEx

------=_NextPart_001_0000_01C23D84.E171BC60

Does anyone know a method for executing another program using the ShellEx=
 (or perhaps another method) but executing the program like an openDialog=
 command opens a window... in other words, execute the sub-program and ex=
ecution of the main program halts until the sub-program closes?
-Bob
P.S. Thanks Kat for your help with the argument passing... sometimes the =
simplest answers are the hardest ones to find!Get more from the Web.  FRE=
E MSN Explorer download : http://explorer.msn.com

------=_NextPart_001_0000_01C23D84.E171BC60

<HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><P>Does anyone know=
 a method for executing another program using the ShellEx (or perhaps ano=
ther method) but executing the program like an openDialog command opens a=
 window... in other words, execute the sub-program and execution of the m=
ain program halts until the sub-program closes?</P> <P>-Bob</P> <P>P.S. T=
hanks Kat for your help with the argument passing... sometimes the simple=
><hr>Get more from the Web.  FREE MSN Explorer download : <a href=3D'http=
://explorer.msn.com'>http://explorer.msn.com</a><br></p>

------=_NextPart_001_0000_01C23D84.E171BC60--

new topic     » topic index » view message » categorize

2. Re: openDialog for ShellEx

Hi Bob,
   You could create a timer that checks the existance of the another
program and when it finds out that it doesn't exist then you can allow
to continue running. There's an include called window.ew that has some
routines to check if another app exist.

Best Regards,
    Guillermo Bonvehi

--- rswiston at hotmail.com wrote:
> 
> Does anyone know a method for executing another program using the
> ShellEx (or perhaps another method) but executing the program like an
> openDialog command opens a window... in other words, execute the
> sub-program and execution of the main program halts until the
> sub-program closes?
> -Bob
> P.S. Thanks Kat for your help with the argument passing... sometimes
> the simplest answers are the hardest ones to find!Get more from the
> Web.  FREE MSN Explorer download : http://explorer.msn.com

new topic     » goto parent     » topic index » view message » categorize

3. Re: openDialog for ShellEx

On 6 Aug 2002, at 20:07, rswiston at hotmail.com wrote:

> 
> Does anyone know a method for executing another program using the ShellEx (or
> perhaps another method) but executing the program like an openDialog command
> opens a window... in other words, execute the sub-program and execution of the
> main program halts until the sub-program closes?

Have the main program write a file to disk, use flush() on it, then execute the 
sub program, and wait till the sub program has erased the file before doing 
anything else.

Or in windoze, use that api call that tells you if a program by some name 
you specify is being run.

Kat

new topic     » goto parent     » topic index » view message » categorize

4. Re: openDialog for ShellEx

This is a multi-part message in MIME format.

------=_NextPart_000_0049_01C23DEC.721BDCC0
	charset="iso-8859-1"

What do you mean by "halt", close or wait?
In IDE is file called (I think) process.ew which executes another =
process and waits until that new process closes, although that code =
maybe now could be a little re-written to be using doEvents()?
  ----- Original Message -----=20
  From: rswiston at hotmail.com=20
  Subject: openDialog for ShellEx



  Does anyone know a method for executing another program using the =
ShellEx (or perhaps another method) but executing the program like an =
openDialog command opens a window... in other words, execute the =
sub-program and execution of the main program halts until the =
sub-program closes?

  -Bob

  P.S. Thanks Kat for your help with the argument passing... sometimes =
the simplest answers are the hardest ones to find!





-------------------------------------------------------------------------=
-----
  Get more from the Web. FREE MSN Explorer download : =
http://explorer.msn.com



------=_NextPart_000_0049_01C23DEC.721BDCC0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY=20
style=3D"BORDER-RIGHT: medium none; BORDER-TOP: medium none; FONT: 10pt =
verdana; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none"=20
bgColor=3D#ffffff>
<DIV><FONT face=3DArial>What do you mean by "halt",&nbsp;close or=20
wait?</FONT></DIV>
<DIV><FONT face=3DArial>In IDE is file called (I think) process.ew which =
executes=20
another process and waits until that new process closes, although that =
code=20
maybe now could be a little re-written to be using =
doEvents()?</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Drswiston at hotmail.com=20
  href=3D"mailto:rswiston at hotmail.com">rswiston at hotmail.com</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3DEUforum at topica.com=20
  href=3D"mailto:EUforum at topica.com">EUforum</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, August 07, =
2002 4:07=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> openDialog for =
ShellEx</DIV>
  <DIV><FONT face=3DArial></FONT><FONT =
face=3DArial></FONT><BR></DIV><PRE>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =
The Euphoria Mailing List =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
</PRE>
  <P>Does anyone know a method for executing another program using the =
ShellEx=20
  (or perhaps another method) but executing the program like an =
openDialog=20
  command opens a window... in other words, execute the sub-program and=20
  execution of the main program halts until the sub-program closes?</P>
  <P>-Bob</P>
  <P>P.S. Thanks Kat for your help with the argument passing... =
sometimes the=20
  simplest answers are the hardest ones to =
find!</P><PRE>=3D=3D^=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
This email was sent to: 10963508 at europeonline.com

EASY UNSUBSCRIBE click here: <A =
href=3D"http://topica.com/u/?b1dd66.b24Qek">http://topica.com/u/?b1dd66.b=
24Qek</A>
Or send an email to: EUforum-unsubscribe at topica.com

T O P I C A -- Register now to manage your mail!
<A =
href=3D"http://www.topica.com/partner/tag02/register">http://www.topica.c=
om/partner/tag02/register</A>
=3D=3D^=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</PRE><BR=20
  clear=3Dall>
  <HR>
  Get more from the Web. FREE MSN Explorer download : <A=20
  href=3D"http://explorer.msn.com">http://explorer.msn.com</A><BR>

------=_NextPart_000_0049_01C23DEC.721BDCC0--

new topic     » goto parent     » topic index » view message » categorize

5. Re: openDialog for ShellEx

{{{

On 6 Aug 2002, at 20:07, rswiston at hotmail.com wrote:

Does anyone know a method for executing another program using the ShellEx
(or
perhaps another method) but executing the program like an openDialog command
opens a window... in other words, execute the sub-program and execution of
the
main program halts until the sub-program closes?

I haven't a clue, but tracing thru Mike's editor I see the code:

showWindow( MAIN, SW_MINIMIZE)

Execute file err_msg system_exec(exe, 2) NB: O MEANS SUCCESS!

showWindow( MAIN, SW_RESTORE)

Thats' it. Staggers me that it does what it does (I really know not why) but the restore does not happen until the program has completed.

Play with it, see what you find.

Pete

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu