@Swoop
Here it the author. I thought that the file ContextMenus.cfg was delivered with the first update. I will talk to some dudes to make sure it will be available.
Here is how it works. ContextMenus will try to load the file ENV:ContextMenus.cfg. If it fails, it will use some hardcoded setting.
This is how an entry looks like. Context,Title,Type,Command
Explanation: Context can be anything that is defined with DefIcons, plus some more.
Title is the String that is displayed in the context menu.
Type can be WB, CLI, PM_INVOKEWB and some internal types, like PM_PASTE, PM_COPY.
If the type is WB or CLI the Command is executed like it has been doubleclicked or started in a shell. The PM_INVOKEWB command will send the Command to workbenchs ARExx port.
You can also define Subemenus: The Title has to start with >, and will be used to delimit the submenu.
See this example:
Directory,>Clean up by Directory,Columns,PM_INVOKEWB,WINDOW.CLEANUPBY.COLUMN Directory,Name,PM_INVOKEWB,WINDOW.CLEANUPBY.NAME Directory,Date,PM_INVOKEWB,WINDOW.CLEANUPBY.DATE Directory,Size,PM_INVOKEWB,WINDOW.CLEANUPBY.SIZE Directory,Type,PM_INVOKEWB,WINDOW.CLEANUPBY.TYPE Directory,>Clean up by
There a special Title: SEPERATOR. I think you can figure out what that is for.
Example: Workbench,SEPARATOR
This is a copy of my currently used config file.
-- Snip -- PM_PRESET,SEPARATOR,bar PM_PRESET,OUTPUT,CON:0/0/640/100/PowerMenus/CLOSE/WAIT/AUTO Workbench,Execute command,PM_INVOKEWB,WORKBENCH.EXECUTE Workbench,Open drawer,CLI,rx REXX:OpenDrawer.rexx Workbench,Find...,WB,SYS:System/Find Workbench,SEPARATOR Workbench,>Tools Workbench,EditPad,WB,SYS:Tools/EditPad Workbench,IconEdit,WB,SYS:Tools/IconEdit Workbench,Calculator,WB,SYS:Tools/Calculator Workbench,Flush memory,CLI,c:avail flush >NIL: Workbench,>Tools Workbench,>Preferences Workbench,AHI,WB,SYS:Prefs/AHI Workbench,ASL,WB,SYS:Prefs/ASL Workbench,CacheCDFS,WB,SYS:Prefs/CacheCDFS Workbench,DefIcons,WB,SYS:Prefs/DefIcons Workbench,Font,WB,SYS:Prefs/Font Workbench,IControl,WB,SYS:Prefs/IControl Workbench,Input,WB,SYS:Prefs/Input Workbench,Locale,WB,SYS:Prefs/Locale Workbench,Palette,WB,SYS:Prefs/Palette Workbench,PictDT,WB,SYS:Prefs/PictDT Workbench,Pointer,WB,SYS:Prefs/Pointer Workbench,Printer,WB,SYS:Prefs/Printer Workbench,PrinterGFX,WB,SYS:Prefs/PrinterGFX Workbench,PrinterPS,WB,SYS:Prefs/PrinterPS Workbench,Reaction,WB,SYS:Prefs/Reaction Workbench,Screenmode,WB,SYS:Prefs/Screenmode Workbench,Serial,WB,SYS:Prefs/Serial Workbench,Sound,WB,SYS:Prefs/Sound Workbench,Time,WB,SYS:Prefs/Time Workbench,WarpOS,WB,SYS:Prefs/WarpOS Workbench,WBPattern,WB,SYS:Prefs/WBPattern Workbench,Workbench,WB,SYS:Prefs/Workbench Workbench,>Preferences Workbench,Commodities,WB,SYS:Tools/Commodities/Exchange Workbench,SEPARATOR Workbench,Redraw all,PM_INVOKEWB,WORKBENCH.REDRAWALL Workbench,Update all,PM_INVOKEWB,WORKBENCH.UPDATEALL Workbench,SEPARATOR Workbench,About...,PM_INVOKEWB,WORKBENCH.ABOUT Disk,Open,PM_INVOKEWB,ICONS.OPEN Disk,Information...,PM_INVOKEWB,ICONS.INFORMATION Disk,SEPARATOR Disk,Snapshot,PM_INVOKEWB,ICONS.SNAPSHOT Disk,Unsnapshot,PM_INVOKEWB,ICONS.UNSNAPSHOT Disk,SEPARATOR Disk,Copy,PM_INVOKEWB,ICONS.COPY Disk,Rename,PM_INVOKEWB,ICONS.RENAME Disk,Format disk,PM_INVOKEWB,ICONS.FORMATDISK Directory,New drawer...,PM_INVOKEWB,WINDOW.NEWDRAWER Directory,New file here,WB,EditPad Directory,NewShell here,CLI,Newshell con:0/180/640/56/Newshell/CLOSE Directory,Paste,PM_PASTE Directory,SEPARATOR Directory,Open Parent,PM_INVOKEWB,WINDOW.OPENPARENT Directory,Close drawer,PM_INVOKEWB,WINDOW.CLOSE Directory,SEPARATOR Directory,>Snapshot Directory,Window,PM_INVOKEWB,WINDOW.SNAPSHOT.WINDOW Directory,All,PM_INVOKEWB,WINDOW.SNAPSHOT.ALL Directory,>Snapshot Directory,>Clean up by Directory,Columns,PM_INVOKEWB,WINDOW.CLEANUPBY.COLUMN Directory,Name,PM_INVOKEWB,WINDOW.CLEANUPBY.NAME Directory,Date,PM_INVOKEWB,WINDOW.CLEANUPBY.DATE Directory,Size,PM_INVOKEWB,WINDOW.CLEANUPBY.SIZE Directory,Type,PM_INVOKEWB,WINDOW.CLEANUPBY.TYPE Directory,>Clean up by Directory,>Show Directory,Only icons,PM_INVOKEWB,WINDOW.SHOW.ONLYICONS Directory,All files,PM_INVOKEWB,WINDOW.SHOW.ALLFILES Directory,>Show Directory,>View by Directory,Icon,PM_INVOKEWB,WINDOW.VIEWBY.ICON Directory,Name,PM_INVOKEWB,WINDOW.VIEWBY.NAME Directory,Date,PM_INVOKEWB,WINDOW.VIEWBY.DATE Directory,Size,PM_INVOKEWB,WINDOW.VIEWBY.SIZE Directory,Type,PM_INVOKEWB,WINDOW.VIEWBY.TYPE Directory,>View by Directory,SEPARATOR Directory,Resize to fit,PM_INVOKEWB,WINDOW.RESIZETOFIT Directory,SEPARATOR Directory,Update,PM_INVOKEWB,WINDOW.UPDATE Directory,Select contents,PM_INVOKEWB,WINDOW.SELECTCONTENTS Directory,Clear selection,PM_INVOKEWB,WINDOW.CLEARSELECTION Directory,Find...,WB,SYS:System/Find AppIcon,Open,PM_INVOKEWB,ICONS.OPEN SingleIcon,Open,PM_INVOKEWB,ICONS.OPEN SingleIcon,Information...,PM_INVOKEWB,ICONS.INFORMATION SingleIcon,SEPARATOR SingleIcon,Snapshot,PM_INVOKEWB,ICONS.SNAPSHOT SingleIcon,Unsnapshot,PM_INVOKEWB,ICONS.UNSNAPSHOT SingleIcon,Leave out,PM_INVOKEWB,ICONS.LEAVEOUT SingleIcon,Put away,PM_INVOKEWB,ICONS.PUTAWAY SingleIcon,SEPARATOR SingleIcon,Duplicate,PM_INVOKEWB,ICONS.COPY SingleIcon,Rename,PM_INVOKEWB,ICONS.RENAME SingleIcon,Delete,PM_INVOKEWB,ICONS.DELETE SingleIcon,SEPARATOR SingleIcon,Edit,CLI,IconEdit %o Multiple,Open,PM_INVOKEWB,ICONS.OPEN Multiple,Information...,PM_INVOKEWB,ICONS.INFORMATION Multiple,SEPARATOR Multiple,Snapshot,PM_INVOKEWB,ICONS.SNAPSHOT Multiple,Unsnapshot,PM_INVOKEWB,ICONS.UNSNAPSHOT Multiple,Leave out,PM_INVOKEWB,ICONS.LEAVEOUT Multiple,Put away,PM_INVOKEWB,ICONS.PUTAWAY Multiple,SEPARATOR Multiple,Copy,PM_COPY Multiple,Cut,PM_CUT Multiple,Duplicate,PM_INVOKEWB,ICONS.COPY Multiple,Rename,PM_INVOKEWB,ICONS.RENAME Multiple,Delete,PM_INVOKEWB,ICONS.DELETE Drawer,Open,PM_INVOKEWB,ICONS.OPEN Drawer,Information...,PM_INVOKEWB,ICONS.INFORMATION Drawer,SEPARATOR Drawer,Snapshot,PM_INVOKEWB,ICONS.SNAPSHOT Drawer,Unsnapshot,PM_INVOKEWB,ICONS.UNSNAPSHOT Drawer,Leave out,PM_INVOKEWB,ICONS.LEAVEOUT Drawer,Put away,PM_INVOKEWB,ICONS.PUTAWAY Drawer,SEPARATOR Drawer,Copy,PM_COPY Drawer,Cut,PM_CUT Drawer,Duplicate,PM_INVOKEWB,ICONS.COPY Drawer,Rename,PM_INVOKEWB,ICONS.RENAME Drawer,Delete,PM_INVOKEWB,ICONS.DELETE Project,Open,PM_INVOKEWB,ICONS.OPEN Project,Information...,PM_INVOKEWB,ICONS.INFORMATION Project,SEPARATOR Project,Snapshot,PM_INVOKEWB,ICONS.SNAPSHOT Project,Unsnapshot,PM_INVOKEWB,ICONS.UNSNAPSHOT Project,Leave out,PM_INVOKEWB,ICONS.LEAVEOUT Project,Put away,PM_INVOKEWB,ICONS.PUTAWAY Project,SEPARATOR Project,Copy,PM_COPY Project,Cut,PM_CUT Project,Duplicate,PM_INVOKEWB,ICONS.COPY Project,Rename,PM_INVOKEWB,ICONS.RENAME Project,Delete,PM_INVOKEWB,ICONS.DELETE Project,Copy name,echo %f >ram:test.txt Connection,Edit connection...,CLI,tmp1:os4.0/internet/dialer mode=edit %f ASCII,Edit,CLI,ed %f ASCII,Multiview,CLI,Multiview %f Install,Execute,WB,installer %f Mountlist,Mount,CLI,mount %f Script,Execute,CLI,execute %f Rexx,Execute,CLI,rx %f Archive,Extract,CLI,rx REXX:ExtractArc.rexx %f AIFF,Play,CLI,play16 OUTPUT AHI MODE 131086 %o Tool,Version string,CLI,requestchoice >NIL: Version "`version full file %o`" Ok
-- Snip --
Hope this helps.
Bye, Andre |