Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
xuxinliang opened this issue Jun 8, 2024 · 15 comments
Closed

Comments

@xuxinliang
Copy link

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

@OhShoot01
Copy link

The F12 key can be remapped through Lenovo Vantage.

@xuxinliang
Copy link
Author

The F12 key can be remapped through Lenovo Vantage.

How about F8?

@xuxinliang
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Owner

FYI...
F12: Ex_90

@xuxinliang
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

csavalas commented Jun 12, 2024

@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:

  • Download a program called Process Monitor from here:
  • Run the program
    • When you open it up, it will be filling up with events rapidly...
      • Press CTRL + E to toggle off event capture
      • Press CTRL + X to clear the already captured events
    • Create two event filters by...
      • Press CTRL + L to open the filter window
      • Create a filter with the following specs:
        • Process Name + is + SHTCTKY.EXE + Include
      • Press Add
      • Create another filter with the following specs: Operation + is + RegOpenKey + Include
      • Press Add
      • Press Apply
      • Close the filter window

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
Copy link
Author

xuxinliang commented Jun 13, 2024

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

csavalas commented Jun 13, 2024

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

main

@xuxinliang
Copy link
Author

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

main

great, thank you. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants