external Windows program running?
Lynch, Jonathan
bnz2 at cdc.gov
Mon Aug 29 14:15:37 EDT 2005
You can also just check every now and then to see if the application is
among the openprocesses.
And Xavier, you can launch an app via shell command without it locking
up - at least, Chipp's method so far has not locked up the Rev app for
me. I would be happy to send it to you, if you wish.
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of MisterX
Sent: Monday, August 29, 2005 2:08 PM
To: 'How to use Revolution'
Subject: RE: external Windows program running?
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
>
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list