answersLogoWhite

0


Best Answer

The VBScript/Visual BASIC Script programming language uses both letters/numbers to create programs with.

So, I'm not exactly sure what you mean by making a VBScript which uses only numbers, alone...? As the 'numpad' is made up of just numbers.

You need to explain yourself a little bit better, I'm afraid.

Did you mean, use VBScript to create a 'calculator program' with, possibly?

Anyway, here is a simple VBScript calculator program...

num1=CInt(InputBox("Enter the first number: ", "PROGRAM: Add 2 numbers"))

num2=CInt(InputBox("Enter the second number: ", "PROGRAM: Add 2 numbers"))

MsgBox("The answer is: " & num1+num2)

Type the above code into Windows Notepad; then, save it as...

add2num.vbs

...go and find the file you just saved; and, left double click on it to make the program RUN/execute. When the program runs you should see...

1. Enter the 1st number: (you can use the NumPad to type in a number)

2. Enter the 2nd number: (you can use the NumPad to type in a next number)

3. Finally, you should see a Windows standard message box appear with the sum total result of the two numbers which you did previously type in.

To do other sums...then, you can modify this simple calculator using...

+ ...plus sign

- ...minus sign

* ...multiplication sign

/ ...division sign

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a vbs script with numpad numbers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do make an autoclicker in notepad?

i am not answering this, but all i need to know is how i can use, either left click or keypad 5 in .vbs format because i have a spammer, and i just need to change the "{enter}" to numpad 5, and ive tried almost all solutions to this like"{NUMPAD5}" and things like that... PLEASE HELP ME!!!


How run vb script?

Hi! VBScript (Visual Basic Script) is very simple to learn easy! Open Notepad and type a coding language. Try this one: x=msgbox("Hello there this is VBScript!",0,"VBScript") Take this and save it as WHATeveryYOUwant.vbs (you must have .vbs at the end!) The x symbolizes a value. It's unneeded now. The msgbox means what box it uses. The first " " is the message. the 0 is the message type. 0 says ok. (try changing it!) The second " " is the title at the top bar. Wanna make you own? take out the words PUTTEXTHERE with what you want. also change # with a random number 0-140 i think. Good luck: x=msgbox("PUTTEXTHERE",#,"PUTTEXTHERE") You can make multiple lines. That's basic VBScript!


What does Vb stand for in electronics?

VBS stands for Visual Basic Scripting. It is used for Win9x and later versions of windows. It can be used for registry maintenance, Command Prompt (CMD), and also for pranks (as I do so myself). This is an example of a message box code: x =msgbox("Hello",0, "This is a VBS message box") Put this in notepad or wordpad and save as: anything you want to name it.vbs


What are the characteristics of vbscript?

1. Vbscript is an active scripting language which use the component object model to access element of the environment within which it is running. 2. Developer: Microsoft. 3. Both client side & server side scripting language. 4. Browser: Internet Explorer. 5. Case sensitive or not: Not case sensitive. 6.File extension: .vba or .vbs.


Is visual basic a scripted language?

VBSCRIPT FILES: (.vbs) No, VBScript is an 'interpreted' language; where the code is both read/interpreted and translated into machine code line by line; this is a rather 'slow' method of doing things, though, when compared with using a 'compiled' language, instead. A compiled language, on the other hand; runs code much faster; because it translates the whole entire program into machine code *before* running it. Compiled languages are used to create stand alone executable (.exe) files with. VBScript does NOT create stand alone executable (.exe) files; instead, VBScript creates (.vbs) files; which rely on having an interpreter program to work. ==== CONCLUSION As you can see from my short descriptions above...which are by no means fully exhaustive; VBScript, is a rich, powerful, and, extremely diverse form of programming technology; which in my own humble opinion, is very well worth learning; as it gives you lots of control covering many different areas; and, especially so, if you are interested in working with Microsoft Windows based technologies.

Related questions

What is the full form of vbs?

VBS is Visual basic Script.


How do you make a vbs script delete itself after running i would appreciate some sample code?

Set objFSO = CreateObject("Scripting.FileSystemObject") strScript = Wscript.ScriptFullName objFSO.DeleteFile(strScript) Put that at the bottom of the script. The script will be copied to memory upon running and will disappear when it gets here. It will not effect the script actions as long as the script does NOT call back to itself for a future action.


How do make an autoclicker in notepad?

i am not answering this, but all i need to know is how i can use, either left click or keypad 5 in .vbs format because i have a spammer, and i just need to change the "{enter}" to numpad 5, and ive tried almost all solutions to this like"{NUMPAD5}" and things like that... PLEASE HELP ME!!!


How do you make a message box?

To make a message box on notepad type in: msgbox "Your text" and save it as a .vbs .


Count from 1-5 using VBS?

For i = 1 to 5 Wscript.echo i Next You can change the "1 to 5" to any numbers you choose.


What part of a file name does window windows use to know which application to open to manage the file?

Windows uses the whole file-name extension. For example, a visual basic script extension is .vbs. Windows recognizes the pattern .vbs as a visual basic script,or a .txt short for text. .rtf for rich text format, and so forth. you can change default programs for the file extension in the control panel. File extensions that windows does not recognize are usually from programs or codecs you do not have on your computer.


What is the theme for vbs 2010?

There are many different publishers of VBS, but Cokesbury has announced their two on July 1st. Galactic Blast VBS 2010 - www.cokesburyvbs.com/galactic-blast - this is an outer space theme all about praising God Praise Party VBS 2010 - www.abingdonpressvbs.com - this is a multicultural themed VBS focused on having the church worship God with head, heart, hands, feet, and SOUL.


What is the VBS button on my Honda Accord for?

VSA stands for Vehicle Stability Assistance. Never head of a VBS button.


What are five file extentions that might be used for scripts?

Jscript(.js file extention), Jscript Encoded(.jse), VBScript Encoded(.vbe), VBSscript(.vbs),and Windows Script(.wsf) pg.1023 A++ CompTia 6th ed.


What are five file extensions that might be used for scripts?

.js, .jse, .vbe, .vbs, and .wsf


What actors and actresses appeared in Operation Overboard VBS - 2011?

The cast of Operation Overboard VBS - 2011 includes: Galen Fott as Oogle


How do you delete vbs malware?

If it is a file delete the file. Or if it is REAL MALWARE then scan your system and delete it. I myself delete harmful .vbs files off of the internet.