Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Set window always on top and change transparency.


  • Please log in to reply
No replies to this topic
Necroforger
  • Members
  • 8 posts
  • Last active: Jun 09 2018 02:54 AM
  • Joined: 14 Aug 2015

An incredibly simple script allowing you to mount another window infront of other programs and change the transparency.

 

default bindings:

 

alt + r : select window *

alt + q : Lower transparency

alt + w : Raise transparency

alt + e : Set window always on top
 

global WindowTitle := "Exolesco - Twitch" ;Default window name
global Transparency := 255


refresh()
{
	ifWinActive, %WindowTitle% 
	{
		Winset, Transparent, %Transparency%, %WindowTitle%
	}
}

!q:: ;Transparency down

	if Transparency > 30
	{
		Transparency := Transparency - 10
	} else {
		Transparency := 30
	}
	refresh()

return

!w:: ;Turn transparency up

	if Transparency < 255 
	{
		Transparency := Transparency + 10
	} else {
		Transparency := 255
	}
	refresh()
return

!e:: ;Set always on top
	ifWinActive, %WindowTitle%
	{
		Winset, AlwaysOnTop, toggle
	}
return

!r:: ;Set window
	WinGetTitle, WindowTitle, A
return

Download:

 

source :     https://www.dropbox....verlay.ahk?dl=0

compiled : https://www.dropbox....verlay.exe?dl=0

 

Screenshots:

 

1qLAB6H.png

 

6HY6bjt.png

 

 

 

Going to update more once I get a better understanding of autohotkey. I personally use this to mount VLC or twitch chat over games.