microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
110.56k stars 6.51k forks source link

Remapping a shortcut for multiple keys trokes #26441

Closed Nerosetsfire closed 1 year ago

Nerosetsfire commented 1 year ago

Description of the new feature / enhancement

Maybe there is a way to accomplish this, but I can't figure it out for the life of me. I want to create a multi-key shortcut. For example, when I hit "Alt + A" I want powertoys to execute the shortcut "Alt, P, E, Up Arrow, Enter"

But I seem to only be allowed to enter one key stroke, as in I can change Alt + A to be something else, like Alt + B but I can't change it to Alt + B + Z

Is there a way?

Scenario when this would be used?

When using MIDI2LR I can only use one keyboard short cut at a time, see I need to find a way to combine multiple shortcuts into one key, then assign that one key in midi2lr

Supporting information

No response

Jay-o-Way commented 1 year ago

AutoHotkey or PowerAutomate could do this without breaking a sweat!

Nerosetsfire commented 1 year ago

would you have any idea how to accomplish that in auto-hotkey? I'm zero at programing :(

Jay-o-Way commented 1 year ago

Based on your example, you might want to start with something like - but do check

HotIfWinActive "MIDI2LR"
!A::
{
    SetKeyDelay 75, 25  ; 75ms between keys, 25ms between down/up.
    Send {Alt}{P}{E}{Up}{Enter}
}
Nerosetsfire commented 1 year ago

Thanks for trying, but it didn't work. Actually, I don't think the script needs to take midi2lr into account, it just needs to execute the code in lightroom...but I suspect this is beyond my ability to understand :-(

crutkas commented 1 year ago

/dup https://github.com/microsoft/PowerToys/issues/4508

microsoft-github-policy-service[bot] commented 1 year ago

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!