home *** CD-ROM | disk | FTP | other *** search
- // This sample demonstrate various window commands
- RunProgram("Notepad")
- RunProgram("Calc")
- Delay(2000)
- ActivateWindow("Untitled - Notepad")
- Delay(2000)
- ActivateWindow("Calculator")
- Delay(2000)
- If(FindWindow("Untitled - Notepad"),MessageBox("Notepad was found"),MessageBox("Notepad was not found"))
- ActivateWindow("Untitled - Notepad")
- Delay(2000)
- If(WindowActive("Untitled - Notepad"),MessageBox("Notepad is the active window"),MessageBox("Notepad is not the active window"))
- MaximizeWindow("Untitled - Notepad")
- Delay(2000)
- MinimizeWindow("Untitled - Notepad")
- Delay(2000)
- NormalizeWindow("Untitled - Notepad")
- Delay(2000)
- CloseWindow("Untitled - Notepad")
- If(FindWindow("Untitled - Notepad"),MessageBox("Notepad was found"),MessageBox("Notepad was not found"))
- QuitProgram("Calculator")
-