8 lines · 413 B
Raw Download
1
#Requires AutoHotkey v2.0+
2
; Start recording in OBS, or stop recording if OBS is open
3
; Use WinExist to check if the OBS window exists
4
if WinExist("ahk_class Qt662QWindowIcon") {
5
    Run("C:\Users\lange\OneDrive\Documents\AutoHotkey\obs-cmd-windows-amd64.exe recording toggle")
6
} else {
7
    Run("C:\Program Files\obs-studio\bin\64bit\obs64.exe --startrecording", "C:\Program Files\obs-studio\bin\64bit\")
8
}