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

  1. '************************** CLIPTEST.MST *********************************
  2. 'Demonstrates:  The capability of the Windows Calculator to send data
  3. '               to the clipboard correctly.
  4. '
  5. 'Required Files: FASTTEST.INC, CALC.EXE
  6. '
  7. 'Uses: FASTTEST
  8. '
  9. 'Complexity Level: INTRODUCTORY
  10. '
  11. 'Notes:
  12. '
  13. '*************************************************************************
  14.  
  15. '$INCLUDE 'FASTTEST.INC'
  16.  
  17. '*** Set log options and start the Calculator
  18.  
  19. XSetLogOptions LOG_SCREEN
  20. Viewport Clear
  21. XStartApp "CALC.EXE",""
  22. XLogBanner "Starting Clipboard Test"
  23.  
  24. '*** Perform a subtraction:
  25. XText "888"
  26. XText "-"
  27. XText "333"
  28. XText "="
  29.  
  30. '*** Select the Edit/Copy menu items:
  31.  
  32. XAlt "e"
  33. XKey "c"
  34.  
  35. '*** Verify that the expected result of the subtraction (555)
  36. '*** is the same as the value currently held in the clipboard
  37. '*** Note that Calc puts a space in front of the number before sending
  38. '*** it to the clipboard:
  39.  
  40. XClipBoardCmp " 555"
  41.  
  42. XAlt "F4"
  43.  
  44. END
  45.  
  46.  
  47.