4 * You need to run the SimpleRexxExample first...
12 * Try to read the window title bar
14 Address EXAMPLE_1 ReadTitle
16 if rc > 0 then say 'Error was 'EXAMPLE
.LASTERROR
17 else say 'Window title is 'Result
20 * Bad WINDOW command...
22 Address EXAMPLE_1
"Window Display"
24 if rc > 0 then say 'Error was 'EXAMPLE
.LASTERROR
25 else say 'Window is now open'
30 Address EXAMPLE_1
"Window Open"
32 if rc > 0 then say 'Error was 'EXAMPLE
.LASTERROR
33 else say 'Window is now open'
38 Address EXAMPLE_1
"Window Open"
40 if rc > 0 then say 'Error was 'EXAMPLE
.LASTERROR
41 else say 'Window is now open'
44 * Try to read the window title bar
46 Address EXAMPLE_1 ReadTitle
48 if rc > 0 then say 'Error was 'EXAMPLE
.LASTERROR
49 else say 'Window title is 'Result
54 Address EXAMPLE_1
"Window Close"
56 if rc > 0 then say 'Error was 'EXAMPLE
.LASTERROR
57 else say 'Window is now closed'
60 * Try to hide the window again
62 Address EXAMPLE_1
"Window Close"
64 if rc > 0 then say 'Error was 'EXAMPLE
.LASTERROR
65 else say 'Window is now closed'
68 * Send a command that does not exist
70 Address EXAMPLE_1 Junk
72 if rc > 0 then say 'Error was 'EXAMPLE
.LASTERROR
73 else say 'The command worked!!!'
78 Address EXAMPLE_1 Quit