On 03/24/2011 12:05 AM, John Spikowski wrote:
> On Wed, 2011-03-23 at 23:03 -0400, Kevin Fishburne wrote:
>
>> That will probably work, but there should be a mathematical way to
>> compensate for not cropping the image twice, or even once. As long as
>> the entire image is preserved by the rotation
This seems to work... but it is not very nice code, as it doesn't make
distinction of what instance of "get_iplayer" or "mplayer
you are dealing with...
Also it leaves some trash (get_iplayer doesn't take care of it's trashes!)
to ~/.get_iplayer.
Maybe get_iplayer should be killed with some other
> I think this is what Benoit means;
>
> PUBLIC hProc AS Process
>
> PUBLIC SUB btnPlay_Click()
> hProc = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -")
> FOR WRITE
> END
>
> PUBLIC SUB btnStop_Click()
>
> IF hProc.State = Process.Running THEN
> DEBUG hProc.Handle
>
I think this is what Benoit means;
PUBLIC hProc AS Process
PUBLIC SUB btnPlay_Click()
hProc = SHELL ("get_iplayer --stream 13280 | mplayer -cache 3072 -") FOR
WRITE
END
PUBLIC SUB btnStop_Click()
IF hProc.State = Process.Running THEN
DEBUG hProc.Handle
SHELL "kill -s HUP " & CSt
Benoît, what do you mean by "run shell again" ?
I tried:-
IF hProc THEN
hProc.Kill
SHELL ""
ENDIF
with no effect
Bill
--
View this message in context:
http://old.nabble.com/help-with-EXEC-usage-tp31208112p31235898.html
Sent from the gambas-user mailing list archiv