Last active
April 3, 2025 23:35
-
-
Save inxomnyaa/7b1c2666086955f3d38028ce7617798e to your computer and use it in GitHub Desktop.
Automatic Scene Switcher for TikTok LIVE Studio (AHK & shortcuts)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Persistent | |
SetTimer, CheckWindows, 100 ; Check frequently for window changes | |
global lastActiveWindow := "" | |
CheckWindows: | |
; Only run when TikTok LIVE Studio is running | |
if !WinExist("ahk_exe TikTok LIVE Studio.exe") | |
return | |
; Get currently active window | |
WinGet, currentExe, ProcessName, A | |
WinGetTitle, currentWindow, A | |
; Only process if different from last window (window switch occurred) | |
if (currentWindow = lastActiveWindow) | |
return | |
lastActiveWindow := currentWindow | |
; Check for our target applications | |
if (currentExe = "Aseprite.exe") | |
{ | |
; Send Ctrl+F12+Numpad1 all at once | |
SendInput, {Ctrl Down}{F12 Down}{Numpad1 Down}{Numpad1 Up}{F12 Up}{Ctrl Up} | |
} | |
else if (currentExe = "Blockbench.exe") | |
{ | |
; Send Ctrl+F12+Numpad2 all at once | |
SendInput, {Ctrl Down}{F12 Down}{Numpad2 Down}{Numpad2 Up}{F12 Up}{Ctrl Up} | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment