external Windows program running?

MisterX b.xavier at internet.lu
Mon Aug 29 14:07:47 EDT 2005


Doug,

if you launch your pc application via shell,
then when the user closes that application,
rev just has to continue working... 
meanwhile while your app runs, rev is "blocked..."

I find the behavior hideous but at least it
does have ONE use...

The other way is to check every now and then if the
application quit via a shell("pstools! not exact syntax") from pstools or
the like. you can find pstools at

http://www.sysinternals.com

then 
on Checkmyappisrunning
  if "myapp.exe" is not in getappsrunning() then
    -- do mything
    quit
  end if
  send "checkmyappisrunning" to me in 2 seconds
end Checkmyappisrunning

function getappsrunning
  return shell("plist" )
end getappsrunning

cheers
Xav 
http://monsieurx.com

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com 
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Revolution
> Sent: Monday, August 29, 2005 19:37
> To: How to use Revolution
> Subject: Re: external Windows program running?
> 
> Launching isn't the problem. I need to know when the nonrev 
> program terminates.
> 

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> Revolution
> Sent: Monday, August 29, 2005 11:36 AM
> To: use-revolution at lists.runrev.com
> Subject: external Windows program running?
> 
> In general:
> I am using revolution to launch a nonrevolution program. I 
> need to know
> when
> the user shuts down the nonrev program so that I can shut down rev. Is
> there
> a method of doing this?
> 
> Details:
> The nonrev program does not properly hide the Windows taskbar. I need
> rev to
> be running to keep the taskbar hidden, but I need to 
> automatically shut
> rev
> down when the user closes the nonrev program.
> 
> The nonrev program is useless at sending and receiving messages but it
> can
> launch another program. I tried launching my rev windows taskbar hider
> and
> having the rev program close but as soon as rev closes, rev 
> "tidies" up
> and
> the taskbar reappears.
> 
> Open to suggestions and thankful for them.
> 
> Doug
> 




More information about the use-livecode mailing list