Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Well, the good thing about VBScript is that it's included in Windows XP and all versions of Windows after that. So, if you create a file with .vbs extension and execute it, it will run. There's no need to install anything.

The same thing is true about JavaScript and VBScript. Files that end with .js .vbs can be executed just like any binary. You can either double-click on them or invoke them from perl.

But this probably doesn't work the same way on Mac or Android or Linux, so this solution is for Windows only. I am pretty sure there's a way to make Linux read something out loud, but I don't know how to do that. Oh wait, maybe it's through the PerlSpeak module.

VBScript is kind of like the BASIC language. It's very similar. But if you are familiar with JavaScript, then that works as well. JavaScript's syntax is more like Perl's or C syntax. There are tons of VBScript example programs online and manuals and references. The above code I wrote that makes the computer talk I did it by looking up various things online. I mean I myself couldn't write it from memory, but if I have to write something, I can look it up online and put the program together using online references and articles. I rarely use VBScript, but it's a cool feature in Windows.


In reply to Re^3: Playing wav files by harangzsolt33
in thread Playing wav files by merrymonk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-23 16:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found