Jump to content

Recommended Posts

Guest CreeperKing
Posted

I created a simple .vbs file that plays a sound.

 

 

Dim oPlayer

Set oPlayer = CreateObject("WMPlayer.OCX")

 

oPlayer.URL = "xpstart.wav"

oPlayer.controls.play

While oPlayer.playState <> 1 ' 1 = Stopped

WScript.Sleep 100

Wend

 

oPlayer.close

 

 

What I want to do now is create a task that can run this script. I tried to do that but my script never ran. What do I need to do to make my script run? Do I need to make the task execute microsoft windows based script host.exe and then have it target my script file? How would I do that? Also, is there a line of code that I can add to my script to change the volume lvl that the sound plays at?

 

Continue reading...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...