Advertisement
Shuddertrix

Fullscreen Borderless - Fallout

Aug 4th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance Force
  2. #Persistent
  3.  
  4. SetTimer fo3, 500
  5. SetTimer fnv, 500
  6. Return
  7.  
  8. fo3:
  9.   WinGet IDs, List, ahk_class Fallout3
  10.    Loop %IDs%
  11.    {
  12.     Screen_X = %A_ScreenWidth%
  13.     Screen_Y = %A_ScreenHeight%
  14.       ID := IDs%A_Index%
  15.       If ID not in %Old_IDs%
  16.       {
  17.          WinActivate ahk_id %ID%
  18.             WinSet, Style, -0xC40000, A
  19.     WinMove, A, , 0, 0, Screen_X, Screen_Y
  20.     WinActivate, A
  21.       }
  22.       New_IDs .= ID ","
  23.    }
  24.    StringTrimRight Old_IDs, New_IDs, 1
  25.    New_IDs =
  26. Return
  27.  
  28. fnv:
  29.   WinGet IDs, List, ahk_class Fallout: New Vegas
  30.    Loop %IDs%
  31.    {
  32.     Screen_X = %A_ScreenWidth%
  33.     Screen_Y = %A_ScreenHeight%
  34.       ID := IDs%A_Index%
  35.       If ID not in %Old_IDs%
  36.       {
  37.          WinActivate ahk_id %ID%
  38.             WinSet, Style, -0xC40000, A
  39.     WinMove, A, , 0, 0, Screen_X, Screen_Y
  40.     WinActivate, A
  41.       }
  42.       New_IDs .= ID ","
  43.    }
  44.    StringTrimRight Old_IDs, New_IDs, 1
  45.    New_IDs =
  46. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement