Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
-- hotkey_launch.lua obs = obslua local hotkey_id = obs.OBS_INVALID_HOTKEY_ID -- Change this to your executable path local executable_path = [[C:\Path\To\Your\Executable.exe]] function script_description() return "Launch an external executable via hotkey" end function on_hotkey_pressed(pressed) if not pressed then return end obs.script_log(obs.LOG_INFO, "Launching executable...") -- Launch the process (non-blocking on Windows if using 'start') os.execute(string.format('start "" "%s"', executable_path)) end function script_load(settings) hotkey_id = obs.obs_hotkey_register_frontend( "launch_executable_hotkey", "Launch External Executable", on_hotkey_pressed ) local hotkey_array = obs.obs_data_get_array(settings, "launch_executable_hotkey") obs.obs_hotkey_load(hotkey_id, hotkey_array) obs.obs_data_array_release(hotkey_array) end function script_save(settings) local hotkey_array = obs.obs_hotkey_save(hotkey_id) obs.obs_data_set_array(settings, "launch_executable_hotkey", hotkey_array) obs.obs_data_array_release(hotkey_array) end
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)