I have been asked to convert a Windows Script File into a Perl script for someone. I don't have any WSF scripting skills & wondered if any PerlMonks out there would be kind enough to help me convert it.
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>
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.