dmtelf has asked for the wisdom of the Perl Monks concerning the following question:
Please do not vote this down if you don't like it because it is a WSF scripting question. Consider it as assisting a WSF fanatic to convert to Perl, and a small starting point for any PerlMonks who have similar problems in future!
<job> <script language="VBScript"> Dim Test # Take a look at the Running Object Table for "MMT.VideoServeAutomatio +n.1" (known as the program ID) # Return an object pointer to currently running instance of the object +. Set Test=GetObject (,"MMT.VideoServeAutomation.1") Set Vid = Test.VideoServeStatus # Take Vid object & connects it so it gets the windows event. WScript.ConnectObject Vid,"ie_" WScript.Sleep (800000) Sub ie_Connected ( number, CallerID) MsgBox "Hello" End Sub Sub ie_DisConnected ( number) MsgBox "Goodbye!" End Sub Sub ie_DTMFTone (Cardnumber,Tone) MsgBox "Tone!" End Sub </script> </job>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Corion) OLE Automation with Perl even has Events
by Corion (Patriarch) on Aug 04, 2000 at 12:57 UTC | |
|
(crazyinsomniac) Re: Converting a small Windows Script File to a Perl equivalent
by crazyinsomniac (Prior) on Aug 04, 2000 at 12:48 UTC |