24 April 2016

How to Find out the Gender of Your Computer - Fun Trick

1 comment
Are you one of those million people who still don't have any girlfriend? Well I also comes under the same category just because I love my computer. But good news is, now you can be in relationship with your computer and hopefully it should be of opposite gender (LOL). This can be checked with the help of a simple Windows trick which let you find out the gender of your computer or laptop. This tutorial will guide you how to do that. We will be using a VBScript program for this trick. So before moving to the steps first let me introduce you with this new term.

Find Out the Gender of Your Computer

VBScript is an active scripting language developed by Microsoft. The full form of VBScript is Visual Basic Scripting. It is designed as a lightweight language with a fast interpreter used in a wide variety of Microsoft environments. The basic and the most common file type extension for VBScript program is ".vbs". This can be easily programmed in Notepad.

Creating a VBScript program

To find out the gender of your computer, you've to create a new program in this VBScript language. Simply follow these instructions -
  1. First of all, open Notepad from start menu. (Search it or use run command)
  2. Now copy paste or type this code inside it.
    Dim message, sapi
    message=InputBox("What do you want me to say?","Find My Gender")
    Set sapi=Createobject("sapi.spvoice")
    sapi.Speak message
  3. To save it, click on "File > Save As" option. Alternatively, you can use "CTRL+S" keyboard shortcut key.
  4. Now choose the location where you want to save this program (say I choose Desktop) and type its file name. For example, "Find-Gender.vbs".

    Save the Program

    Make sure to type ".vbs" after file name. As already mentioned, it is the file format of VBScript programs and without it, your program will not work.
  5. Finally hit save button and that's it.
Now go back to the location where you've saved the program and open it. It will ask you to type any words. Type anything meaningful and readable or simply say "I love you". Now press OK button and see the magic.

Find Computer Gender Program

You'll hear a voice from your computer. If it's a female voice then your computer is a girl and If it's a male voice then your computer is a boy. In this way, you can easily find out the correct gender. If you're unable to hear any voice, please consider these things -
  • Again make sure to check the file format of program. It should be in ".vbs" format. You can also check this by looking at the icon of program. (See below picture)

    VBScript Program Icon
  • Cross check the code again.
  • Turn on or Increase your computer volume.
In above program, you've to type the text at the time when you'll execute it. Apart from this, you can manually add the text in code. To do this, right-click on program and click "Edit" option. Now replace the previous code with this one and save changes by clicking "CTRL+S" shortcut key.
CreateObject("sapi.spvoice").Speak"I love you but as a friend, LOL"
This new program will automatically speak the text without displaying any window. You can change the text between quotes with your own words. This program can also be used as a Text to Speech tool. Simply type or copy paste the text inside it, sit back to your chair and listen.

Additional tip

Imagine how it would be when you'll open your computer and it will welcome you. Sounds good? Hm. I had already talked about this trick in my previous article. All what you need to do is to copy this program in startup folder.

Now let me tell you the basic logic behind this tricks. Anything saved inside startup folder will be executed each time when you'll open your computer (and even without asking for permission). In the same way, If you'll copy this program in same folder, it will start automatically and welcome you.

Note: For this tricks, use 2nd code and replace the quoted words with your welcome note. For example, "Welcome back to your PC sir (Your name here)" then copy the program and paste it here -

C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

You can find your computer username by executing "echo %username%" code in command prompt. When everything is done, restart your computer and see how it will welcome you. If you're facing any problem, fell free to ask me in comment box. Stay tuned for more interesting tutorials.

1 comment:

  1. That is so sweet. Wish you all the best for your upcoming journey. My sister was also having the same journey. She had used select baby gender introduction to select the gender of the baby. That was really effective and did not cost that much.