Adding to 'Utilities' Menu
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Travis_H
    Posts: 149 from 2009/12/17
    From: Salem, Oregon,...
    What's the process for adding programs to the 'Utilities' Menu item in Ambient? I'd like to add some small items that I don't need on a panel, like the calculator.

    TJH
  • »12.02.10 - 16:37
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    It is not currently possible.
    1 + 1 = 3 with very large values of 1
  • »12.02.10 - 17:32
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1282 from 2010/1/6
    From: EU-Austria (Wien)
    You cannot add to utility menue as it works under OS3.x - thats right - but you can create your own additional menues with submenues and items useing Ambients AREXX-Interface.....

    look at this:

    This example from my installation shows you how it works

    /*Ambient - add new menue*/
    address AMBIENT
    'menu add id="m1-0" title="Network" type=menu'
    'menu add id="m1-1-0" parentid="m1-0" title="Virtual Network" type=menu'
    'menu add id="m1-1-1" parentid="m1-1-0" title="VNC- Aspire/XP" type=item command="System:Internet/Remote/VNC_ASPIRE.script" commandtype=workbench'
    'menu add id="m1-1-2" parentid="m1-1-0" title="VNC- Pegasos3" type=item command="System:Internet/Remote/VNC_Pegasos_3.script" commandtype=workbench'
    'menu add id="m1-1-3" parentid="m1-1-0" title="VNC- A3000" type=item command="System:Internet/Remote/VNC_A3000PPC.script" commandtype=workbench'
    'menu add id="m1-1-4" parentid="m1-1-0" title="VNC- Julia" type=item command="System:Internet/Remote/VNC_Pegasos_Julia.script" commandtype=workbench'
    'menu add id="m1-1-5" parentid="m1-1-0" title="Remote A3000T " type=item command="System:Envoy/Envoy_Remote/Ventriloquist" commandtype=workbench'
    'menu add id="m1-1-6" parentid="m1-1-0" title="VNC- Aspire/LX" type=item command="System:Internet/Remote/VNC_ASPIRE_Linux.script" commandtype=workbench'
    'menu add id="m1-1-7" parentid="m1-1-0" title="VNC- Toshiba" type=item command="System:Internet/Remote/VNC_Toshiba.script" commandtype=workbench'
    'menu add id="m1-1-8" parentid="m1-1-0" title="VNC- Efika" type=item command="System:Internet/Remote/VNC_Efika.script" commandtype=workbench'

    'menu add id="m1-2-0" parentid="m1-0" title="Browser" type=menu'
    'menu add id="m1-2-1" parentid="m1-2-0" title="IBrowse" type=item command="System:Internet/Ibrowse/Ibrowse" commandtype=workbench'
    'menu add id="m1-2-2" parentid="m1-2-0" title="AWeb" type=item command="System:Internet/Aweb/Aweb" commandtype=workbench'
    'menu add id="m1-2-3" parentid="m1-2-0" title="Sputnik" type=item command="System:Internet/Sputnik/Sputnik" commandtype=workbench'
    'menu add id="m1-3" parentid="m1-0" type=separator'
    'menu add id="m1-4" parentid="m1-0" title="E-Mail" type=item command="System:Internet/YAM_NG/YAM" commandtype=workbench'
    'menu add id="m1-5" parentid="m1-0" title="TelNET" type=item command="System:Internet/DCTelnet/DCTelnet" commandtype=workbench'
    'menu add id="m1-6" parentid="m1-0" title="Net-Snooper" type=item command="System:Internet/NetworkSnooper/Snoop" commandtype=workbench'
    'menu add id="m1-7" parentid="m1-0" type=separator'
    'menu add id="m1-8-0" parentid="m1-0" title="Envoy-Net" type=menu'
    'menu add id="m1-8-1" parentid="m1-8-0" title="Import FS" type=item command="System:Envoy/FilesystemImports" commandtype=workbench'
    'menu add id="m1-8-2" parentid="m1-8-0" title="Import Printer " type=item command="System:Envoy/Printerimports" commandtype=workbench'
    'menu add id="m1-8-3" parentid="m1-8-0" title="Netprobe" type=item command="System:Envoy/Netprobe" commandtype=workbench'
    'menu add id="m1-8-4" parentid="m1-8-0" title="Config Envoy" type=item command="System:Envoy/NetworkConfig" commandtype=workbench'
    'menu add id="m1-8-5" parentid="m1-8-0" title="Export Device" type=item command="System:Envoy/Filesystem_Exports" commandtype=workbench'
    .....................

    I think this is enough to understand how it works.......this example will add two new main-menues (Network and Tools) with items an certain submenues.....

    Create your own menue-file (normal textfile), save it as projekt to WBStartup and choose rx as defaultprogram......after reboot you should have some nice new customized menues.....

    BTW: All between ' ' is one line! No CR as it may be shown in your browser....


    [ Editiert durch Amigaharry2 an 2010/2/12 21:25 ]
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »12.02.10 - 20:22
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    And if you find this REXX syntax too difficult, you can also just use toolsdaemon editor, and use a toolsdaemon converter script:
    "rx mossys:ambient/script/menuconvert.rexx S:ToolsDaemon.menu" (or wherever it's located). If you put that script in wbstartup, it will be automatic.

    (And yes, it would still deserve a GUI editor, it's just it's too boring:))
  • »12.02.10 - 20:54
    Profile Visit Website
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 140 from 2003/9/16
    From: aGas founder M...
    Please guys, send Fab?s address as many pizza and coke cans as you can, in order to speed up the development of a GUI for the Ambient user editable menu feature ;)
  • »12.02.10 - 22:53
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1282 from 2010/1/6
    From: EU-Austria (Wien)
    @Frank: I understand your wishes to Fab, but the creation of a simple textfile to add menues is realy easy to do and certainly, a menue-editor would be a nice feature.....I agree with you to send him many pizza and coke - but more to perfect his great OWB and Mplayer-package - this should have much more priority (my opinion)....... :-)
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »13.02.10 - 09:16
    Profile
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    Posts: 140 from 2003/9/16
    From: aGas founder M...
    @AmigaHarry

    Didnt you know fab has an army of monkey-slave workers that do most of the fab?s work?


    fab merely uses the whip in order to increase or decrease the typiying speed of the monkey slaves ;)
    From time to time he also uses a fishing rod with a banan as worm. Where did you think tokai?s Mr.banana come from? ;)
  • »13.02.10 - 09:40
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1282 from 2010/1/6
    From: EU-Austria (Wien)
    :-D :-D :-D

    [ Editiert durch Amigaharry2 an 2010/2/13 10:44 ]
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »13.02.10 - 09:43
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jcmarcos
    Posts: 1178 from 2003/3/13
    From: Pinto, Madrid ...
    Quote:

    Fab wrote:

    it would still deserve a GUI editor, it's just it's too boring


    Not only boring, it doesn't make a lot of sense, in my opinion. The most important content in menus are the command line statements they launch. That's keyboard stuff anyway, so a plain text file is very adequate.
  • »15.02.10 - 09:20
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 416 from 2003/2/24
    From: Berlin
    How about that CRABUM.png 8-)
  • »15.02.10 - 11:57
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1282 from 2010/1/6
    From: EU-Austria (Wien)
    What?s that? Never heard before.....
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »16.02.10 - 11:27
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 416 from 2003/2/24
    From: Berlin
    A gui for creating ambient user menus, not yet finished...
  • »16.02.10 - 12:45
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Jambalah
    Posts: 820 from 2008/3/30
    From: Roma, Italy
    Quote:

    A gui for creating ambient user menus, not yet finished...


    Really nice!
    Pegasos II 1 ghz
    Powermac G4 Quicksilver with Sonnet Encore 1.8 ghz
    Powermac G4 MDD single 1.25 ghz, silenced for ears health...
    Powermac G5 dual 2.7 ghz I'll be back...
    Powermac G5 dual 2.0 ghz
    Powerbook G4 1.67 ghz 17
  • »16.02.10 - 13:18
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    Yes !! really nice!
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »16.02.10 - 14:13
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 416 from 2003/2/24
    From: Berlin
    A first beta version is finished, you can download it here: CRABUM
  • »23.02.10 - 19:16
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Thanks for doing it. :)

    Just a remark so far: the test function should also clear ambient menus in the first place.

    And by the way, the menu action strings also accept the %sp and co placeholders. So a menu can act on currently selected item(s) if wanted.

    [ Edited by Fab on 2010/2/23 21:10 ]
  • »23.02.10 - 20:08
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    very good job !

    I send the French translation !!!

    @beworld
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »23.02.10 - 20:23
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Daff
    Posts: 243 from 2003/4/5
    The tools I was waiting for !
    Obligement - L'Amiga au maximum
    http://obligement.free.fr
  • »24.02.10 - 06:08
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Jambalah
    Posts: 820 from 2008/3/30
    From: Roma, Italy
    Thanks Igracki!!!
    It works really fine and is so useful!!!!
    Pegasos II 1 ghz
    Powermac G4 Quicksilver with Sonnet Encore 1.8 ghz
    Powermac G4 MDD single 1.25 ghz, silenced for ears health...
    Powermac G5 dual 2.7 ghz I'll be back...
    Powermac G5 dual 2.0 ghz
    Powerbook G4 1.67 ghz 17
  • »24.02.10 - 12:06
    Profile
  • rms
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    rms
    Posts: 602 from 2004/11/27
    @ Igracki

    Fantastic, thanks very much, really a very helpfull utility!

    Regards

    Christoph
  • »24.02.10 - 13:26
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 416 from 2003/2/24
    From: Berlin
    @fab:
    I have added a "menu remove" line at the beginning of a saved script (also for test).
    So the user menus gets removed before the new are installed.

    I also added the placeholder-bubblehelp for the command string gadget.
    Updated version of CRABUM

    Thanks to beworld and saddam for translations!
    A spanish translation is also on the way!

    Anyone has a nice icon for CRABUM?
  • »24.02.10 - 20:39
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Jambalah
    Posts: 820 from 2008/3/30
    From: Roma, Italy
    Italian translation is on the way too!
    With an icon... oh well.. an attempt ;)
    Pegasos II 1 ghz
    Powermac G4 Quicksilver with Sonnet Encore 1.8 ghz
    Powermac G4 MDD single 1.25 ghz, silenced for ears health...
    Powermac G5 dual 2.7 ghz I'll be back...
    Powermac G5 dual 2.0 ghz
    Powerbook G4 1.67 ghz 17
  • »25.02.10 - 10:53
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 416 from 2003/2/24
    From: Berlin
    thx Jambalah, both get included in the archive!
    I like the icon!
  • »25.02.10 - 17:42
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Jambalah
    Posts: 820 from 2008/3/30
    From: Roma, Italy
    Thx to you Igracki!! Glad you like the icon!
    Pegasos II 1 ghz
    Powermac G4 Quicksilver with Sonnet Encore 1.8 ghz
    Powermac G4 MDD single 1.25 ghz, silenced for ears health...
    Powermac G5 dual 2.7 ghz I'll be back...
    Powermac G5 dual 2.0 ghz
    Powerbook G4 1.67 ghz 17
  • »25.02.10 - 17:51
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 608 from 2010/2/10
    From: FRANCE
    Few Suggestions :

    - not possible to move menu / submenu and element Up and Down into the list
    - have a option to "AutoSave on quit"
    - have a option Save - Save As
    - options CLI to lauch with shell - exemple CRABUM -QUIET SYS:test.rexx

    Thank you :) it's very usefull on Morphos....

    I want to see the new Icon......... ahrrraahr ?

    @beworld


    [ Edité par beworld le 25/2/2010 19:51 ]
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »25.02.10 - 18:49
    Profile Visit Website