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

  1. //WaitForProgram Example
  2. RunProgram("calc")
  3. WaitForProgram()
  4. //This WaitForProgram will wait until Calculator is closed before executing the rest of the macro.
  5. RunProgram("Notepad")
  6. Delay(1000)
  7. SendKeysToWindow("Untitled - Notepad","Calculator will start in 3 seconds.")
  8. //This WaitForProgram will wait 3 seconds (3000 miliseconds) before executing the rest of the macro.
  9. WaitForProgram(3000)
  10. RunProgram("calc")
  11.