home *** CD-ROM | disk | FTP | other *** search
- echo off
- rem ****************************************************************
- rem * MTEST.BAT - A program to test MM.EXE and show it's operation *
- rem * (c) Colin J Smith November 1988 *
- rem ****************************************************************
-
- cls
- echo ├──────────────Batch test program of MM.EXE (c) CJS '88 Ver 1.0───────────────┤
-
- echo ┌──────────────────check for installation of mouse driver─────────────────────┐
- mouseman 1
- if ERRORLEVEL==255 goto nomouse
- echo │ Mouse driver installed │
- if ERRORLEVEL==3 goto but3
- if ERRORLEVEL==2 goto but2
- echo │ Mouse has 1 button │
- goto left
- :but2
- echo │ Mouse has 2 buttons │
- goto left
- :but3
- echo │ Mouse has 3 buttons │
- goto left
- :nomouse
- echo │ Mouse driver is NOT installed │
- goto end
-
- :left
- echo ┌───────────────────────Hold down a mouse button NOW!─────────────────────────┐
- echo │ Left button pressed? │
- mouseman 4 1
- if ERRORLEVEL==1 goto yesleft
- echo │ -[ N O ]- │
- goto right
- :yesleft
- echo │ -[ Y E S ]- │
- :right
- echo │ Right button pressed? │
- mouseman 4 2
- if ERRORLEVEL==1 goto yesright
- echo │ -[ N O ]- │
- goto centre
- :yesright
- echo │ -[ Y E S ]- │
- :centre
- echo │ Centre button pressed? │
- mouseman 4 3
- if ERRORLEVEL==1 goto yescentre
- echo │ -[ N O ]- │
- goto waitleft
- :yescentre
- echo │ -[ Y E S ]- │
- :waitleft
- echo ┌───────────────────────Wait for mouse button presses─────────────────────────┐
- echo │ Press the [LEFT] mouse button NOW │
- mouseman 5 1
- echo │ Press the [RIGHT] mouse button NOW │
- mouseman 5 2
- echo ┌──────────────────────────────Things happening───────────────────────────────┐
- echo │ Changing and turning on the mouse cursor │
- echo │ Changing the acceleration speed threshold │
- echo │ Changing the X and Y motion ratio │
- echo │ Changing the min and max X position │
- echo │ Changing the min and max Y position │
- echo │ │
- echo │ These things will be changed in a minute - │
- echo │ experiment with your mouse to see the differences │
- echo └─────────────────────────────────────────────────────────────────────────────┘
- pause
- cls
- mouseman 6 10000
- mouseman 7 0 14
- mouseman 8 10 20
- mouseman 9 151 487
- mouseman 10 63 135
- mouseman 2 1
- echo ┌─────────────────────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ │
- echo │ M O V E T H E M O U S E A R O U N D │
- echo │ │
- echo │ │
- echo │ ┌───────────────────────────────────────────┐ │
- echo │ │ │ │
- echo │ │ │ │
- echo │ │ │ │
- echo │ │ │ │
- echo │ │ │ │
- echo │ │ │ │
- echo │ │ │ │
- echo │ │ │ │
- echo │ │ │ │
- echo │ │ │ │
- echo │ └───────────────────────────────────────────┘ │
- echo │ │
- echo │ │
- echo │ T R Y A N D M O V E T H E C U R S O R H E R E : - [ ] │
- echo │ │
- echo │ │
- :end
- echo └─────────────────────────────────────────────────────────────────────────────┘
- pause
- mouseman 1
- cls