Tell me what command in websocket to tell OBS to make a hotkey for e.g. SHIFT+4
command, it responds fine:
Send-OBSTriggerHotkeyByKeySequence -KeyId 'OBS_KEY_4'
but on a command with SHIFT, no longer and has the error:
Send-OBSTriggerHotkeyByKeySequence -KeyId 'OBS_KEY_4' -KeyModifiersshift
What is the secret of passing the SHIFT, ALT and CTRL keys ?
My piece of code, with an error at Shift:
command, it responds fine:
Send-OBSTriggerHotkeyByKeySequence -KeyId 'OBS_KEY_4'
but on a command with SHIFT, no longer and has the error:
Send-OBSTriggerHotkeyByKeySequence -KeyId 'OBS_KEY_4' -KeyModifiersshift
What is the secret of passing the SHIFT, ALT and CTRL keys ?
My piece of code, with an error at Shift:
rem --- hotkey ---
if /I "%mode%"=="4" (
set "trigger=Send-OBSTriggerHotkeyByKeySequence -KeyId 'OBS_KEY_4'"
) else if /I "%mode%"=="shift7" (
set "trigger=Send-OBSTriggerHotkeyByKeySequence -KeyId 'OBS_KEY_7' -KeyModifiersshift"
) else (
exit /B 1
)
rem --- PowerShell 7 ---
pwsh -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -Command "Import-Module obs-powershell -Force; $uri=[uri]'%uri%'; $token='%token%'; Connect-OBS -WebSocketUri $uri -WebSocketToken $token; %trigger%; Disconnect-OBS;"
endlocal