Advertisement
Guest User

Untitled

a guest
Feb 21st, 2014
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #include <WinAPI.au3>
  2. #include <Constants.au3>
  3. #include <WindowsConstants.au3>
  4.  
  5. WinMove("Planetary Annihilation", "", -8-1280, -8, 1936+1280+1280, 1100+4)
  6.  
  7. $h = WinGetHandle("Planetary Annihilation")
  8.  
  9. $iOldStyle = _WinAPI_GetWindowLong($h, $GWL_STYLE)
  10. $iNewStyle = BitXOr($iOldStyle, 0xC00000)
  11.  
  12. ; set window style to very small borders
  13. _WinAPI_SetWindowLong($h, $GWL_STYLE, $iNewStyle)
  14. _WinAPI_SetWindowPos($h, 0, 0, 0, 0, 0, BitOR($SWP_FRAMECHANGED, $SWP_NOMOVE, $SWP_NOSIZE))
  15.  
  16. ; needed to get pa above the task bar
  17. WinWait("Planetary Annihilation");
  18. WinSetState("Planetary Annihilation", "", @SW_MINIMIZE)
  19. WinWait("Planetary Annihilation");
  20. WinSetState("Planetary Annihilation", "", @SW_RESTORE)
  21.  
  22. WinMove("Planetary Annihilation", "", -8-1280, -8, 1936+1280+1280, 1100+4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement