Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mapkey clutter 1

Status
Not open for further replies.

cadmunky69

Industrial
Joined
Nov 28, 2006
Messages
27
Location
US
i know it's out there somewhere. i saw a short guide on reducing un-needed clutter in mapkey definitions for the wildfire* syntax. just trying to reduce my 15 page config.pro. =(

Ed Lee
Sr. Designer
H2Gen
Alexandria, VA
 
I saw something like what you're talking about, but I can't remember where it was. In general, you can typically trim out some of the drop-down selection instructions. Here's an example:
BEFORE:
mapkey mm @MAPKEY_LABELmeasure;\
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Analysis`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `Analysis.psh_analysis_measure`;\
mapkey(continued) ~ Open `measure` `MsrTypeOptions`;~ Close `measure` `MsrTypeOptions`;\
mapkey(continued) ~ Select `measure` `MsrTypeOptions`1 `Distance`;

AFTER:
mapkey mm @MAPKEY_LABELmeasure;\
mapkey(continued) ~ Activate `main_dlg_cur` `Analysis.psh_analysis_measure`;\
mapkey(continued) ~ Open `measure` `MsrTypeOptions`;~ Close `measure` `MsrTypeOptions`;\
mapkey(continued) ~ Select `measure` `MsrTypeOptions`1 `Distance`;

These two lines are basically recording the fact you clicked the 'Analysis' dropdown, but the real command is the 'Analysis.psh_analysis_measure'.
mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `Analysis`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\

<tg>
 
I think what you want is this config option:

cmdmgr_trail_output YES

However, you will have to remake all your mapkeys.
 
I hate it when I know I've seen something but not sure where, because I always set out on a mission to find it.

Here's what I had seen on cleaning up mapkeys:

<tg>
 
that's the one! thanks TG.

dgallup, what effect does that switch have exactly? i'll play with it anyway, just want to be aware of any adverse effects.

Ed Lee
Sr. Designer
H2Gen
Alexandria, VA
 
I believe it automatically leaves out the unnecessary UI BS when you create a mapkey or trail file. Makes them run faster with less chance of failure.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top