• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Talking Calculator in right click context menu without any software

By Abhishek Ghosh June 23, 2011 4:40 pm Updated on June 23, 2011

Talking Calculator in right click context menu without any software

Advertisement

Here is tutorial to add a Talking Calculator in right click context menu without any software for your Windows 7 or any version of Windows PC.

 

You might be interested on other similar automated voice oriented tutorial using VB scripts, like:

  • Your computer will greet you with current time and date on startup
  • Your computer will shut down from a right click option with custom speech
  • Your computer will speak the current time from right click menu

Let us proceed on how to make your Windows 7 Talking Calculator.

Advertisement

---

Here is the screenshot:

 

Talking Calculator in right click context menu

 

Creating the Talking Calculator VB Script

 

We have modified to add voice function to a existent VB Script calculator created by an unknown developer. Please let us know his / her name, we will give the credit for the Calculator function. We have added the voice function and all other things.

 

Open Notepad. Write the following things for making your Talking Calculator:

 

Set wshshell=wscript.createobject(“wscript.shell”)
Set Sapi = Wscript.CreateObject(“SAPI.SpVoice”)
set ObjVoice = CreateObject(“SAPI.SpVoice”)
Dim msg,input
Sapi.speak “Choose System of Calculation and hit OK”
msg = “Choose System of Equations:” & vbCR
set ObjVoice = CreateObject(“SAPI.SpVoice”)
ObjVoice.Speak StrText
msg = msg & “” & vbCR
msg = msg & “1. Multiplication ” & vbCR
msg = msg & “2. Addition ” & vbCR
msg = msg & “3. Division ” & vbCR
msg = msg & “4. Subtraction ” & vbCR
msg = msg & “5. Absolute Value ” & vbCR
msg = msg & “6. Raising to a Power” & vbCR

input = InputBox(msg,”Calculator Main Menu”)
SdrText=(“You have chosen ” + input)
Select Case input

case “1”
Dim a, b, sum
Sapi.speak “Input your first number to be multiplied and hit OK”
a=inputbox(“Input your first number to be multiplied.”, “Multiplication- First Number”, “Enter your number”)
Sapi.speak “Input your second number to be multiplied and hit OK”
b=inputbox(“Input your second number to be multiplied.”, “Multiplication-Second Number”, “Enter your number”)
if not isnumeric (a) then
a = false
end if
If a = vbCancel then
wscript.quit
end if
if not isnumeric (b) then
b = false
end if
If b = vbCancel then
wscript.quit
end if
Sapi.speak “The product of the two digits you entered is”
c=msgbox(“Your Answer: “& a * b, vbInformation, “Product”)

case “2”
Sapi.speak “Input your first number to be Added and hit OK”
a=inputbox(“Input your first value to be added.”, “Addition- First Value”, “Enter your number”)
Sapi.speak “Input your second number to be Added and hit OK”
b=inputbox(“Input your second value to be added.”, “Addition- Second Value”, “Enter your number”)
if not isnumeric (a) then
a = false
end if
If a = vbCancel then
wscript.quit
end if
if not isnumeric (b) then
b = false
end if
If b = vbCancel then
wscript.quit
end if
sum= Cdbl (a) + Cdbl(b)
Sapi.speak “The sum of the two digits you entered is”
MsgBox “Your Answer: ” & sum, vbInformation, “Sum”

case “3”
Sapi.speak “Input the number to be divided and hit OK”
a=inputbox(“Input your first number to be divided.”, “Division- First Number”, “Enter your number”)
Sapi.speak “Enter the digit you want to divide by and hit OK”
b=inputbox(“Input your second number to be divided.”, “Division-Second Number”, “Enter your number”)
if not isnumeric (a) then
a = false
end if
If a = vbCancel then
wscript.quit
end if
if not isnumeric (b) then
b = false
end if
If b = vbCancel then
wscript.quit
end if
Sapi.speak “The result of the two digits you entered is”
c=msgbox(“Your Answer: “& a / b, vbInformation, “Quotient”)

case “4”
Sapi.speak “Input the first number to be Subtracted and hit OK”
a=inputbox(“Input your first value to be Subtracted.”, “Subtraction- First Value”, “Enter your number”)
Sapi.speak “Input the second number now and hit OK”
b=inputbox(“Input your second value to be Subtracted.”, “Subtraction- Second Value”, “Enter your number”)
if not isnumeric (a) then
a = false
end if
If a = vbCancel then
wscript.quit
end if
if not isnumeric (b) then
b = false
end if
If b = vbCancel then
wscript.quit
end if
difference= Cdbl (a) – Cdbl(b)
Sapi.speak “The result of the two digits you entered is”
MsgBox “Your Answer: ” & difference, vbInformation, “Difference”

case “5”
Sapi.speak “Input the the value you want the absolute value”
a=inputbox(“Input the the value you want the absolute value of.”, “Absolute Value- Input Value”, “Enter your number”)
if not isnumeric (a) then
a = false
end if
If a = vbCancel then
wscript.quit
end if
Sapi.speak “the absolute value is”
msgbox “Your Answer: ” & abs(a), vbInformation, “Absolute Value”

case “6”
Sapi.speak “Input the the value you want raised to a power and hit OK”
a=inputbox(“Input the the value you want raised to a power.”, “Base Number- Input Value”, “Enter your number”)
if not isnumeric (a) then
a = false
end if
If a = vbCancel then
wscript.quit
end if
Sapi.speak “Input your the desired exponent as the second value. It can be of, any value from 0 to 10”
b=inputbox(“Input your the desired exponent as the second value (any value from 0 to 10).”, “Exponent- Second Value”, “Enter your number”)
if not isnumeric (b) then
b = false
end if
If b = vbCancel then
wscript.quit
end if
if b = 0 then
msgbox “Your Answer: ” & 1, vbInformation, “Number Raised to an Exponent”
end if
if b = 1 then
msgbox “Your Answer: ” & a, vbInformation, “Number Raised to an Exponent”
end if
if b = 2 then
msgbox “Your Answer: ” & a * a, vbInformation, “Number Raised to an Exponent”
end if
if b = 3 then
msgbox “Your Answer: ” & a * a * a, vbInformation, “Number Raised to an Exponent”
end if
if b = 4 then
msgbox “Your Answer: ” & a * a * a * a, vbInformation, “Number Raised to an Exponent”
end if
if b = 5 then
msgbox “Your Answer: ” & a * a * a * a * a, vbInformation, “Number Raised to an Exponent”
end if
if b = 6 then
msgbox “Your Answer: ” & a * a * a * a * a * a, vbInformation, “Number Raised to an Exponent”
end if
if b = 7 then
msgbox “Your Answer: ” & a * a * a * a * a * a * a, vbInformation, “Number Raised to an Exponent”
end if
if b = 8 then
msgbox “Your Answer: ” & a * a * a * a * a * a * a * a, vbInformation, “Number Raised to an Exponent”
end if
if b = 9 then
msgbox “Your Answer: ” & a * a * a * a * a * a * a * a * a, vbInformation, “Number Raised to an Exponent”
end if
if b = 10 then
msgbox “Your Answer: ” & a * a * a * a * a * a * a * a * a * a, vbInformation, “Number Raised to an Exponent”
end if
End Select

 

Save the file as Talking Calculator.vbs for the example above and do not forget to change the file type from text to All files from drop down menu in Notepad before saving it. Obviously, you can save with any name you like.

The red texts are what the computer will speak in Talking Calculator option.

Double clicking the file will bring the Talking Calculator.

 

Get this Talking Calculator in right click context menu in Windows 7

Place the Talking Calculator vbs file created in the previous step at the root of C drive.

Open Notepad, copy paste the following and modify as per your need:

 

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryBackgroundshellTalking Calculator]
“Icon”=”C:WindowsSystem32Narrator.exe”
“Position”=”Bottom”

[HKEY_CLASSES_ROOTDirectoryBackgroundshellTalking Calculatorcommand]
@=”Wscript.exe “C:Talking Calculator.vbs””

 

Save the file as Add Talking Calculator.reg and do not forget to change the file type from text to All files from drop down menu in Notepad before saving it. Name does not matter here at all. You can save as you like.

Now, double click the reg file and accept the security warnings and you will see the Talking Calculator option in right click context menu when clicked on a folder or any empty place inside folder or Windows 7 desktop.

 

Removal of Talking Calculator option from the right click menu:

 

Add a minus sign before the H starts after the third bracket; like [-HKEY_CLASSES…. to all where there is HKEY and save it (with some good name) as reg file and run it.

Obviously, you might delete the Talking Calculator vbs file manually too.

 

Talking Calculator will work on Windows 95, Windows 98, Windows NT, Windows 2000, Windows Millennium, Windows XP, Windows Vista, Windows 7, Windows 8.

 

Downloads for Talking Calculator from right click tutorial:

 

As usually all the required files are here for the Talking Calculator option is for your download.

The rar file is password protected, type thecustomizewindows.com as the password.

SignatureTagged With add calculator to context menu , calculator context menu , voice calculator in vb
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Talking Calculator in right click context menu without any software

  • Talking clock in right click context menu without any software

    After reading this tutorial, you will get an option in the right click context menu, click which your computer will speak the current time by your clock.

  • Talking Program Opener with Input Window in Right Click Context Menu

    Talking Program Opener with Input Window in Right Click Context Menu tutorial will show how you can create a interactive talking program opener to open any file with specific program in Windows 7.

  • Let your PC speak what you want while shutting down with a timer

    Your computer will speak as you want while shutting down along with a timer. Microsoft Anna’s voice will speak as you like while shutting down.

  • Windows 7 Right Click Menu Tips,Tricks and Tutorials : Index

    Windows 7 Right Click Menu Tips,Tricks and Tutorials those has been published within The Customize Windows till date is listed here along with description.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Comments

  1. Avatarjapp says

    June 24, 2011 at 3:37 pm

    Nice one :)

    “The red texts are what the computer will speak in Talking Calculator option.”
    Well, either have I or Chrome gone colour blind……….. :) Will you fix so there will be red text?

  2. AbhishekAbhishek says

    June 24, 2011 at 3:43 pm

    You actually seeing a cached page. In that, the text were not marked red.
    We will flash the cache after 5-6 hours (Sorry for the late, a high load is on the server right now); you will be able to see the red things :)

  3. AbhishekAbhishek says

    June 24, 2011 at 3:52 pm

    So, please visit after 4 hours and clear your browser’s cache too; you’ll be able to see. Thank you for pointing the bug.

  4. Avatarjapp says

    June 25, 2011 at 7:13 am

    Thanks, now I see red :)

  5. AbhishekAbhishek says

    June 25, 2011 at 10:50 am

    Thats nice!

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

vpsdime

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud-Powered Play: How Streaming Tech is Reshaping Online GamesSeptember 3, 2025
  • How to Use Transcribed Texts for MarketingAugust 14, 2025
  • nRF7002 DK vs ESP32 – A Technical Comparison for Wireless IoT DesignJune 18, 2025
  • Principles of Non-Invasive Blood Glucose Measurement By Near Infrared (NIR)June 11, 2025
  • Continuous Non-Invasive Blood Glucose Measurements: Present Situation (May 2025)May 23, 2025
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2026 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy