csavalas / HotkeyMapper

Hotkey Mapper for Lenovo Thinkpads
4 stars 0 forks source link

It's so wonderfull! Could the app remap other Fn Key, like f12 #1

Closed xuxinliang closed 1 week ago

xuxinliang commented 2 weeks ago

It's so wonderfull! Could the app remap other Fn Key, like f12

OhShoot01 commented 2 weeks ago

The F12 key can be remapped through Lenovo Vantage.

xuxinliang commented 2 weeks ago

The F12 key can be remapped through Lenovo Vantage.

How about F8?

xuxinliang commented 2 weeks ago

I have found that Fn+S=Alt+PrtScrn Fn+B=Ctrl+Break Fn+K=Scroll Fn+Tab,can be customized by Ex_13。 Fn+P

csavalas commented 2 weeks ago

I haven't tried other keys before, but, after checking just now, it looks like F4-F8 may be customizable through the same method as well:

F4: Ex_1A F5: Ex_10 F6: Ex_0F F7: 7 F8: 5

csavalas commented 2 weeks ago

I just confirmed that customizing F4, F7, and F8 works perfectly. While F5/F6 can be customized as well, they still adjust the brightness alongside whatever mapping is set, so not ideal.

csavalas commented 2 weeks ago

FYI... F12: Ex_90

xuxinliang commented 2 weeks ago

FYI... F12: Ex_90

It is so amazing!

how to find relation between fn and ex_###?

I just want to know the way to customize "Fn+ space"

xuxinliang commented 2 weeks ago

I just confirmed that customizing F4, F7, and F8 works perfectly. While F5/F6 can be customized as well, they still adjust the brightness alongside whatever mapping is set, so not ideal.

May be different model had the different key. Could you show me the way to get the relation between Fn and the code, like ex_###. My model is T14S(gen 1), F8(with code 5) does not work.

csavalas commented 2 weeks ago

@xuxinliang

Hey there, I am actually in the process of making this work for older gens too, so maybe we can help each other (since I don't have access to an older ThinkPad lol).

As you probably already know, the registry key we care about is located here: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Lenovo\ShortcutKey\AppLaunch

Under that key, certain subkeys relate to different F-keys on the keyboard. Here is a chart I put together for my P1 Gen 6

 F4: Ex_1A
 F5: Ex_10
 F6: Ex_0F
 F7: 7
 F8: 5
 F9: Ex_96
F10: Ex_97
F11: Ex_98
F12: Ex_90

If you could make me a similar chart for yours, that'd be awesome!

Here's how to do that:

Ok, now you're ready to go. Repeat the following steps for each key (F4-F12):

  1. Press CTRL + E to toggle on event capture
  2. Press the desired F-key (F4-F12)
  3. At least a few events should appear
  4. Press CTRL + E to toggle off event capture
  5. Look for an entry whose path contains: HKLM\SOFTWARE\Lenovo\ShortcutKey\AppLaunch
    • Take note of the subkey after AppLaunch, that is the subkey corresponding to the F-key you pressed in step 2
      • E.g. For the path HKLM\SOFTWARE\Lenovo\ShortcutKey\AppLaunch\Ex_97, we would take note of just the subkey Ex_97
  6. Press CTRL + X to clear the captured events

Let me know if you have troubles with any of that, and post your F4-F12 chart whenever you can, thanks!

xuxinliang commented 1 week ago

I follow your steps , and get the same results as you. F4: Ex_1A F5: Ex_10 F6: Ex_0F F7: 7 F8: 5 F9: Ex_96 F10: Ex_97 F11: Ex_98 F12: Ex_90

But F4, F5, F6, F7, F8 and F12 didn't work(can't be customized), remaining the original function. Only F9, F10, F11, Fn+Tab works.

csavalas commented 1 week ago

Thanks for doing that, and having looked at this, it actually makes sense that you got the same result--I saw 'gen 1' and assumed it was a much older model.

That being said, can you elaborate on what exactly you are doing, step-by-step, to try to remap F8, for example?

csavalas commented 1 week ago

F8Test.zip

@xuxinliang Here, just to narrow this down, try merging this file with your registry. Once merged, pressing F8 should open a new browser window to https://github.com. Let me know if it does

xuxinliang commented 1 week ago

F8Test.zip

@xuxinliang Here, just to narrow this down, try merging this file with your registry. Once merged, pressing F8 should open a new browser window to https://github.com. Let me know if it does

it works! :-):-)

With F8、F12 The path ("File"="%SystemRoot%\system32\notepad.exe") did not work.

The path ("File"="C:\Windows\notepad.exe") worked。

With Fn+tab "File"="%SystemRoot%\system32\notepad.exe" worked. So I copy the path to F8,

csavalas commented 1 week ago

Great! I just released a new version that supports all of the keys from F4-F12, check it out!

main

xuxinliang commented 1 week ago

Great! I just released a new version that supports all of the keys from F4-F12, check it out!

main

great, thank you. :-)