Open command
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 602 from 2004/11/27
    Hi,

    I would need to open a window on Ambient in "List" mode and in "All Files" mode using a command like "Open" (is in MorphOS/C). I would also need that this window has a certain size and opens in a certain position on Ambient.

    I can do that when I use Bookmarks where I use the following command:

    PM1-Clients:?view=List&mode=ALL&top=180&left=240&width=540&height=740

    but this seems to work only with Bookmarks :-(


    Does someone know if it is possible to open a window in "List" mode and "All Files" mode using anything else then Bookmarks?

    Thanks for help!

    Regards
    Christoph
  • »09.06.15 - 05:25
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 803 from 2007/10/23
    From: Gelsenkirchen,...
    Hi!

    You may change the viewmode, see MOSSYS:Ambient/docs/arexx.txt

    Greetings,
    Stefan
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »09.06.15 - 07:46
    Profile
  • MorphOS Developer
    geit
    Posts: 1049 from 2004/9/23
    Looks quite complicated, but works:

    RX "ADDRESS AMBIENT 'loaduri sys:?view=icon&mode=all'"

    Opens SYS: in icon/all mode.

    Please note the ' characters enclosing the loaduri command.

    So this is basically your line for external usage:

    RX "ADDRESS AMBIENT 'loaduri sys:?view=List&mode=ALL&top=180&left=240&width=540&height=740'"
  • »09.06.15 - 14:53
    Profile
  • jPV
  • Yokemate of Keyboards
    Yokemate of Keyboards
    jPV
    Posts: 2096 from 2003/2/24
    From: po-RNO
    I'd also use RXCmd instead or RX, because RXCmd doesn't need a working rexxsyslib.library installed and thus works out of the box on any MorphOS setup. It also makes the line to look a bit cleaner:

    RXCmd AMBIENT "loaduri sys:?view=List&mode=ALL&top=180&left=240&width=540&height=740"


    [ Edited by jPV 09.06.2015 - 17:30 ]
  • »09.06.15 - 15:30
    Profile Visit Website
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 602 from 2004/11/27
    Hi all,

    thanks for all your feed-back about this :-) Yes it seems to work, Frank did also suggest the same way to do that, I mean rexx and loaduri. I need to see now with MUIbase developper how I can use that in my database to open directly from within the db the partions and directories.

    Best regards
    Christoph
  • »10.06.15 - 04:32
    Profile Visit Website