hass-agent / HASS.Agent

Unofficial development project for the HASS.Agent platform.
https://hass-agent.io
MIT License
314 stars 9 forks source link

Bug: Sending Multiple Keys seemingly non-functional #147

Closed HexagonIsTheBestagon closed 1 month ago

HexagonIsTheBestagon commented 1 month ago

Describe the bug

I want to send the keystroke CTRL + ALT + F11 to my PC via multiplekeys in the command section.

I have tried these Keycodes:

[^%F11] -> Does nothing [^%[{F11}]] -> Only F11 [^] [%] [F11] -> Sends them one after the other [^] [%] [{F11}] -> Only F11 again

None have worked, and I am out of ideas. Maybe I just don't understand the syntax?

Expected behavior

Sending the Keystroke CTRL + ALT + F11

Please check what's applicable (multiple answers possible):

amadeo-alex commented 1 month ago

Hello,

Please try:

[^%{F11}]

Reference: https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys?view=windowsdesktop-8.0

HexagonIsTheBestagon commented 1 month ago

Hey, thank you very much, that worked.