Hello Friends, Today’s I going to share a Trick by which you can make your computer greet you according to time. (i.e if it is morning time it will greet you Good Morning, if it is afternoon it will greet you good afternoon and if it is evening time it will greet you good evening.)
It is nothing but VBScript code. To apply this trick follow these steps:-
Step 1: Open notepad or any text editor (ie notepad++)
Step 2: Copy below code to text editor
Dim speaker, speech
if Hour(now()) > 0 and (Hour(now())) < 12 then
speech = "Good Morning Sir"
elseif Hour(now()) >= 12 and Hour(now()) < 17 then
speech = "Good Afternoon Sir"
elseif Hour(now()) >= 17 and Hour(now()) <= 24 then
speech = "Good Evening Sir"
set speaker = CreateObject("sapi.spvoice")
Step 3: Now save file with .vbs extension
Step 4: Now to check it is working double click on saved file, you will hear a sound if it is working correctly
Step 5: Open startup folder (to open startup folder type shell:startup in run utility and press enter)
Step 6: Copy saved file created in 3rd step to startup folder
Step 7: Now restart your computer and make yourself greeted from you computer
Please share if you like it