home *** CD-ROM | disk | FTP | other *** search
- '*********************** KEYTEST.MST *************************************
- 'Demonstrates: Testing the Windows Notepad accessory by starting the
- ' program, typing in some text, saving the file as TEST.TXT,
- ' and exiting.
- '
- 'Required Files: FASTTEST.INC, NOTEPAD.EXE
- '
- 'Uses: FASTTEST
- '
- 'Complexity Level: INTRODUCTORY
- '
- 'Notes:
- '
- '*************************************************************************
-
- '$INCLUDE 'FASTTEST.INC' '*** Include all necessary
- '*** files.
- XSetLogOptions LOG_SCREEN '*** Output errors to the
- '*** viewport.
- XStartApp "notepad.exe", "" '*** Start Notepad
-
- '***Enter two lines of text into a blank Notepad window:
-
- XEnter "The first line of text that will be typed into Notepad"
- XEnter "The second line of text that will be typed into Notepad"
-
- '*** Hold down the Alt key and press 'f' (open the File menu):
-
- XAlt "f"
-
- '*** Press the 's' key (choose the Save option):
-
- XKey "s"
-
- XText "test.txt" '*** Enter the filename of the file:
- XEnter "" '*** Press Enter (choose the OK button)
-
- '*** Press Alt+f, and then x to exit the Notepad program:
-
- XAlt "f"
- XKey "x"
-
- END
-
-