Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <WinAPI.au3>
- #include <Constants.au3>
- #include <WindowsConstants.au3>
- WinMove("Planetary Annihilation", "", -8-1280, -8, 1936+1280+1280, 1100+4)
- $h = WinGetHandle("Planetary Annihilation")
- $iOldStyle = _WinAPI_GetWindowLong($h, $GWL_STYLE)
- $iNewStyle = BitXOr($iOldStyle, 0xC00000)
- ; set window style to very small borders
- _WinAPI_SetWindowLong($h, $GWL_STYLE, $iNewStyle)
- _WinAPI_SetWindowPos($h, 0, 0, 0, 0, 0, BitOR($SWP_FRAMECHANGED, $SWP_NOMOVE, $SWP_NOSIZE))
- ; needed to get pa above the task bar
- WinWait("Planetary Annihilation");
- WinSetState("Planetary Annihilation", "", @SW_MINIMIZE)
- WinWait("Planetary Annihilation");
- WinSetState("Planetary Annihilation", "", @SW_RESTORE)
- WinMove("Planetary Annihilation", "", -8-1280, -8, 1936+1280+1280, 1100+4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement