-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlay.ahk
54 lines (53 loc) · 1.37 KB
/
overlay.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
; changing window transparencies control+space
^SPACE:: Winset, Alwaysontop, , A
#WheelUp:: ; Increments transparency up by 3.375% (with wrap-around)
DetectHiddenWindows, on
WinGet, curtrans, Transparent, A
if ! curtrans
curtrans = 255
newtrans := curtrans + 8
if newtrans > 0
{
WinSet, Transparent, %newtrans%, A
}
else
{
WinSet, Transparent, OFF, A
WinSet, Transparent, 255, A
}
return
; non clickable /clicakble
; alt x non clicakble
!x::
WinGet, currentWindow, ID, A
WinSet, ExStyle, +0x80020, ahk_id %currentWindow%
return
;get back
!z::
MouseGetPos,,, MouseWin ; Gets the unique ID of the window under the mouse
WinSet, ExStyle, -0x80020, ahk_id %currentWindow%
Return
; !c: : <del space
;MouseGetPos,,, MouseWin
;WinSet, Region, 50-0 W200 H250, ahk_id %MouseWin%
;Return
#WheelDown:: ; Increments transparency down by 3.375% (with wrap-around)
DetectHiddenWindows, on
WinGet, curtrans, Transparent, A
if ! curtrans
curtrans = 255
newtrans := curtrans - 8
if newtrans > 0
{
WinSet, Transparent, %newtrans%, A
}
;else
;{
; WinSet, Transparent, 255, A
; WinSet, Transparent, OFF, A
;}
return
#o:: ; Reset Transparency Settings
WinSet, Transparent, 255, A
WinSet, Transparent, OFF, A
return