- grab and install from here.
- Then, copy the code and save it as fullscreen.ahk, double click it.
- You can now press CTRL+Z to toggle the active application into full screen mode. (NOTE: the code assume your screen resolution is 1920×1080)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
; Set your resolution w = 1920 h = 1080 ; Window to fullscreen Ctrl & z:: SetTitleMatchMode, 2 WinGet Style, Style, A if(Style & 0xC40000) { WinGetPos, X, Y, Width, Height, A WinSet, Style, -0xC40000, A WinMove,A,,0,0,w,h } else { WinSet, Style, +0xC40000, A WinMove,A,,%X%,%Y%,%Width%,%Height% } return ; |