MetaCommand question

Get help with installation and running Multi-Edit here. Bug reports can be posted here but please not post feature requests here.

Moderator: Moderators

MetaCommand question

Postby samej71 on Mon Dec 29, 2008 9:30 pm

Hello,

I have added a new context menu option to the files list in the "Project View" pane, that I would like to use to open a file in a specialty editor. I've added the command, but I'm not sure what metacommands to use to pass along the selected file. Right now I'm using <FILE>.<EXT>, which is, of course, passing the file of the active editing window, and not the file that was right-clicked on.

What metacommand(s) should I use to pull the file(s) that was/were selected/right-clicked on, that brought up the context menu where my menu command is located?

Thanks!

(Hopefully that makes at least a teeny bit of sense)

--James
My MEW wishlist (somewhat outdated, but some are still valid wishes)
http://www.planetolsen.com/other/multie ... hlist.html
"There are 10 types of people in the world: those who understand binary, and those who don't." -- Unknown
samej71
Registered User
 
Posts: 201
Joined: Sat Aug 16, 2003 4:18 am
Location: Washington, IL

Postby DanHughes on Thu Jan 08, 2009 4:22 pm

There is no metacommand to use to specify selected files in the project file list but the list of selected files are saved in a global string variable. You can use the Menus^ContextSelectionGetFile to get the selected files, one returned each invocation.
Dan Hughes
DanHughes
Registered User
 
Posts: 725
Joined: Mon Jun 30, 2003 4:29 am
Location: Indiana

Postby samej71 on Fri Jan 09, 2009 2:42 am

DanHughes wrote:There is no metacommand to use to specify selected files in the project file list but the list of selected files are saved in a global string variable. You can use the Menus^ContextSelectionGetFile to get the selected files, one returned each invocation.


Sweet. Thanks! I'll see if I can get something worked up.

Thanks again!

--James
My MEW wishlist (somewhat outdated, but some are still valid wishes)
http://www.planetolsen.com/other/multie ... hlist.html
"There are 10 types of people in the world: those who understand binary, and those who don't." -- Unknown
samej71
Registered User
 
Posts: 201
Joined: Sat Aug 16, 2003 4:18 am
Location: Washington, IL


Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests