home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
apmt34.zip
/
SETTINGS.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-07-01
|
2KB
|
62 lines
/******************************************************************/
/* This program Reads the DOS settings values from DOS window */
/* and displays them on the screen. This assumes that there an */
/* icon named 'DOS Window' on the desktop. */
/******************************************************************/
Trace off
Call RxFuncAdd 'APMTLoadFuncs','APMTEXT','APMTLoadFuncs'
Call APMTLoadFuncs
rc = INIT_SESSION() ; call logit
if rc \= 0 then signal errorexit
signal on halt name close
rc = SELECT_WINDOW("Desktop")
rc = SET_TIMEOUT(300)
rc = KEYBOARD("\","C")
rc = CONTAINER_SELECTITEM(1,"DOS Window") ; call logit
rc = KEYBOARD("F10","S")
rc = POPUPMENU_SELECT("Open","Settings") ; call logit
rc = SELECT_WINDOW("*DOS Window*",100) ; call logit
rc = NOTEBOOK_PUSHTAB(1,"Session") ; call logit
rc = PUSHBUTTON_CLICK("DOS settings...") ; call logit
rc = SELECT_WINDOW("Dos Settings*",100)
rc = LISTBOX_QUERY_COUNT("1","items")
do i = 1 to items
rc = LISTBOX_QUERY_TEXT(1,i-1,"text") ; call logit
rc = LISTBOX_SELECTITEM("1",i-1) ; call logit
rb.0 = 0
rc = RADIOBUTTON_QUERY_ALL("rb")
if rb.0 > 0 then
do j = 1 to rb.0
rc = RADIOBUTTON_QUERY_STATE(rb.j,"state")
if (state.1 = "CHECKED") then
say text "----> "rb.j
else NOP
end
else do
rc = ENTRYFIELD_QUERY_TEXT(1,"text1") ; call logit
say text "----> "text1
end
end
rc = PUSHBUTTON_CLICK("Cancel") ; call logit
rc = WAIT(4000)
rc = SELECT_WINDOW("*DOS Window*",100) ; call logit
rc = SYSMENU_SELECT("Close") ; call logit
close:
rc = END_SESSION();
exit
/******************************************************************/
logit:
code=Strip(rc)
Parse Value Sourceline(sigl) With 'rc = ' function ';'
out = 'Return code' code 'from' function 'in line number' sigl
if code > 0 then do
say out
Say '---> 'apmtmsg
exit
end
return