Computer Tips Tricks
NotePad Fun in Windows | Some NotePad Hacks
Today we are doing some fun with our friends.we create some .vbs or .bat file for some fun.
we create .vbs file for Greeting Welcome Speaking Message with name. This Script auto run when i start my Laptop/Cpmputer and also we know about our Laptop Gender :-P and we create a personal Notepad diary. After that we create come .bat file too.
LetsStart
1: Welcome PC
Open a notepad and paste the code bellow.
Code Start:
Dim msg, sapiSet sapi = createObject("sapi.spvoice")Set sapi.Voice = sapi.GetVoices.Item(1)sapi.Speak "Welcome to PC Mr LifeHacks"
If you face any issue in Win 7 or xp then you use bellow code..
.and save the file name "welcomePC.vbs"Dim Speak, speech speaks="Welcome to your PC Tariq Khan" Set speech=Createobject("Sapi.spvoice") speech.Speak speaks
Don't forget the .vbs extesion.
2:Speak Computer
If you want to make a file where you can type any word and Computer pronounce that word.
This is very amzaing, Lets try it
Copy the bellow code paste in NotePad and save the file name : Speak Computer.vbs
Dim Message, SpeakMessage=InputBox("Enter text","Speak")Set Speak=CreateObject("sapi.spvoice")Speak.Speak Message
3: PC Gender
Do you know about your Computer Gender? NO?
Its not a problem. We can check our Computer gender using vbs code.
Copy bellow code and paste it on a NotePad file and save the file with name: PC Gender.vbs
CreateObject("SAPI.SpVoice").Speak"Hello How Are You, Iam your PC , Nice to meet you."
4:
Post a Comment
0 Comments