cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Mapkey to open parts with cursor in search bar

SOLVED
Highlighted
Marble

Mapkey to open parts with cursor in search bar

Hello,

I would like to record a mapkey which allows me to show the file open window and click with mouse pointer in the search bar ("enter characters to dinamically filter displayed content") in the upper right corner of the windows, so that I can type directly the file I want to open:

1.png

I tried to record it, but it only opens the windows (and If I type, keystrokes appear in the File name bar below.

(an alternative to this is to type the filename in the bar below ("File name:") but the unconvienent in this is that you have to remember the exact filename to spot the part (while this is not the case, many times).

anyone has a suggestion in order to fix this? ( maybe to add some string text in the mapkeys file?) or have a workaround...

thanks

bye bye

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Mapkey to open parts with cursor in search bar

this works perfectly find for me.

I guess the ' are not the right (with the copy and paste).

try from my attachment

View solution in original post

13 REPLIES 13

Re: Mapkey to open parts with cursor in search bar

Hello

here what i use to go the dynamic search

mapkey fom @MAPKEY_LABELFile Open Model;~ Command `ProCmdModelOpen`; \

mapkey(continued) ~ Update `file_open` `EMBED_BROWSER_SEARCH_IP` ``;

Re: Mapkey to open parts with cursor in search bar

try these.  it conditions the search to drawings, parts or assemblies

Re: Mapkey to open parts with cursor in search bar

Hello Tommaso,

have you been able to use the suggestions from Jean-Raymond and Ron?

Thanks,

Gunter

Re: Mapkey to open parts with cursor in search bar

Hello John,

thanks for your suggestion.

I tried your mapkey but when I press the key this message appears:

4.png

and then if I type something in that bar ("test") and press ok, the file open windows appears with the word typed in the file name bar below:

5.png

while instead I am searching for a way to have the cursor directly in the upper right search bar:

6.PNG

because in the file name below bar you have to type the entire file name including its extension.

Does your mapkey behave this way in your Creo too?

thanks

bye

Tommaso

Re: Mapkey to open parts with cursor in search bar

Hi Ron,

thanks for your suggestion. I tried your maokeys but indeed what I am searching for is not much to filter by file type but instead a way to have the cursor directly in the upper right search bar:

6.PNG

but I find it useful to have also the distinction by file type, If I solve my inquiry I may create a combination of both (curson in the search bar and items already filtered by file type).

thanks

bye

Tommaso

Re: Mapkey to open parts with cursor in search bar

Hello,

I have been able to solve the problem by creating a mapkey which recalls an external OS script written in autohotkey. The mapkey is the following (in square brackets the custom texts):

mapkey [mapkey key sequence] @MAPKEY_NAME[mapkey description]; \

mapkey(continued) @MAPKEY_LABEL[mapkey label]; \

mapkey(continued) ~ Command `ProCmdModelOpen`

mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\

mapkey(continued) @SYSTEM C:\\[path to the script file]\\scriptname.ahk;

this mapkey firstly opens the File Open window, then recalls the script file "scriptname.ahk", which in turn activates the "File Open" window (necessary step since at the moment of the script launch the active window is not the Creo File Open window), and presses 3 times the Tab key.

The autohotkey script contains just the following two lines:

WinActivate File Open

Send {TAB 3}

two little unconvenients of this procedure are:

-the appearance of the black DOS command window for a fraction of second

-the process lasts 0,7 second (so not as fast as expected)

(but works fine anyway).

As an alternative, instead of the ahk script, a VB Script could be put in, with which the black DOS window can be hidden and maybe it's also faster (but I don't know how to make a VB Script ).

(Any alternative suggestion is welcome anyway).

bye

Tommaso

Re: Mapkey to open parts with cursor in search bar

Did you try my answer? because it does exactly what you are asking for.

Re: Mapkey to open parts with cursor in search bar

Hi John,

yes I had tried your mapkey and replied to you on

which in the end has two ' ' that might be read as illegal characters...now I am trying to modify them (or replace with something else) and let you know the output.

thanks

bye

Tommaso

Re: Mapkey to open parts with cursor in search bar

this works perfectly find for me.

I guess the ' are not the right (with the copy and paste).

try from my attachment

View solution in original post