anyone could tell which are the mapkey strings to insert in the config.pro in order to have a mapkey that toggles the browser? (in Creo Parametric 2.0)
You can try below mapkey, keyword is X.
mapkey X @MAPKEY_LABELopen/close browser;\
mapkey(continued) ~ Activate `main_dlg_cur` `BrowserOpenCloseChkBtn`;
I have to retrieve a little my first enthusiasm ...under certain circumstances it doesn't work and I really can't describe in which cases and for which reasons...
it's strange indeed, all I know is that in some cases, (before your suggestion some time ago I had put the browser icon in the bar under the ribbon (the keys Alt+5 are associated to it)) while Alt+5 works, the x button doesn't...
as soon as (and if) I can get further information I will keep you up-to-date
I find that the recorded mapkeys are often flakey - they are prone to failing when the GUI state changes.
It takes a more investigation but it's worth finding the actual ProCmdxxxxxxx function that does what you want to do - calling these is usually more robust.
In your case, try the following mapkey:
mapkey X @MAPKEY_NAMEToggles between showing and hiding the Web Browser;@MAPKEY_LABELShow/Hide Browser;\
mapkey(continued) ~ Command `ProCmdBrowserBtn` -1;
(It's working right now in my Creo 2.0 M140 session , but note: in my configuration, I have my browser launch in a separate window.)
thanks for your suggestion. Indeed I think also Mahesh's was not a recorded mapkey (also, since I tried myself to record one without success).
your strings have the same problem, in some cases it doesn't work (and I still don't know why).
The ProCmdBrowserBtn seems to be the best solution to me too, but maybe your mapkey is missing something like ~ Activate `main_dlg_cur` as in Mahesh's ??
I do not use browser in separate window, if it may make the difference..
Hmm, it works for me, without any issues, so I don't know why it sometimes doesn't work for you.
One thing to keep in mind about mapkeys is that very often, it is not apparent that you have inadvertently pressed the space bar, in which case you think you are typing in your mapkey "X" and wonder why it isn't activating - because the space character (not really visible in the status bar) is in front and there is no mapkey " X" . So you have to clear the prompt (press ENTER) and then press X.
yes thanks, but I already know the fact about the small prompt bar in the lower left corner of the window.
Instead, I have just discovered, for both your mapkeys, what seems to be the (or one of the) source(s) of the problem:
-the mapkeys stop working if (when) I click on whichever object in the browser window, for example on a windchill row corresponding to a CAD part...
while I am looking for a mapkey working on the active window (if not possible, on the window of the active item is also ok) in any situation...
I enclose a video of the screen when I perform this:
Well, yes - I also can't use my mapkey once I start to manipulate objects in the separate browser.
That makes sense, since when the browser is active its window has the focus, and anything you type into it will not be interpreted as a mapkey.
In general, Creo main window has to be active for mapkeys to work. If you can't see your mapkey string being echoed in Creo's status bar, then it simply won't work...
I like your ALT- shortcut method; I'd suggest you put the browser icon in 1st or 2nd place on the quick-access toolbar - it's easier to do ALT-1 or ALT-2 vs ALT-5...
yes, it's a pity there is no way of doing it....in the positions alt-1 to alt-4 there are most frequently used buttons (unfortunately).
thanks anyway for your mapkey,