Thursday, 24 January 2019

Welcome message on windows start.

welcome message on windows start
Play sound automatically on windows start .

play your welcome  message on windows startup


Dim message,speech

message="Welcome                                 Raushan"

Set speech=CreateObject("sapi.spvoice")
speech.Speak message


'only for message  then copy above code 



WScript.Sleep 500
speech.Speak "How are You ? "


'for song play copy this code 


Dim oPlayer
Set oPlayer = CreateObject("WMPlayer.OCX")

' Play audio
oPlayer.URL = "C:\Users\hp\Desktop\aayee.mp3"
oPlayer.controls.play 
While oPlayer.playState <> 1 ' 1 = Stopped
  WScript.Sleep 100
Wend

' Release the audio file
oPlayer.close

'end


For startup copy the  .vbs file on the startup  folder

Click on start menu and enter shell:Startup

or

C:\Users\hp\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

if system speaking rate is fast make it slow
by adding

speech.Rate = -5
speech.volume=100

 after


Set speech=CreateObject("sapi.spvoice")

on above code


No comments:

Post a Comment