Search This Blog

Monday 8 June 2015

Turn Your Computer Into JARVIS From Iron Man

Its awesome! JARVIS Software (theme you can say) is awesome!

The awesome JARVIS look, the responsive home screen, the voice response, I am loving it!

 JARVIS is the personal assistant of Iron Man, and you know it, of course!


You might want to do the same for your desktop too! Almost everyone is tired of the old Windows look.

You probably have seen someone doing it and this has increased your curiosity further.

You might think its complicated but its not! Its one of the simplest things you can do!

Sure, you won't be able to get all the JARVIS features like Iron Man had, but still, we are going to enhance your computer experience!

Imagine how it would feel to shock your friends by shutting down your computer by just saying it!

Or how it would feel like when the computer would greet you at start up?

At the end of this tutorial, you will feel like saying: "I love JARVIS software!"

I want to clarify this thing. Before you take imagination to an extreme, let me tell you that no software invented yet is so smart to behave like JARVIS in true terms. However, this tutorial is just an attempt to match the looks and some basic voice commands to give you a JARVIS like feel.

Interested?

Let us move on then!


Here are the things you will need for the JARVIS Software Mission:


The whole process is quite long, but once it's done, you can be completely sure that your system is ready to accept your commands and in behave in some terms like JARVIS of Iron Man. The whole system can't actually be called JARVIS software, because the look of JARVIS is supported by a theme and the voice commands are taken with the help of Windows Speech Recognition. Additional customized commands are configured with the help of Speech Recognition Macros.

This mission is for computers running Windows 7, 8 or 8.1.

Here are the essential things you will need:
  • A Computer/Laptop having Windows 7 8 or 8.1. (XP or Vista won't work)

  • Microphone (If you don't have one, buy it! It doesn't cost much!)

  • Speech Recognition Setup.:-Well well, you need to understand some basic commands your computer takes to execute certain actions. I have written another tutorial just for this thing. Click here to read it.(IMPORTANT)

  • Rainmeter Software.:-This will constitute the base of the Iron Man theme. 

  • Iron Man theme pack.:-This is the theme and will work to make your computer look like JARVIS 

  • Windows Speech Recognition Macros.:-This is a software provided by Microsoft by which you will be able to add your own commands into the system.

  • Windows 7 Boot Screen Updater.:- This is to update the old look of your Windows Boot Screen.

  • The process is quite long. Therefore, I divided it into three steps.

    JARVIS Software Mission:-

    •  Step 1: Set up Windows Speech Recognition

    This is the very basic step of what we're going to do. You have to configure Windows Speech Recognition so that you can execute the basic commands by speaking.

    Windows Speech Recognition will guide you through the commands and in the meantime, also train your computer to understand your voice better. So, after you take the tutorial, you will notice that your system understands your commands better than anyone else's. Awesome, isn't it?

    I gave the link to the tutorial before itself. Make sure that you read it, and take time learning the basics. The more you accustom yourself to the commands, the better you can command your system.

    It took me almost half an hour to complete this step on my desktop, but it was well worth it, because all the basic commands can be executed by me just by speaking!
     
    • Step 2: Installing Windows Speech Recognition Macros


    You now know all the basic commands and now can control your computer with your voice. Use it and get more and more familiar with it.

    Remember that, whenever you are stuck, you can say "What can I say?" and your system will show up the list of the commands and their consequences.

    Now we have to install the Windows Speech Recognition Macros.

    The installation file is found in the files you recently downloaded. Install Windows Speech Recognition Macros using that setup file.

     

     
    You just have to click on the "Install" button and your software will be ready!

    Now, open Windows Speech Recognition Macros and you will soon find the icon in the Notification Area of the taskbar.
     
     
    Right click on that icon and you will receive some options. Click on "New speech macro".

    Now here you have a variety of options. Basically, Windows Speech Recognition is meant to create your own commands with specific actions. We can't be satisfied with the basic functions only right?
     

    Here are the alternatives you have, explained in brief:

    Insert Text: Suppose if you use Microsoft Word through Speech Recognition and don't want to type your address again, you can set a specific phrase for your address and whenever you say that phrase, your address would by typed automatically.

    Run a Program: There are default commands such as "Start WordPad" and "Start Notepad" for WordPad and Notepad respectively. There are commands for some other programs too! But what about the rest? This option can allow you to execute any program, maybe your favourite game by just speaking!

    Send Keystrokes: Take a situation where you want to select all the text and copy it into the clipboard. Can you do it by just speaking? Oh yes, why not? This option allows you to add phrases for different keystrokes such as Ctrl+A and Ctrl+C!

    Emulate Recognition: This is for the commands already supported by Windows Vista Speech Recognition.

    Advanced: There are certain complex commands that we would like our JARVIS to do. However, this requires brief knowledge of XML. I have explained some of the commands you can use below:

    (Note that the commands are listed in the order in which they are supposed to be used)
    <speechMacros> - This is just a starting tag. This indicates that the code is actually for Windows Speech Recognition Macros.

    <command> - This, in short words, is the command to be executed. Sometimes your demands are fulfilled with just a single command. However, in some cases you would need more than one command too!

    <listenFor></listenFor> - Whatever you are going to speak is supposed to be written between these two tags. Don't forget the close tag else your code will not work.

    <speak></speak>- These tags should include the text your system is supposed to speak after listening to your command.

    </command> - This is the closing tage of <command> tag. XML is like HTML. It has both opening and closing tags for every element, with a few exceptions.

    </speechMacros> - This is the closing tag of <speechMacros>!

    Now, I will show you some examples to explain it better.

    But before that, I want to tell you that it is extremely important to digitally sign your macros! So before creating every single macro, you have to create a signing certificate! Every macro will need one certificate.

    For creating a signing certificate, right click the Windows Speech Recognition icon in the notification pane, then go to Security, then press "Create Signing Certificate".

    Suppose if you want your computer to greet you when you command it to wake up, you can use the below Macros:

    < speechMacros>
    < command>
    < listenFor>Wake Up Jarvis</listenFor>
    < speak>Systems Online, Database Check, Good Morning Sir !</speak>
    < /command>
    < /speechMacros>

    I love this one the most!

    Here is a Macro for getting the weather. You can see that it's a bit complicated to understand. But no worries! You just have to copy this macro and replace the text in bold with the desired details.

    < ?xml version="1.0" encoding="UTF-16"?>
    < speechMacros>
    < command>
    < listenFor>Pull up the weather in [CityName]</listenFor>
    < run command="http://www.weather.com/weather/local/{[CityName.zipCode]}"/>
    < /command>
    < command>
    < listenFor>Is it cold in [CityName]?</listenFor>
    < speak>Let me check... just a moment.</speak>
    < script language="JScript">
    < ![CDATA[
    < var xml_doc = new ActiveXObject("Microsoft.XMLDOM");
    < xml_doc.async = false;
    < xml_doc.load("http://www.rssweather.com/zipcode/{[zipCode]}/rss.php");
    < var titles = xml_doc.getElementsByTagName("title");
    < var descriptions = xml_doc.getElementsByTagName("description");
    < Application.Speak(titles.item(2).text + " in {[*CityName]}");
    < Application.Speak(descriptions.item(2).text);]]>
    < /script>
    < /command>
    < listenForList name="CityName" propname="zipCode">
    < item propval="65201">Columbia</item>
    < item propval="37201">Nashville</item>
    < /listenForList>
    < /speechMacros>

    Woah! What a lengthy piece of code. If you aren't much into this coding stuff, I would suggest you to leave the above macro.

    This is a Macro for restarting your computer. Simply say "Restart JARVIS" and your system will restart!
    < speechMacros>
    < command>
    < listenFor>Restart JARVIS</listenFor>
    < speak>Rebooting The System. See you shortly, Sir!</speak>
    < run command="C:\Windows\System32\shutdown.exe" params="-r -t 00"/>
    < /command>
    < /speechMacros>

    Here is a Macro for shutting down your system. Say "Goodbye JARVIS" and your system will shut down!

    < speechMacros>
    < command>
    < listenFor>Goodbye JARVIS!</listenFor>
    < speak>Getting offline, good bye Sir</speak>
    < run command="C:\Windows\System32\shutdown.exe" params="-s -t 00"/>
    < /command>
    < /speechMacros>

    If you want your system to tell you the time, use this macro:

    < ?xml version="1.0" encoding="UTF-16"?>
    < speechMacros>
      <command>
    < listenFor>What's the time, Jarvis?</listenFor>
    < script language="vbscript">
    < ![CDATA[
    dim currentTime
    currentTime = FormatDateTime(Time(), 1)
    Application.Speak Time
    Application.SetTextFeedback Time
    ]]>
    < /script>
    < /command>
    < /speechMacros> 
    Likewise, if you want your system to tell you the date, use the below macro:

    ?xml version="1.0" encoding="UTF-16"?>
    < speechMacros>
    < command>
    < listenFor>What's the date, Jarvis?</listenFor>
    < script language="vbscript">
    < ![CDATA[
    dim todaysDate
    todaysDate = Date
    Application.Speak Date
    Application.SetTextFeedback Date
    ]]>
    < /script>
    < /command>
    < /speechMacros>

    Suppose you have just opened a file or a folder and you want to delete it, simply use the below macro:
    < ?xml version="1.0" encoding="UTF-16"?>
    < speechMacros>
    < command>
    < listenFor>Delete it!</listenFor>
    < sendKeys>{DELETE}</sendKeys>
    < speak> File has been Deleted, Sir </speak>
    < /command>
    < /speechMacros> 

    The last one! Want to empty your recycle bin? The below macro is to the rescue:

     <?xml version="1.0" encoding="UTF-16"?>
    < speechMacros>
    < command>
    < listenFor>Empty the Recycle Bin</listenFor>
    < run command="C:\nir\nircmd.exe" params="emptybin" />
     <speak> Done, Sir </speak>
    < /command>
    < /speechMacros> 


    Did I horrify you with too many codes! Note that NONE OF THE CODES GIVEN HERE ARE MANDATORY and you can always skip or modify any piece of code! After all, your system, your rules!
    Step 3: Installing Jarvis Theme
     
    You're very near! You just have to install these - Rainmeter and Iron Man Theme, both of which are provided in the files.

    Rainmeter will do the job of supporting your theme and providing it with a base.

    Now, change your desktop background (Wallpaper) to the image provided in the files.

    You now have to load the theme skins. You have four colours to choose from - Blue, Green, Red and Yellow. While I like blue, it's completely up to you for which to choose!

    Simply load the skins of the colour you have chosen. Click on the skin and press "Load" button. This is shown in the image given below:
     

     
    You will notice that all the elements will be found at just one place. Rearrange them the way you like and Voila! Your system really looks like JARVIS now!

    But hold on! Your desktop icons are still visible and that ruin the look. There's a solution for that too!

    Simple, right click on your desktop, hover to view, then uncheck "Show desktop icons" option.

    Look at the below image for reference:
     
    This is how my screen looks like now:

    HAHAHA! Awesomeness at it's best, right?

    Bonus #1

     
    BONUS! (I love bonuses!) Copy-paste the below code into notepad and save it as welcome.vbs (not .txt) in your system's startup folder. Startup folder can be accessed by right clicking on Start Menu and choosing "Open All Users."

    Dim speaks, speech
    speaks="Welcome to your Computer, Sir"
    Set speech=CreateObject("sapi.spvoice")
    speech.Speak speaks

    Note: You can edit "Welcome to your Computer, Sir" to whatever you like!
    Click Here To Download
    Click Here To Download Clock Note

    Bonus #2

    How about changing the old crappy look of your boot screen? You can use the boot screen changer available in the files to change the text as well as the animated Windows Logo.

    Click here to browse for some cool boot screen animations!

    Final Words

    I hope that you enjoyed reading this tutorial!
    I told you that you will feel like saying:"I love JARVIS software!" and you probably do feel like saying it!
    Do me one favor! Can you share this post?

    I have updated this guide three times to make sure that you get the information accurate and up to the point. Show that you liked it by sharing it!

    And yes, sharing takes just a second with our cool sharing buttons found at the end of the post!

    1 comment: