QBasic is based upon the QuickBASIC programming language developed primarily for Microsoft Disk Operating System (MS-DOS) computers. As QBasic -- and QuickBASIC -- are developed for DOS, you do not by default have the ability to use the mouse. The computer mouse was first properly implemented in the Windows operating systems. Therefore, if you want to use a mouse in a QBasic program, you have to insert two lines of code to include it.
- Skill level:
Other People Are Reading
Open your QBasic script in whichever script editor you are using.
Scroll to the top of your script and put the following code in:
DECLARE SUB Mouse (Funk)
The first line enables the default variables and the second line declares the mouse function within the script.
Save your script.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for