• 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.

Signature Tagged With add calculator to context menu , calculator context menu , voice calculator in vb

This Article Has Been Shared 596 Times!

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 computer speak from right click the text you want

    Get an option in Windows 7 right click menu click it and type whatever you want to make your computer speak.

  • 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.

  • Cascading list of programs in right click context menu in Windows 7

    After reading this tutorial, you will be able to add a right click custom named menu and cascading list of submenu of third party or default programs with icons of your choice in Windows 7.

Additionally, 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…

 

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

  • Online Dating: How to Find Your Match March 20, 2023
  • Web Design Cookbook: Logo March 19, 2023
  • How Starlink Internet Works March 17, 2023
  • The Importance of a Camera Tracking System in Virtual Production March 15, 2023
  • Understanding the Key Differences between Docker and OpenVZ March 14, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Talking Calculator in right click context menu without any software," in The Customize Windows, June 23, 2011, March 20, 2023, https://thecustomizewindows.com/2011/06/talking-calculator-in-right-click-context-menu-without-any-software/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT