LeaveOut & PutAway CLI commands
Re: LeaveOut & PutAway CLI commands
@nbache & xenix thanks, "myicon" did it
- thomasrapp
- Posts: 318
- Joined: Sun Jun 19, 2011 12:22 am
Re: LeaveOut & PutAway CLI commands
To get always correct results, you should enclose words which are not meant as variables in quotes.
Like this:
Like this:
Code: Select all
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"
Re: LeaveOut & PutAway CLI commands
I tested the opposite script
The icon gets selected but is not 'put away"
8.Amiga OS 4:> getenv .name
StKlsDuch.htm
8.Amiga OS 4:> RX rexx:PutawayName.rexx
The icon gets selected but is not 'put away"
8.Amiga OS 4:> getenv .name
StKlsDuch.htm
8.Amiga OS 4:> RX rexx:PutawayName.rexx
Code: Select all
/* Put away an icon on the Workbench with its name .name as env variable
*/
OPTIONS results
id='gtnv'pragma('id')
address command 'rxset' id '`getenv ".name"`'
if rc=5 then exit
myicon=getclip(id)
call setclip(id,'')
ADDRESS workbench
MENU WINDOW ROOT INVOKE WINDOW.CLEARSELECTION
ICON WINDOW ROOT NAMES myicon SELECT
MENU WINDOW ROOT INVOKE ICONS.PUTAWAY
Re: LeaveOut & PutAway CLI commands
@JosDuchIt
Try this:
Try this:
Code: Select all
/* Put away an icon on the Workbench with its name .name as env variable
*/
OPTIONS results
id='gtnv'pragma('id')
address command 'rxset' id '`getenv ".name"`'
if rc=5 then exit
myicon=getclip(id)
call setclip(id,'')
ADDRESS workbench
MENU WINDOW ROOT INVOKE WINDOW.CLEARSELECTION
WINDOW ACTIVATE ROOT
ICON WINDOW ROOT NAMES myicon SELECT
MENU WINDOW ROOT INVOKE ICONS.PUTAWAY
AmigaOne X1000 with 2GB memory - OS4.1 FE
Re: LeaveOut & PutAway CLI commands
@xenix, thanks that worked ok
Re: LeaveOut & PutAway CLI commands
i am progressing nicely with my "project manager" allowing to leave selections of icons on the WB screen and put them away.
Still got a problem with paths wontaining balnks
WINDOW WINDOWS frpath OPEN
works for frpath without blanks
say
sys:System/Snp/Snoopy
but not for
Amiga OS 4:System/Snp/Snoopy
how can i pass such string (as an env variable) that arexx will understand ?
Still got a problem with paths wontaining balnks
WINDOW WINDOWS frpath OPEN
works for frpath without blanks
say
sys:System/Snp/Snoopy
but not for
Amiga OS 4:System/Snp/Snoopy
how can i pass such string (as an env variable) that arexx will understand ?
- thomasrapp
- Posts: 318
- Joined: Sun Jun 19, 2011 12:22 am
Re: LeaveOut & PutAway CLI commands
You should surroung the path name by quotes and make sure that the quotation marks are sent to Workbench and not stripped away by Rexx:
Or even better, as I already mentioned above, put the entire command in quotes:
Code: Select all
WINDOW WINDOWS '"'frpath'"' OPEN
Code: Select all
'WINDOW WINDOWS "'frpath'" OPEN'
Re: LeaveOut & PutAway CLI commands
@Thomas
both examples work OK Thanks
both examples work OK Thanks
Re: LeaveOut & PutAway CLI commands
I did upload to http://users.online.be/AD/LP_Icons_.lha
my simple "project manager" LP_Icons.gc. It should work out of the box - comes with new version 3.8.8 of Gui4Cli interpreter which is also here http://users.online.be/AD/Gui4Cli3.8.8_OS4.lha
with thanks for
the help i got here.
my simple "project manager" LP_Icons.gc. It should work out of the box - comes with new version 3.8.8 of Gui4Cli interpreter which is also here http://users.online.be/AD/Gui4Cli3.8.8_OS4.lha
with thanks for
the help i got here.