Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
21 crawler(s) on-line.
 82 guest(s) on-line.
 0 member(s) on-line.



You are an anonymous user.
Register Now!
 agami:  22 mins ago
 matthey:  30 mins ago
 ed:  46 mins ago
 kolla:  1 hr 45 mins ago
 Rob:  1 hr 54 mins ago
 ruben:  2 hrs 19 mins ago
 amigakit:  2 hrs 21 mins ago
 sananaman:  2 hrs 25 mins ago
 NutsAboutAmiga:  2 hrs 28 mins ago
 OneTimer1:  2 hrs 35 mins ago

/  Forum Index
   /  Amiga OS4.x \ Workbench 4.x
      /  How should ENV:ContextMenus.cfg look?
Register To Post

PosterThread
Deniil715 
How should ENV:ContextMenus.cfg look?
Posted on 1-Jan-2005 17:14:56
#1 ]
Elite Member
Joined: 14-May-2003
Posts: 4237
From: Sweden

The commodity ContextMenus is supposed to read a prefs file called ENV:ContextMenus.cfg. But it doesn't exists on my machine and I have therefor no idea of what it should look like?

Does anyone know? I'd like to add/change some functionality

_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
ShInKurO 
Re: How should ENV:ContextMenus.cfg look?
Posted on 1-Jan-2005 17:16:52
#2 ]
Regular Member
Joined: 18-Jan-2004
Posts: 465
From: Italy

@Deniil715

good question....


ShInKurO

 Status: Offline
Profile     Report this post  
Anonymous 
Re: How should ENV:ContextMenus.cfg look?
Posted on 1-Jan-2005 17:26:40
# ]

0
0

@Deniil715

I believe it will be in

It's a great little commodity but due to it's development stage still missing
some features and has some missing actions (e.g. you cannot copy a file with
ContextMenus). One can "duplicate" it, but not copy

But i hope that they still work on it because i already love it

 
     Report this post  
Deniil715 
Re: How should ENV:ContextMenus.cfg look?
Posted on 1-Jan-2005 20:10:21
#4 ]
Elite Member
Joined: 14-May-2003
Posts: 4237
From: Sweden

@Raziel

Yes, but it does search for the file ENV:ContextMenus.cfg and the author (or someone else who "knows") said that this file can be edited with a text editor to add your own programs to start an application with and stuff like that IIRC, and I would like to know the format of this file (which is supposed to be a text file).

_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  
Anonymous 
Re: How should ENV:ContextMenus.cfg look?
Posted on 1-Jan-2005 20:17:18
# ]

0
0

@Deniil715

Could be a hard thing to find out how this file is actually crafted.

I'm sorry, i haven't such file on my HD either,
better try and talk to the author, maybe

 
     Report this post  
Serpi 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 12:24:56
#6 ]
Cult Member
Joined: 31-Jul-2003
Posts: 547
From: Germany

@Raziel

Quote:
you cannot copy a file with ContextMenus


Sorry? Of course you can!
What do you think the "copy" and "paste" items are for?

Select "copy" on a file/dir you want to copy and "paste" in a drawer where you want to copy it to.

Ciao, Alfred

 Status: Offline
Profile     Report this post  
Anonymous 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 12:32:24
# ]

0
0

@Serpi



Now i'm a victim of the non-existing docs, too.
I never realized there is a "Paste". Now that you say it, yes it works, kind of
"around-the-corner" though, but it works.

Amazing, for the hint

 
     Report this post  
Swoop 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 15:51:11
#8 ]
Elite Member
Joined: 20-Jun-2003
Posts: 2163
From: Long Riston, East Yorkshire

@Deniil715

Quote:
The commodity ContextMenus is supposed to read a prefs file called ENV:ContextMenus.cfg. But it doesn't exists on my machine and I have therefor no idea of what it should look like?


Unfortunatley no such file exists, it was somebody on one of these forums that suggested it did, not the author. I had problems trying to change the default size of a shell when opened with the "New shell here..." option in powermenus.

Contextmenus is the update1 version of Powermenus which was distributed as part of the OS4pre distribution. On upgrading to context menus, as suggested, the config file still did not exist.

If you look at the contextmenu program in notepad (just drag & drop onto icon), and scroll down to the end you will see that the menu options are hard coded in to the program.
Hopefully future versions will allow a seperate config file.

_________________
Peter Swallow.
A1XEG3-800 [IBM 750FX PowerPC], running OS4.1FE, using ac97 onboard sound.

"There are 10 types of people in the world: those who understand binary, and those who don't."

 Status: Offline
Profile     Report this post  
Serpi 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 15:53:47
#9 ]
Cult Member
Joined: 31-Jul-2003
Posts: 547
From: Germany

@Swoop

Quote:
you will see that the menu options are hard coded in to the program


If you are running SnoopDos when starting ContextMenu, you will see, that it looks for a file ENV:ContextMenus.cfg.

Ciao, Alfred

 Status: Offline
Profile     Report this post  
Swoop 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 16:03:01
#10 ]
Elite Member
Joined: 20-Jun-2003
Posts: 2163
From: Long Riston, East Yorkshire

@Serpi

However, the configs are hard coded in to the program, so unless the program itself writes the config file to Env: it wont (and doesn`t) exist.

Only the author can tell us, where is he/she??????

_________________
Peter Swallow.
A1XEG3-800 [IBM 750FX PowerPC], running OS4.1FE, using ac97 onboard sound.

"There are 10 types of people in the world: those who understand binary, and those who don't."

 Status: Offline
Profile     Report this post  
AND 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 16:39:21
#11 ]
New Member
Joined: 20-Jun-2004
Posts: 9
From: Frankfurt - Germany

@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

 Status: Offline
Profile     Report this post  
MichaelMerkel 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 16:45:59
#12 ]
Cult Member
Joined: 9-Mar-2003
Posts: 819
From: Ilvesheim, Germany

@AND

just five minutes ago i tried it by copying the contents of the executeable with an file-monitor and it worked. it look exactly like what you posted.

thanks!!

i also included the "newrename" tool now for icons. works great!

byebye...

_________________
Michael Merkel
(Michael.Merkel@gmx.net Home)
Member of Amiga-Freunde Pfalz, OS4 Welt

 Status: Offline
Profile     Report this post  
Anonymous 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 16:49:04
# ]

0
0

@AND

Hello AND, and thank you for sharing the file

 
     Report this post  
AND 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 17:07:47
#14 ]
New Member
Joined: 20-Jun-2004
Posts: 9
From: Frankfurt - Germany

@MichaelMerkel

Where did you get the "newrename" tool from?

Just out of interest:
Is that the tool I once coded?

Bye, Andre

 Status: Offline
Profile     Report this post  
Deniil715 
Re: How should ENV:ContextMenus.cfg look?
Posted on 2-Jan-2005 18:34:07
#15 ]
Elite Member
Joined: 14-May-2003
Posts: 4237
From: Sweden

@AND

Thankyou! Exactly what I wanted to hear
I have now copied your post into a text file and saved it so I won't lose the information!

_________________
- Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes)
> Amiga Classic and OS4 developer for OnyxSoft.

 Status: Offline
Profile     Report this post  

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle