Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use Win32::OLE; use Win32::OLE::Variant; my $player= Win32::OLE->new('MediaPlayer.MediaPlayer') or die Win32::OLE->LastError(); $player->{'Autostart'} = Variant(VT_BOOL, 1) or die Win32::OLE->LastE +rror(); $player->{'FileName'} = "C:\\d\\media\\video\\Maratonci.avi" or die Wi +n32::OLE->LastError(); print "FileName = $player->{FileName}\n"; sleep(5); $player->AboutBox; sleep(5); $player->Invoke(Play) ; #$player->Play or die Win32::OLE->LastError(); sleep(30); $player->Quit() or die Win32::OLE->LastError();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trouble with WMP and OLE
by blm (Hermit) on Mar 02, 2003 at 07:19 UTC | |
by Anonymous Monk on Mar 02, 2003 at 09:56 UTC | |
|
Re: Trouble with WMP and OLE
by Zero_Flop (Pilgrim) on Mar 02, 2003 at 17:10 UTC | |
by Anonymous Monk on Mar 02, 2003 at 23:20 UTC |