SendKey including modifier key (keydown:shift) in output

With this script, Dopus seems to include the shift key when sending keystrokes with @sendkey.
This is possibly because I am holding down the shift key while the script runs.

@keydown:shift
@sendkey:alt+space

How can I disable or filter out the shift key when using @sendKey, even though shift is held down?

Use Case:

  • Invoke PowerToys Run command using alt + space, clicking a button with: shift + click.

Additional Info:
IGNOREOREQUAL

If the key is physically held down, I don't think there's any way to stop other software seeing that.

I'm surprised PowerToys Run doesn't have a command line, but it looks like you can change its hotkey to something else, if that helps avoid the issue.

My use case is specific to PowerToys, but generally speaking, it would be helpful if Dopus had a setting to ignore the modifier key that was used when clicking the button because the same seems to be true with the other modifiers (ctrl, alt, etc.).

Alternatively, some added documentation would also be helpful in explaining this side effect.
In other words, let us know that keystrokes sent with SendKeys include any modifier keys held down.

Thanks!

Apparently, Autohotkey filters out the depressed shift key when sending its characters.
Here is what I did to enable using the shift + click to invoke PowerToys Run:

Autohotkey script:

;ShowPowerLauncher.ahk
#Requires AutoHotkey v2.0
#SingleInstance Force
send "{Alt Down}{Space Down}{Alt Up}{Alt Up}"
ExitApp

Dopus Button Script

@keydown:shift
@async:"C:\Program Files\AutoHotkey\v2\AutoHotkey64.exe" "[AddUserPathPrefixHere]\Documents\AutoHotKey\Projects\Power Toys\ShowPowerLauncher.ahk"

I do wonder if having the ability in Dopus to also send the {alt down} {alt up} would make any difference.
Anyway, I'm posting this solution for the next generation of Dopus users!
Leo, Thanks again for your help and guidence!

Not sure I understand this. It’s the other program that will be checking which keys are down/pushed, not Opus.