|
1 | | - if not A_IsAdmin |
2 | | -{ |
3 | | - Run *RunAs "%A_ScriptFullPath%" |
4 | | - ExitApp |
5 | | -} |
| 1 | +#Include %A_ScriptDir%\..\Lib\AHK_Common.ahk |
| 2 | +#Include %A_ScriptDir%\..\Lib\WindowManager.ahk |
| 3 | + |
| 4 | +InitScript(true, true) ; UIA + Admin required |
| 5 | + |
6 | 6 | #NoEnv |
7 | 7 | SetBatchLines -1 |
8 | 8 | SetControlDelay -1 |
9 | | -ListLines Off |
10 | 9 | #SingleInstance Force |
11 | 10 | #persistent |
12 | 11 | #Warn |
13 | | -SetTimer, abcdef, 10 |
14 | 12 |
|
15 | | -abcdef: |
16 | | -{ |
| 13 | +; Ctrl+Alt+K for fullscreen |
17 | 14 | ^!k:: |
18 | | -WinSet, AlwaysOnTop, On, A ; Focus |
19 | | -WinSet, Style, -0xC00000, A ; hide title bar |
20 | | -WinSet, Style, -0x800000, A ; hide thin-line border |
21 | | -WinSet, Style, -0x400000, A ; hide dialog frame |
22 | | -WinSet, Style, -0x40000, A ; hide thickframe/sizebox |
23 | | -WinMove, A, , 0, 0, A_ScreenWidth, A_ScreenHeight |
24 | | -return |
25 | | -} |
26 | 15 | { |
27 | | -^!l:: |
28 | | -WinSet, AlwaysOnTop, Off, A ; Focus |
29 | | -WinSet, Style, +0xC00000, A ; show title bar |
30 | | -WinSet, Style, +0x800000, A ; show thin-line border |
31 | | -WinSet, Style, +0x400000, A ; show dialog frame |
32 | | -WinSet, Style, +0x40000, A ; show thickframe/sizebox |
33 | | -WinMove, A, , 0, 0, 1280, 720 |
| 16 | + WinSet, AlwaysOnTop, On, A |
| 17 | + SetWindowBorderless("A") |
| 18 | + WinMove, A, , 0, 0, A_ScreenWidth, A_ScreenHeight |
| 19 | +} |
34 | 20 | return |
| 21 | + |
| 22 | +; Ctrl+Alt+L to restore window |
| 23 | +^!l:: |
| 24 | +{ |
| 25 | + WinSet, AlwaysOnTop, Off, A |
| 26 | + WinSet, Style, +0xC00000, A ; show title bar |
| 27 | + WinSet, Style, +0x800000, A ; show thin-line border |
| 28 | + WinSet, Style, +0x400000, A ; show dialog frame |
| 29 | + WinSet, Style, +0x40000, A ; show thickframe/sizebox |
| 30 | + WinMove, A, , 0, 0, 1280, 720 |
35 | 31 | } |
| 32 | +return |
0 commit comments