Advertisement
RyzaJr

[AHK] Foobar2000.Oscillo.Screensaver

Mar 28th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;This AHK script will search for the Oscilloscope visualization window on Foobar2000 and fullscreen it after 3 minutes of being idle.
  2.  
  3. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  4. #Warn  ; Enable warnings to assist with detecting common errors.
  5. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  6. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  7.  
  8. #NoTrayIcon
  9. #Persistent
  10.  
  11. SetTimer, Fullscreen
  12. return
  13.  
  14. Fullscreen:
  15.     If (A_TimeIdle > 360000)
  16.     {
  17.         IfWinNotActive, Oscilloscope
  18.         {
  19.             IfWinExist, ahk_class {E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}
  20.             {
  21.                 WinActivate, ahk_class {E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}
  22.                 SendInput {Alt}
  23.                 SendInput {Right}
  24.                 SendInput {Right}
  25.                 SendInput {Down}
  26.                 SendInput {Down}
  27.                 SendInput {Down}
  28.                 SendInput {Right}
  29.                 SendInput {Enter}
  30.                 Sleep 500
  31.                 WinActivate, Oscilloscope
  32.                 CoordMode, Mouse, Relative
  33.                 Click 80, 200, 2
  34.                 WinWaitNotActive, Oscilloscope
  35.             }
  36.  
  37.         }
  38.  
  39.     }
  40. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement