@all
thanks for clarifications
i tried from xenix example (& from Arexx:Opendrawer.rexx) to get closer to what i want
What is wrong however with the command
ICON WINDOW path NAMES icon SELECT
in the script LeaveOut.rexx below ?
17.Amiga OS 4:> getenv .path
BareEd:
17.Amiga OS 4:> getenv .name
StKlsDuch.htm
17.Amiga OS 4:> list BareEd:StKlsDuch.htm#?
Répertoire « BareEd: » le Mercredi 18-Déc-13
StKlsDuch.htm 17606 ----rwed Lundi 18:29:52
StKlsDuch.htm.info 9528 ----rw-d Aujourd'hui 21:37:45
2 fichiers - 26K octets - 30 blocs utilisés
17.Amiga OS 4:> RX REXX:LeaveOut.rexx
StKlsDuch.htm
26 *-* ICON WINDOW path NAMES icon SELECT;
+++ Command returned 10
Code: Select all
/* LeaveOut.rexx Leave out an icon on the Workbench defined by its path */
OPTIONS results
id='getnv'pragma('id')
address command 'rxset' id '`getenv ".path"`'
if rc=5 then exit
path=getclip(id)
call setclip(id,'')
id='gtnv'pragma('id')
address command 'rxset' id '`getenv ".name"`'
if rc=5 then exit
icon=getclip(id)
call setclip(id,'')
ADDRESS workbench
WINDOW WINDOWS path OPEN
MENU WINDOW path INVOKE WINDOW.CLEARSELECTION
say icon
ICON WINDOW path NAMES icon SELECT
MENU WINDOW ROOT INVOKE ICONS.LEAVEOUT
The idea is to implement a kind of "project manager" that according to preset selections of iconpaths leaves them on the WB globally and puts them away globally too (to be replaced by an other selection°)
I started with Joakim's idea, but rebooting is out of the question.
A command 'reiniialising the .backdrop' is just a special case of the 'project manager'
@thomasrapp
i am not much of a C programmer .
Some weeks ago I brought the Gui4CLi source to a state where compiling generated no complainits about obsolete or deprecated calls.anymore. But that was rather easy. It does not mean i know my way into the system libraries, and i have still much to discover.
The arexx Workbench scripts may be rather slow beacuse you have to open & draw the window before selecting what you want. If you have tools & application output say in 3 winows, one of them with say 100 icons, the reaction will not be snappy, as we like our Amigas to behave.
The basic idea, is that all info to do what arexx WB scripts (LeaveOut.rexx) can, is available in the system lists. Arexx accesses them and uses the needed info, i guess, in the given "selecting & activationg) sequence
The intermediate opening, (redrawing on the screen) and closing is not 'really' needed.
So one could think of improved WB arexx command that have a "sneeky/hidden" argument, avoiding the unneeded drawing. A C coded equivalent then might not have much speed gain anymore.
Just trying to think, i think