Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance force
- Menu, Tray, add, &Fullscreen CTRL + F, MenuFullscreen
- Menu, Tray, Add, &Window CTRL + W, MenuWindow
- Menu, Tray, Add, E&xit Script CTRL + X, MenuExit
- Menu, Tray, Add
- Menu, Tray, Default, &Fullscreen CTRL + F
- Menu, Tray, NoStandard
- Menu, Tray, Standard
- ;Menu, Tray, Icon, expand.ico
- return
- MenuFullscreen:
- Send ^f
- return
- MenuWindow:
- Send ^w
- return
- MenuExit:
- Send ^x
- return
- ^f::
- WinActivate, WGT Golf ahk_class UnityWndClass
- gosub, GetCurrentScreenSize
- if (sizetop > 0) sizebottom := sizebottom - sizetop
- if (sizeleft > 0) sizeright := sizeright - sizeleft
- WinMove, WGT Golf, , sizeleft, sizetop, sizeright, sizebottom
- WinSet, Style, -0xC00000, WGT Golf
- WinSet, Style, -0xC00000, WGT Golf
- return
- ^w::
- WinActivate, WGT Golf ahk_class UnityWndClass
- gosub, GetCurrentScreenSize
- WinSet, Style, +0xC00000, WGT Golf
- WinMove, WGT Golf, , (sizeright-sizeleft)/4+sizeleft, (sizebottom-sizetop)/4+sizetop, (sizeright-sizeleft)/2, (sizebottom-sizetop)/2
- return
- GetCurrentScreenSize:
- SysGet, size, MonitorWorkArea
- return
- #IfWinActive
- ^x::
- ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement