Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; changing window transparencies
- ^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
- !x::
- WinGet, currentWindow, ID, A
- WinSet, ExStyle, +0x80020, ahk_id %currentWindow%
- return
- !z::
- MouseGetPos,,, MouseWin ; Gets the unique ID of the window under the mouse
- WinSet, ExStyle, -0x80020, ahk_id %currentWindow%
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement