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

[KBM] shortcut to run a command w/ arguments #1556

Closed
fishzle opened this issue Mar 12, 2020 · 4 comments
Closed

[KBM] shortcut to run a command w/ arguments #1556

fishzle opened this issue Mar 12, 2020 · 4 comments
Labels
Idea-Enhancement New feature or request on an existing product Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Milestone

Comments

@fishzle
Copy link

fishzle commented Mar 12, 2020

re-mapping keys is useful, but what I really want is for my preferred Shortcut to run a command (and options) of my choice. Like the Exotic calculator key, but more generic.

I'm currently using a combination of AHK and wizmo (https://www.grc.com/wizmo/wizmo.htm) to bind Win-Z to a command that puts my computer to sleep.

; AHK fragment
#z:: ; Go to sleep mister computer
  Run, wizmo.exe standby quiet
Return

I know I don't have to use wizmo, but it's so much more readable than the equivalent rundll command.

@crutkas
Copy link
Member

crutkas commented Mar 12, 2020

@saahmedm, I'm unsure this is in scope for v1. launch apps via key short cut + args.

@crutkas crutkas added the Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager label Mar 12, 2020
@crutkas crutkas changed the title Keyboard Manager suggestion: be like wizmo [Keyboard Manager] - keyshortcut to launch keys w/ arguments Mar 12, 2020
@crutkas crutkas added this to the Backlog milestone Mar 12, 2020
@crutkas crutkas added the Idea-Enhancement New feature or request on an existing product label Mar 12, 2020
@arjunbalgovind
Copy link
Contributor

Implementing this would require some refactoring in KBM. Right now we have single methods for remapping keys and remapping shortcuts and each of these methods both "detect" the shortcut/key being pressed, and accordingly handle the events after that. By refactoring we can decouple the "detect" and handle logic, so that for this feature, the detect logic can be re-used, but instead of sending a new shortcut we would just launch an app (or run any custom API).

@enricogior
Copy link
Contributor

To me this seems something that should be implemented in its own module and not in KBM.

@enricogior enricogior changed the title [Keyboard Manager] - keyshortcut to launch keys w/ arguments [KBM] shortcut to run a command w/ arguments Jan 10, 2021
@enricogior enricogior added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Mar 9, 2021
@enricogior
Copy link
Contributor

Closing this in favor of #3350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Product-Keyboard Shortcut Manager Issues regarding Keyboard Shortcut Manager Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

4 participants