obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.79k stars 701 forks source link

requesthandler: Add optional context to TriggerHotkeyByName #1187

Closed exeldro closed 6 months ago

exeldro commented 7 months ago

Description

Add optional context to TriggerHotkeyByName

Motivation and Context

The same hotkey name can exist on multiple context, to make sure we got the correct one add an optional context

How Has This Been Tested?

Tried calling { "requestType": "TriggerHotkeyByName", "requestData": { "hotkeyName": "OBSBasic.SelectScene", "contextName": "Scene 1" } } Tested OS(s): Windows 11

Types of changes

Checklist: