A simple OBS script to show pressed common hotkey form (e.g. Ctrl+C, Alt+V) in screen.
Demo: https://youtu.be/iMdDl_yG-c4
- Download the showhtk.lua and save to any folder you like.
- In OBS, create a new text source, and design it, because showhtk.lua doesn't design text source.
- Go to Tools menu > Scripts. Click the plus button to add the script.
- At the right side of the window are the Description and 2 Properties: Duration (seconds) and Text Source. Modify the duration as you wish and load the text source you just created.
- Click Close, and try pressing some hotkeys now!
Here are the base keys:
Escape, F1-F12, Delete, Return, 0-9, A-Z, Tilde, Minus, Equals, Backspace, Tab, Left Bracket, Right Bracket, Backslash, Semicolon, Apostrophe, Comma, Period, Slash, Space
Supported hotkey forms:
- Escape, F1-F12, Delete, Return (Return is shown as Enter in Windows.)
- Shift+Escape, Shift+F1-F12, Shift+Delete, Shift+Return
- Ctrl+<base key>
- Ctrl+Shift+<base key>
- Ctrl+Alt+<base key>
- Ctrl+Alt+Shift+<base key>
- Alt+<base key>
- Alt+Shift+<base key>
- Cmd+<base key> (Cmd is Win key in Windows.)
- Cmd+Shift+<base key>
Just make an issue if anyone wants more hotkeys 😃. Note that I will not implement "incomplete" hotkeys like Ctrl only, Alt only, etc. because I found out that those keys alone, in some sense, "compete in being shown" with themselves and the hotkey forms above.
- Thanks to upgradeQ here: https://ideas.obsproject.com/posts/746/show-user-keystrokes-on-screen
- Their script: https://github.com/upgradeQ/OBS-VirtualChat