IceLancer

bordlerless

May 4th, 2022
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #UseHook On
  2. F11::
  3. WinGet, TempWindowID, ID, A
  4. If (WindowID != TempWindowID)
  5. {
  6. WindowID:=TempWindowID
  7. WindowState:=0
  8. }
  9. If (WindowState != 1)
  10. {
  11. WinGetPos, WinPosX, WinPosY, WindowWidth, WindowHeight, ahk_id %WindowID%
  12. WinSet, Style, -0xC40000, ahk_id %WindowID%
  13. WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight
  14. ;Hide Windows Task Bar and Start Button. (Remove the following two lines if you don't want that behaviour)
  15. ;WinHide ahk_class Shell_TrayWnd
  16. ;WinHide Start ahk_class Button
  17. }
  18. Else
  19. {
  20. WinSet, Style, +0xC40000, ahk_id %WindowID%
  21. WinMove, ahk_id %WindowID%, , WinPosX, WinPosY, WindowWidth, WindowHeight
  22. ;Show the task bar again
  23. ;WinShow ahk_class Shell_TrayWnd
  24. ;WinShow Start ahk_class Button
  25. }
  26. WindowState:=!WindowState
  27. return
Advertisement
Add Comment
Please, Sign In to add comment