home *** CD-ROM | disk | FTP | other *** search
- '*********************** MOUSTEST.MST ************************************
- 'Demonstrates: Some of FastTest's mouse procedures. It starts the
- ' Windows Paintbrush program, maximizes it to full screen,
- ' and draws a "picture" using mouse events.
- '
- 'Required Files: FASTTEST.INC
- '
- 'Uses: FASTTEST
- '
- 'Complexity Level: INTRODUCTORY
- '
- 'Notes:
- '
- '*************************************************************************
-
- '$INCLUDE 'FASTTEST.INC'
-
- '*** Set up logging options and start Paintbrush
-
- XSetLogOptions LOG_SCREEN
- Viewport Clear
- XLogBanner "Starting PBRUSH.EXE Test"
- XStartApp "pbrush.exe", ""
-
- '*** Maximize application window to have mouse events
- '*** maintain consistency:
-
- XMaxWindow
-
- '*** Draw some dots on the screen by clicking the mouse
-
- XClickMouse LBUTTON, 150, 150 '*** LBUTTON is a constant - the LEFT mouse button
- XClickMouse LBUTTON, 200, 150
- XClickMouse LBUTTON, 150, 200
-
- '*** Connect the dots by moving and dragging the mouse
-
- XMoveMouse 150, 150
- XDragMouse LBUTTON, 150, 150, 200, 150
- XDragMouse LBUTTON, 200, 150, 150, 200
- XDragMouse LBUTTON, 150, 200, 150, 150
-
- '*** Exit the program and answer 'no' when it asks to save the picture
- XDblClickMouse LBUTTON, 5, 5
- XEnter "n"
-
- END
-
-