Trying to send a hotkey to Rivatuner SS to change my profile as I switch displays.
I setup HACS but it doesn't send hotkeys with the correct priority needed to interact with apps running as admin, such as Rivatuner.
I've also tried NirCMD and this does work when running as admin but again, I can't get HACS to send anything as admin.
#Sending hotkeys to a Windows Desktop?
1 messages · Page 1 of 1 (latest)
The only progress I have made, was that I was able to send the hotkey with my Stream Deck, so that would work, but I can't find anything on emulating a stream deck key press from home assistant.
Since you're already running HASS.Agent, consider adding AutoHotKey.
AutoHotkey is a free, open-source scripting language for Windows that allows users to easily create small to complex scripts for all kinds of tasks such as: form fillers, auto-clicking, macros, etc.
Have HASS.Agent send the keystroke to trigger the AHK script. I used to use it to "customize" a Plex window.ahk ;This is a HotIf and only works if the defined window is active ;#HotIf WinActive("Plex") ;This is the shortcut key for ALT+Q !q:: { ;WinSetStyle "^0xC00000", "A" ;Caption WinSetStyle "^0x40000", "A" ;Sizebox WinSetStyle "^0x400000", "A" ;WS_DLGFRAME WinSetStyle "^0x800000", "A" ;Border ;WinMove 1279, -1436, 1281, 697, "A" }You should be able to write your script to do exactly what you want. The docs will help you with the syntax. I primarily use AHK nowadays for text-replacement for stuff I frequently use in Discord.ahk ::link-cb::[custom:button-card](<https://github.com/custom-cards/button-card>)When I typelink-cbit turns into custom:button-card.
The included Window Spy can help you figure out what/how to target.