Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
81 user(s) are online (66 user(s) are browsing Forums)

Members: 0
Guests: 81

more...

Support us!

Headlines

 
  Register To Post  

« 1 (2)
Re: List LFORMAT %P
Home away from home
Home away from home


See User information
@nbache

Indeed, I thought of that as I wrote it, that's why I said you really need a script rather than an alias as things is getting a bit comples for single line ARexx.

I couldn't recall the pragma(i) contruct for getting the process ID / address and wasn't even sure if it would work in a command line rexx script, though a quick test shows it does.

alias helpme RX "file = 't:helpme_' || pragma(I) ;ADDRESS COMMAND; 'SYS:System/Help [].help >' || file ; 'next ' || file ; 'delete ' || file"

might do it, untested as on posting from linux box.

BTW removed the OPTIONS RESULTS as no call is returning a result or using it it's unneeded



Go to top
Re: List LFORMAT %P
Just can't stay away
Just can't stay away


See User information
@broadblues & nbache

broadblues oneline script works nicely
I never udnderstood the pragma(I) thing, its usefullness is quite clear now

on my system with the masochistic "Amiga OS 4" name for my boot partition
the alias approach works very well

even with the old
alias help RX help
The alias approach therefor has something usefull (as long as the sys:system/help does not take things over.

last? question:


i tried this
alias helpd RX "file = 't:helpme_' || pragma(I) ;ADDRESS COMMAND; 'SYS:System/Help [].help >' || file ; 'run next ' || file ; 'delete ' || file"

an un expected filerequester pops up


Can this be avoided?






Go to top
Re: List LFORMAT %P
Home away from home
Home away from home


See User information
@JosDuchIt

You've added run before next this means the delete probably happens before next has finished loading.

try

alias helpd run >NIL: RX "file = 't:helpme_' || pragma(I) ;ADDRESS COMMAND; 'SYS:System/Help [].help >' || file ; 'next ' || file ; 'delete ' || file"

I don't have next to try with so not sure how it works. more fails with the above with a console packet error. But Notepad worked with it.


Go to top
Re: List LFORMAT %P
Just can't stay away
Just can't stay away


See User information
@broadblues
super,

next is a subsitute to multiview of which i love the search posssibilities in files (all hits highlighted at the same time)

Go to top
Re: List LFORMAT %P
Just can't stay away
Just can't stay away


See User information
@JosDuchIt
You could take ARexx out of the picture with something like:

alias helpme "run Multiview HELP:english/shell/[].help"

Personally, I would prefer it if SYS:System/Help had a TOOLTYPE/ARG to open its window at the command entered on the commandline instead of printing it to the command line.


Amiga X1000 with 2GB memory & OS 4.1FE + Radeon HD 5450

Go to top
Re: List LFORMAT %P
Just can't stay away
Just can't stay away


See User information

Quote:
@xenix

the palm for simplicitly.
Made me look to
helpme alias
to understand really what you did.

[quote]Personally, I would prefer it if SYS:System/Help had a TOOLTYPE/ARG to open its window at the command entered on the commandline instead of printing it to the command line.

Me too


Edited by JosDuchIt on 2014/1/22 13:29:37
Edited by JosDuchIt on 2014/1/22 14:21:19
Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project