home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 January / pcwk_01_1999.iso / Top100sh / Macro / GrounC / data1.cab / Example_Files / Sample2.gc < prev    next >
Text File  |  1998-08-20  |  712b  |  16 lines

  1. // This sample demonstrates various ways of using send keys commands
  2. RunProgram("notepad")
  3. Delay(2000)
  4. // ***  change the following command to the directory where you installed GroundControl ***
  5. SetDirectory("c:\groundcontrol")
  6. // here are some examples of the commands that send keys
  7. SendKeys("This is a sample line sent by the SendKeys command.~")
  8. SendKeysToWindow("Untitled - Notepad","Use the SendKeysToWindow command to automatically select the window before sending keys.~")
  9. SendKeysFromFile("samples\keys.txt")
  10. SendEnvironment("Temp path: %TEMP%~")
  11. SendNow("The current date and time is: %x %X~")
  12. InputBox("Enter your name")
  13. SendKeys("The name you entered was: ")
  14. SendInput()
  15. SendKeys("~")
  16.