home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
apmt34.zip
/
LISTDESK.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-09-15
|
1KB
|
38 lines
/******************************************************************/
/* This command lists all the icons showing on the desktop */
/******************************************************************/
signal on error name errorexit
call APMT_INIT
if rc > 0 then signal CLOSE
rc = SELECT_WINDOW("Desktop")
rc = CONTAINER_QUERY_COUNT(1,"cnt")
do j = 1 to cnt
rc = CONTAINER_SELECTITEM(1,"#"||j)
rc = KEYBOARD("F9","S")
rc = KEYBOARD("HOME")
rc = KEYBOARD("END","S")
rc = KEYBOARD("INSERT","C")
rc = QUERY_CLIPBOARD_TEXT("icon_text")
do i = 1 to icon_text.0
say icon_text.i
end
rc = KEYBOARD("ESC")
end
signal CLOSE
/******************************************************************/
close:
rc = END_SESSION();
exit
APMT_INIT:
signal on error name errorexit
call rxfuncadd 'APMTLoadFuncs', 'apmtext', 'APMTLoadFuncs'
call APMTLoadFuncs;
rc = INIT_SESSION();
if rc \= 0
then do
say apmtmsg
signal errorexit
end
signal on halt name APMT_CLOSE
return