WeeemRCB
New Member
Hi
I was trying to use an OBS Hotkey bound to 'e' to on/off trigger an audio clip when streaming a game (pubg).
My 'e' in PUBG is bound to a healing drink and so the on/off trigger would play the media audio file (burp after health drink) every other time for comedy effect. But ... it also triggers even when I press a modifier 'Shift+e' (in-game pain pills) which makes it way too frequent an effect - esp if I'm in a fight and spamming keys for healing.
I use Voicemeeter as my software audio mixer and it includes macro buttons which do accept strict Hotkey commands as well as wildcard hotkeys. So, as a workaround, I tried setting up a macro so that when the 'e' is pressed, it would call a simple VB script to trigger F15 for OBS to then play the audio clip.
I created the simple script with a 5s delay so I could
1) Run the script
2) Activate the Hotkey
And then the script should deliver the keystroke for OBS to record.
But all OBS recorded was 'Num Lock'
Wut?
I tried with a few other keys, including a basic 'e' and each time it reads the keystroke as Num Lock.
So I tested the script with notepad and it delivers the keystrokes perfectly.
Even if I set the script to deliver an 'e' and I set the OBS trigger the audio clip on 'e', the script doesn't trigger the clip.
(this would be so much easier if OBS had a wildcard option for each keybind like Voicemeeter)
I'm not sure why OBS would pick it up scripted keystrokes this way, but I've attached the VB for reference
Log file: https://obsproject.com/logs/_E-rd7NDKzqMveHX
I was trying to use an OBS Hotkey bound to 'e' to on/off trigger an audio clip when streaming a game (pubg).
My 'e' in PUBG is bound to a healing drink and so the on/off trigger would play the media audio file (burp after health drink) every other time for comedy effect. But ... it also triggers even when I press a modifier 'Shift+e' (in-game pain pills) which makes it way too frequent an effect - esp if I'm in a fight and spamming keys for healing.
I use Voicemeeter as my software audio mixer and it includes macro buttons which do accept strict Hotkey commands as well as wildcard hotkeys. So, as a workaround, I tried setting up a macro so that when the 'e' is pressed, it would call a simple VB script to trigger F15 for OBS to then play the audio clip.
I created the simple script with a 5s delay so I could
1) Run the script
2) Activate the Hotkey
And then the script should deliver the keystroke for OBS to record.
But all OBS recorded was 'Num Lock'
Wut?
I tried with a few other keys, including a basic 'e' and each time it reads the keystroke as Num Lock.
So I tested the script with notepad and it delivers the keystrokes perfectly.
Even if I set the script to deliver an 'e' and I set the OBS trigger the audio clip on 'e', the script doesn't trigger the clip.
(this would be so much easier if OBS had a wildcard option for each keybind like Voicemeeter)
I'm not sure why OBS would pick it up scripted keystrokes this way, but I've attached the VB for reference
Code:
'Presses F15 to work as a HotKey / Keybind
Set oShell = WScript.CreateObject ("WScript.Shell")
'Disable seep once mapped
WScript.Sleep 5000
oShell.SendKeys "{F15}"
Log file: https://obsproject.com/logs/_E-rd7NDKzqMveHX
Last edited: