Skip to main content
12-Amethyst
February 25, 2015
Solved

Mapkey to activate current window

  • February 25, 2015
  • 4 replies
  • 5984 views

Hallo,

anyone knows, in Creo Parametric, the code to insert in the config.pro file in order to have a mapkey that activates the current window (just like Ctrl+A)?

I would like to replace the Ctrl+A with just one keyboard button (like, in my case, the button "<").

I tried to record a mapkey clicking the button "activate" but it activates always the same window.

thanks

Best answer by Jose_Costa

One possible solution with Autohotkey and just three lines of code:

SetTitleMatchMode 2

#IfWinActive, - Creo Parametric

<::Send ^a


Try attached file. just execute it and call button "<" inside of Creo.



Jose.

4 replies

24-Ruby III
February 25, 2015

Tomasso,

I don't think that pure mapkey functionality is able to call Ctrl+A. I guess that you have to combine mapkey functionality with AutoHotkey/AutoIt functionality.

Martin Hanak

12-Amethyst
February 27, 2015

One possible solution with Autohotkey and just three lines of code:

SetTitleMatchMode 2

#IfWinActive, - Creo Parametric

<::Send ^a


Try attached file. just execute it and call button "<" inside of Creo.



Jose.

tleati12-AmethystAuthor
12-Amethyst
March 3, 2015

Hi Jose,

your exe file works indeed, thanks for this.

However, since it works with autohotkey, I have to sacrify the button I use for it, for other applications too. (in this case, I have to sacrify the button "<" if I write for example on the internet or in Excel vba...) and I would have to deactivate autohotkey and the thing become no more convenient at this point.


12-Amethyst
March 3, 2015

It shouldn´t work like that,

I included the line "#IfWinActive, - Creo Parametric" to guarantee that the macro only works inside of Creo.

And it´s working like that in my computer.

23-Emerald IV
February 28, 2015

Here you go. (This is from Creo 3)

mapkey < @MAPKEY_NAMEActivate Window;@MAPKEY_LABELActivate;\

mapkey(continued) ~ Command `ProCmdWinActivate`;

1-Visitor
March 1, 2015

Nice one

12-Amethyst
March 1, 2015

Yes, Creo 3 has been finally enhanced on this. Great for who works with multiple monitors.