lanux128

LoopAHK

Apr 13th, 2011
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; remove the titlebar and border(s) for Lotro
  2. Loop
  3. {
  4.     If (GetKeyState("ScrollLock","T"))    ; if ScrollLock is on then don't activate Lotro window
  5.     {
  6.       Continue
  7.     }
  8.     Else
  9.     {
  10.       WinWait, ahk_class Turbine Device Class
  11.       IfWinExist
  12.         {
  13.         IfWinNotActive
  14.         {
  15.             WinActivate, ahk_class Turbine Device Class
  16.             WinSet, Style, -0xC00000 ; remove the titlebar and border(s)
  17.                 WinMove, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%
  18.                 Tooltip, Width = %A_ScreenWidth%`, Height = %A_ScreenHeight%
  19.         }
  20.         }  
  21.     }
  22.     Sleep 15000 ; 15 Seconds
  23. }
  24. Return
Advertisement
Add Comment
Please, Sign In to add comment