home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 January
/
pcwk_01_1999.iso
/
Top100sh
/
Macro
/
GrounC
/
data1.cab
/
Example_Files
/
Sample4.gc
< prev
next >
Wrap
Text File
|
1998-08-20
|
811b
|
22 lines
// 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")