Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;This AHK script will search for the Oscilloscope visualization window on Foobar2000 and fullscreen it after 3 minutes of being idle.
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- #NoTrayIcon
- #Persistent
- SetTimer, Fullscreen
- return
- Fullscreen:
- If (A_TimeIdle > 360000)
- {
- IfWinNotActive, Oscilloscope
- {
- IfWinExist, ahk_class {E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}
- {
- WinActivate, ahk_class {E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}
- SendInput {Alt}
- SendInput {Right}
- SendInput {Right}
- SendInput {Down}
- SendInput {Down}
- SendInput {Down}
- SendInput {Right}
- SendInput {Enter}
- Sleep 500
- WinActivate, Oscilloscope
- CoordMode, Mouse, Relative
- Click 80, 200, 2
- WinWaitNotActive, Oscilloscope
- }
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement