Advertisement
ScottBin

WGT Golf Fullscreen

Oct 27th, 2019
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance force
  2.  
  3.  
  4. Menu, Tray, add, &Fullscreen CTRL + F,  MenuFullscreen
  5. Menu, Tray, Add, &Window CTRL + W, MenuWindow
  6. Menu, Tray, Add, E&xit Script CTRL + X, MenuExit
  7. Menu, Tray, Add
  8. Menu, Tray, Default, &Fullscreen CTRL + F
  9. Menu, Tray, NoStandard
  10. Menu, Tray, Standard
  11. ;Menu, Tray, Icon, expand.ico
  12. return
  13.  
  14. MenuFullscreen:
  15. Send ^f
  16. return
  17. MenuWindow:
  18. Send ^w
  19. return
  20. MenuExit:
  21. Send ^x
  22. return
  23.  
  24. ^f::
  25. WinActivate, WGT Golf ahk_class UnityWndClass
  26. gosub, GetCurrentScreenSize
  27. if (sizetop > 0) sizebottom := sizebottom - sizetop
  28. if (sizeleft > 0) sizeright := sizeright - sizeleft
  29. WinMove, WGT Golf, , sizeleft, sizetop, sizeright, sizebottom
  30. WinSet, Style, -0xC00000, WGT Golf
  31. WinSet, Style, -0xC00000, WGT Golf
  32. return
  33.  
  34. ^w::
  35. WinActivate, WGT Golf ahk_class UnityWndClass
  36. gosub, GetCurrentScreenSize
  37. WinSet, Style, +0xC00000, WGT Golf
  38. WinMove, WGT Golf, , (sizeright-sizeleft)/4+sizeleft, (sizebottom-sizetop)/4+sizetop, (sizeright-sizeleft)/2, (sizebottom-sizetop)/2
  39. return
  40.  
  41. GetCurrentScreenSize:
  42. SysGet, size, MonitorWorkArea
  43. return
  44.  
  45. #IfWinActive
  46.  
  47. ^x::
  48. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement