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

[FEAT]: Hotkey passthrough #45

Open
Kamilkampfwagen-II opened this issue Aug 30, 2024 · 0 comments
Open

[FEAT]: Hotkey passthrough #45

Kamilkampfwagen-II opened this issue Aug 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Kamilkampfwagen-II
Copy link

Is your feature request related to a problem? Please describe.
I would like to bind built in hotkey combinations like Ctrl + V while preserving the original functionality.

Describe the solution you'd like
AutoHotkey allows you to do this by sending back the key. Example:

#InputLevel 1
^v::
{
    Send("^v")
    ; do stuff
}

InputLevel 1 is to prevent infinite recursion.

Describe alternatives you've considered
I tried using powershell for this:

ctrl + v : Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('^v'); program.exe

but it goes into an infinite loop.

@Kamilkampfwagen-II Kamilkampfwagen-II added the enhancement New feature or request label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant