1. Suspending a program in Win32Lib.
- Posted by "William Heimbigner" <icxcnika at hotpop.com> Sep 16, 2004
- 479 views
This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C49BDD.86534BA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Here is basically what I am trying to do: button_onClick(int self, int event, seq params) Execute_Some_Program() while program_is_still_running do doEvents(0) end while restart(0) end procedure Any ideas on how to do 'program_is_still_running' using ShellExecute and ShellExecuteEx calls? Btw, a virtual cookie to the first person who guesses why I want to do this! :) Thx, William Heimbigner icxcnika at hotpop.com Visit the UBoard - Forceful Signups Removed! - http://uboard.proboards32.com - Threaded discussion, improved searching, human moderating, graphical smileys, better formatting abilities (now what else was there...) Visit my website: http://www.geocities.com/icxcnika123 ------=_NextPart_000_000A_01C49BDD.86534BA0 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.2800.1106" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Here is basically what I am trying to do:</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>button_onClick(int self, int event, seq params)</FONT></DIV> <DIV><FONT face=Arial size=2> Execute_Some_Program()</FONT></DIV> <DIV><FONT face=Arial size=2> while program_is_still_running do</FONT></DIV> <DIV><FONT face=Arial size=2> doEvents(0)</FONT></DIV> <DIV><FONT face=Arial size=2> end while</FONT></DIV> <DIV><FONT face=Arial size=2> restart(0)</FONT></DIV> <DIV><FONT face=Arial size=2>end procedure</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Any ideas on how to do 'program_is_still_running' using ShellExecute and ShellExecuteEx calls?</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Btw, a virtual cookie to the first person who guesses why I want to do this! :)</FONT></DIV> <DIV><FONT face=Arial size=2>Thx,</FONT></DIV> <DIV><FONT face=Arial size=2>William Heimbigner<BR><A href="mailto:icxcnika at hotpop.com">icxcnika at hotpop.com</A><BR>Visit the UBoard - Forceful Signups Removed! - <A href="http://uboard.proboards32.com">http://uboard.proboards32.com</A> - Threaded discussion, improved searching, human moderating, graphical smileys, better formatting abilities (now what else was there...)<BR>Visit my website: <A href="http://www.geocities.com/icxcnika123">http://www.geocities.com/icxcnika123</A></FONT></DIV></BODY></HTML> ------=_NextPart_000_000A_01C49BDD.86534BA0--
2. Re: Suspending a program in Win32Lib.
- Posted by cklester <cklester at yahoo.com> Sep 16, 2004
- 449 views
William Heimbigner wrote: > > button_onClick(int self, int event, seq params) > Execute_Some_Program() > while program_is_still_running do > doEvents(0) > end while > restart(0) > end procedure > > Any ideas on how to do 'program_is_still_running' using ShellExecute and > ShellExecuteEx > calls? Use a flag file. while flagFileExists do doEvents(0) end while -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
3. Re: Suspending a program in Win32Lib.
- Posted by "William Heimbigner" <icxcnika at hotpop.com> Sep 16, 2004
- 457 views
----- Original Message ----- From: "cklester" <guest at RapidEuphoria.com> To: <EUforum at topica.com> Sent: Thursday, September 16, 2004 11:27 AM Subject: Re: Suspending a program in Win32Lib. > > > posted by: cklester <cklester at yahoo.com> > > William Heimbigner wrote: > > > > button_onClick(int self, int event, seq params) > > Execute_Some_Program() > > while program_is_still_running do > > doEvents(0) > > end while > > restart(0) > > end procedure > > > > Any ideas on how to do 'program_is_still_running' using ShellExecute and ShellExecuteEx > > calls? > > Use a flag file. > > while flagFileExists do > doEvents(0) > end while > That would work, if the second program was open source. It isn't. > -=ck > "Programming in a state of EUPHORIA." > http://www.cklester.com/euphoria/
4. Re: Suspending a program in Win32Lib.
- Posted by "Kat" <gertie at visionsix.com> Sep 16, 2004
- 460 views
On 16 Sep 2004, at 11:08, William Heimbigner wrote: > > > Here is basically what I am trying to do: > > button_onClick(int self, int event, seq params) > Execute_Some_Program() > while program_is_still_running do > doEvents(0) > end while > restart(0) > end procedure > > Any ideas on how to do 'program_is_still_running' using ShellExecute and > ShellExecuteEx calls? > > Btw, a virtual cookie to the first person who guesses why I want to do this! > :) > Thx, William Heimbigner icxcnika at hotpop.com Visit the UBoard - Forceful > Signups > Removed! - http://uboard.proboards32.com - Threaded discussion, improved > searching, human moderating, graphical smileys, better formatting abilities > (now > what else was there...) Visit my website: http://www.geocities.com/icxcnika123 > > > > sleep() will pause the program. Kat
5. Re: Suspending a program in Win32Lib.
- Posted by Matt Lewis <matthewwalkerlewis at yahoo.com> Sep 16, 2004
- 458 views
William Heimbigner wrote: > > Here is basically what I am trying to do: > > button_onClick(int self, int event, seq params) > Execute_Some_Program() > while program_is_still_running do > doEvents(0) > end while > restart(0) > end procedure > > Any ideas on how to do 'program_is_still_running' using ShellExecute and > ShellExecuteEx > calls? First, please don't post html. Second, take a look at: http://palacebuilders.pwp.blueyonder.co.uk/euphoria.html#syswait Matt Lewis
6. Re: Suspending a program in Win32Lib.
- Posted by Michael Raley <thinkways at yahoo.com> Sep 16, 2004
- 465 views
- Last edited Sep 17, 2004
there's code somewhere already in the archive where you can get the handle of a running window by it's title. I wrote a small switching app based on it that swaps between differnt Internet explorer screens every ten seconds. Greg Haberek - Apr 7/03 "Monitor all windows" and I think PatRat - Jun 25/01 "Window Finding functions" I have some command line exe's to find running windows and kill them. --"ask about our layaway plan". --
7. Re: Suspending a program in Win32Lib.
- Posted by Greg Haberek <ghaberek at gmail.com> Sep 17, 2004
- 477 views
My program is based on PatRat's library. I just made a working demo of it. It doesn't auto-refresh, although it should. Its a handy little app for finding rouge windows or tracking down viruses. ~Greg On Thu, 16 Sep 2004 14:35:43 -0700, Michael Raley <guest at rapideuphoria.com> wrote: > > posted by: Michael Raley <thinkways at yahoo.com> > > there's code somewhere already in the archive where you can get the handle of > a running window by it's title. I wrote a small switching app based on it > that swaps between differnt Internet explorer screens every ten seconds. > > Greg Haberek - Apr 7/03 "Monitor all windows" > and I think > PatRat - Jun 25/01 "Window Finding functions" > > I have some command line exe's to find running windows and kill them. > > --"ask about our layaway plan". > -- > > > > >