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

Allow macro keys to map to 4-key hotkeys #2916

Closed
2 tasks done
phu54321 opened this issue Aug 3, 2024 · 2 comments
Closed
2 tasks done

Allow macro keys to map to 4-key hotkeys #2916

phu54321 opened this issue Aug 3, 2024 · 2 comments
Labels
question Further information is requested

Comments

@phu54321
Copy link

phu54321 commented Aug 3, 2024

Rules

  • I made myself familiar with the Readme, FAQ and Troubleshooting.
  • I understand that, if insufficient information will be provided, my issue will be closed without an answer.

Is your feature request related to a problem? Please describe

G-helper provides several 4-key hotkeys. Specifically,

Ctrl + Shift + Alt + F13 - Toggle Display Refresh Rate
Ctrl + Shift + Alt + F14 - Eco GPU Mode
Ctrl + Shift + Alt + F15 - Standard GPU Mode
Ctrl + Shift + Alt + F16 - Silent
Ctrl + Shift + Alt + F17 - Balanced
Ctrl + Shift + Alt + F18 - Turbo
Ctrl + Shift + Alt + F19 - Custom 1 (if exists)
Ctrl + Shift + Alt + F20 - Custom 2 (if exists)

Some of the options are not settable via G-helper's macro key settings. Specifically I want to set M3 key to Toggle Display Refresh Rate.

image

I tried to set M3 key to trigger 0x11 0xA2 0x12 0x7C, but it doesn't work, as G-helper only supports up to 3-key hotkeys only.

KeyboardHook.KeyKeyKeyPress((Keys)hexKeys[0], (Keys)hexKeys[1], (Keys)hexKeys[2]);

Describe the solution you'd like

  • Make KeyKeyKeyKeyPress function and allow 4-key combination hotkeys.

Describe alternatives you've considered

  • Another solution would be just adding refresh change option to macro list, but I guess making 4-key presser would be much better as many other applications also use 4-key combos, and I haven't really heard of applications requiring 4-key hotkeys.

Device and Model

ASUS Flow X16, GV601RM

Additional information.

I could PR if requested

seerge added a commit that referenced this issue Aug 3, 2024
@seerge
Copy link
Owner

seerge commented Aug 3, 2024

@phu54321 hello, try this build

GHelper.zip

@seerge seerge added the question Further information is requested label Aug 3, 2024
@phu54321
Copy link
Author

phu54321 commented Aug 3, 2024

Confirmed! It works with 0xA0 0xA2 0xA4 0x7C keystroke.

@phu54321 phu54321 closed this as completed Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants