I wasn't sure whether or not to start a new thread for this, if the 'Powers that be' think I should perhaps someone would be kind enough to move it to wherever is appropriate.
Since my last post on transparency I have been looking into the AHK script that I found and discovered several others that are similar, after trying various things by making some very minor modifications to make it easier for me to use I have got as far as this:
; changing window transparencies
^WheelUp:: ; Increments transparency up by 3.125% (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
^WheelDown:: ; Increments transparency down by 3.125% (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
^g:: ; Press Ctrl+G to show the current settings of the window under the mouse.
MouseGetPos,,, MouseWin
WinGet, Transparent, Transparent, ahk_id %MouseWin%
ToolTip Translucency:`t%Transparent%`n
Sleep 2500
ToolTip
return
In spite of spending several hours looking for answers, mainly on the AHK website, I still have unanswered questions:
1) All the scripts and information that I have looked at show transparency settings in values between 0 & 255, what I was looking for is a way to set it by percentage. Is that possible?
I know that skwire did this with Frameless but I cannot find where I put the source code to see how he did it.
What I had in mind was using hotkeys, say Alt + 1 - 9 for each 10% and using Alt + 0 as reset/off.
2) If 1 is possible is there a way to add the transparency settings to a window's context menu?
3) Is there a way that ALL transparency settings can be reset to opaque if you exit the script or reboot?