I found bits & pieces online for transparency and successfully integrated it into my script...
...but I can't figure out how to properly set a clickthrough toggle...
I can set a window as clickthrough, but then when doing so it then it gets stuck in that state (as I am unable to toggle clickthrough off...)
TRANSPARENCY:
Code: Select all
~RButton & WheelUp::Gosub, _WinTransparentUp
~RButton & WheelDown::Gosub, _WinTransparentDown
_WinTransparentUp:
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
RETURN
_WinTransparentDown:
DetectHiddenWindows, on
WinGet, curtrans, Transparent, A
if ! curtrans
curtrans = 255
newtrans := curtrans - 8
if newtrans > 0
{
WinSet, Transparent, %newtrans%, A
}
return
RETURN
Code: Select all
~RButton & LButton::Gosub, _WinClickThrough
ClickThrough := !ClickThrough
If Clickthrough
WinSet, ExStyle, +0x20, A
Else
WinSet, ExStyle, -0x20, A
Return
ALWAYS ON TOP
Code: Select all
~RButton & XButton1::WINSET, AlwaysOnTop, , A ;