home *** CD-ROM | disk | FTP | other *** search
/ PC Plus 36 / ISSUE_36_SEP_1989 / UTILS / MMTEST.BAT next >
Encoding:
DOS Batch File  |  1989-01-01  |  5.5 KB  |  105 lines

  1. echo off
  2. rem ****************************************************************
  3. rem * MTEST.BAT - A program to test MM.EXE and show it's operation *
  4. rem *              (c) Colin J Smith November 1988                 *
  5. rem ****************************************************************
  6.  
  7. cls
  8. echo ├──────────────Batch test program of MM.EXE (c) CJS '88 Ver 1.0───────────────┤
  9.  
  10. echo ┌──────────────────check for installation of mouse driver─────────────────────┐
  11. mouseman 1
  12. if ERRORLEVEL==255 goto nomouse
  13. echo │                          Mouse driver installed                             │
  14. if ERRORLEVEL==3 goto but3
  15. if ERRORLEVEL==2 goto but2
  16. echo │                            Mouse has 1 button                               │
  17. goto left
  18. :but2
  19. echo │                            Mouse has 2 buttons                              │
  20. goto left
  21. :but3
  22. echo │                            Mouse has 3 buttons                              │
  23. goto left
  24. :nomouse
  25. echo │                       Mouse driver is NOT installed                         │
  26. goto end
  27.  
  28. :left
  29. echo ┌───────────────────────Hold down a mouse button NOW!─────────────────────────┐
  30. echo │                            Left button pressed?                             │
  31. mouseman 4 1
  32. if ERRORLEVEL==1 goto yesleft
  33. echo │                                -[  N O  ]-                                  │
  34. goto right
  35. :yesleft
  36. echo │                                -[ Y E S ]-                                  │
  37. :right
  38. echo │                           Right button pressed?                             │
  39. mouseman 4 2
  40. if ERRORLEVEL==1 goto yesright
  41. echo │                                -[  N O  ]-                                  │
  42. goto centre
  43. :yesright
  44. echo │                                -[ Y E S ]-                                  │
  45. :centre
  46. echo │                          Centre button pressed?                             │
  47. mouseman 4 3
  48. if ERRORLEVEL==1 goto yescentre
  49. echo │                                -[  N O  ]-                                  │
  50. goto waitleft
  51. :yescentre
  52. echo │                                -[ Y E S ]-                                  │
  53. :waitleft
  54. echo ┌───────────────────────Wait for mouse button presses─────────────────────────┐
  55. echo │                     Press the [LEFT] mouse button NOW                       │
  56. mouseman 5 1
  57. echo │                     Press the [RIGHT] mouse button NOW                      │
  58. mouseman 5 2
  59. echo ┌──────────────────────────────Things happening───────────────────────────────┐
  60. echo │                  Changing and turning on the mouse cursor                   │
  61. echo │                  Changing the acceleration speed threshold                  │
  62. echo │                      Changing the X and Y motion ratio                      │
  63. echo │                     Changing the min and max X position                     │
  64. echo │                     Changing the min and max Y position                     │
  65. echo │                                                                             │
  66. echo │                  These things will be changed in a minute -                 │
  67. echo │              experiment with your mouse to see the differences              │
  68. echo └─────────────────────────────────────────────────────────────────────────────┘
  69. pause
  70. cls
  71. mouseman 6 10000
  72. mouseman 7 0 14
  73. mouseman 8 10 20
  74. mouseman 9 151 487
  75. mouseman 10 63 135
  76. mouseman 2 1
  77. echo ┌─────────────────────────────────────────────────────────────────────────────┐
  78. echo │                                                                             │
  79. echo │                                                                             │
  80. echo │                  M O V E   T H E   M O U S E   A R O U N D                  │
  81. echo │                                                                             │
  82. echo │                                                                             │
  83. echo │                ┌───────────────────────────────────────────┐                │
  84. echo │                │                                           │                │
  85. echo │                │                                           │                │
  86. echo │                │                                           │                │
  87. echo │                │                                           │                │
  88. echo │                │                                           │                │
  89. echo │                │                                           │                │
  90. echo │                │                                           │                │
  91. echo │                │                                           │                │
  92. echo │                │                                           │                │
  93. echo │                │                                           │                │
  94. echo │                └───────────────────────────────────────────┘                │
  95. echo │                                                                             │
  96. echo │                                                                             │
  97. echo │       T R Y   A N D   M O V E   T H E   C U R S O R   H E R E : - [ ]       │
  98. echo │                                                                             │
  99. echo │                                                                             │
  100. :end
  101. echo └─────────────────────────────────────────────────────────────────────────────┘
  102. pause
  103. mouseman 1
  104. cls
  105.