Make an assistant for your computer in 5 minutes

 by Super_Nerd
Windows 7 Logo.jpg
Heard of the new iPhone 4S with Siri? In under an hour I made one for windows in VBS. Now I can open youtube just by saying "youtube OK"
or search google by saying "google OK" Get prepared for making your own new form of using your computer.

You will need

-Windows Vista and up Machine (if you want voice activation. if not windows 98 or higher)
-5 minutes
-Microphone (If you want voice activation)
 
Remove these adsRemove these ads by Signing Up
ATI4890HD says: Nov 15, 2012. 12:46 PM
great.. I think I gonna edit the 'else' & 'endif' a lot to do my assistant work better
Super_Nerd (author) in reply to ATI4890HDNov 15, 2012. 7:12 PM
Great. Feel free to post your code up here.
BigMikeDog says: Jan 6, 2012. 11:37 AM
This is cool thanks for the info about the speech program on windows 7 im using right now i would suggest adding more programs to the personal assistant I added a Internet shortcut a game or two and a movie but still working on getting it to work it seems when it goes through the wshshell.run part it does not conect to the stuff i added and sugestions?

thanks bigmikedog :D
Super_Nerd (author) in reply to BigMikeDogJan 6, 2012. 12:34 PM
Did you make sure you had quotation marks around the shortcuts?

Tell me the error that you get.
BigMikeDog in reply to Super_NerdJan 6, 2012. 2:39 PM
here is the the code im useing Set Sapi = Wscript.CreateObject("SAPI.SpVoice")
set wshshell = wscript.CreateObject("wscript.shell")

dim Input

wshshell.run "%windir%\Speech\Common\sapisvr.exe -SpeechUX"
Sapi.speak "Please speak, or type, what you want to open?"
Input=inputbox ("Please speak, or type, game for games, command prompt for cmd, site list for sitegoto, calculator for the calculator, notepad for notpad, log_me_out for shutdown options, or close to close the program")

if Input = "Site list" OR Input = "site list"then
Sapi.speak "loading site list"
wshshell.run "C:\Users\Michael\Desktop\bat games\sitegoto.bat"

else
if Input = "Game" OR Input = "game" then
Sapi.speak "loading game list"
wshshell.run "C:\Users\Michael\Desktop\bat games\games.bat"

else
if Input = "command prompt" OR Input = "Command prompt" then
Sapi.speak "Opening command prompt"
wshshell.run "cmd"

else
if Input = "calculator" OR Input = "Calculator" then
Sapi.speak "Opening calculator"
wshshell.run "calc"

else
if Input = "notepad" OR Input = "Notepad" then
Sapi.speak "Opening notepad"
wshshell.run "notepad"

else
if Input = "log_me_out" OR Input = "log me out" then
Sapi.speak "starting log me out"
wshshell.run "C:\Users\Michael\Desktop\bat games\log-out.bat"

else
if Input = "close" then
Sapi.speak "Goodby Michael"

else
Sapi.speak "I don't recognize your input, Please try something else"
end if
end if
end if
end if
end if
end if
end if

when i type in game it says the right thing but then it gives me this error mesage " line 17 chariter 1 (witch is the wshshell.run code bit) Error the system cannot find the file specified"
thanks -bigmikedog
Super_Nerd (author) in reply to BigMikeDogFeb 7, 2012. 1:06 PM
Sorry it took so long to reply. Try just putting games.bat in the same folder assistant.vbs is in. Then instead of

C:\Users\Michael\Desktop\bat games\games.bat

put

games.bat
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!