home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / d / d009_2 / 1.ddi / SAMPLES / DOCS / KEYTEST.MS$ / KEYTEST.bin
Encoding:
Text File  |  1992-02-03  |  1.3 KB  |  45 lines

  1. '*********************** KEYTEST.MST *************************************
  2. 'Demonstrates:  Testing the Windows Notepad accessory by starting the
  3. '               program, typing in some text, saving the file as TEST.TXT,
  4. '               and exiting.
  5. '
  6. 'Required Files: FASTTEST.INC, NOTEPAD.EXE
  7. '
  8. 'Uses: FASTTEST
  9. '
  10. 'Complexity Level: INTRODUCTORY
  11. '
  12. 'Notes:
  13. '
  14. '*************************************************************************
  15.  
  16. '$INCLUDE 'FASTTEST.INC'                 '*** Include all necessary
  17.                                          '*** files.
  18. XSetLogOptions LOG_SCREEN                '*** Output errors to the
  19.                                          '*** viewport.
  20. XStartApp "notepad.exe", ""              '*** Start Notepad
  21.  
  22. '***Enter two lines of text into a blank Notepad window:
  23.  
  24. XEnter "The first line of text that will be typed into Notepad"
  25. XEnter "The second line of text that will be typed into Notepad"
  26.  
  27. '*** Hold down the Alt key and press 'f' (open the File menu):
  28.  
  29. XAlt "f"
  30.  
  31. '*** Press the 's' key (choose the Save option):
  32.  
  33. XKey "s"
  34.  
  35. XText "test.txt"  '*** Enter the filename of the file:
  36. XEnter ""         '*** Press Enter (choose the OK button)
  37.  
  38. '*** Press Alt+f, and then x to exit the Notepad program:
  39.  
  40. XAlt "f"
  41. XKey "x"
  42.  
  43. END
  44.  
  45.