I want the window that I click when I press the hotkey
became transparent(seethrough), clickthrough, and always on top
the goal is for removing my hassle when streaming on obs because I only have 1 monitor.
the obs has a pop-out able window (dock), that can be used for seen chat, etc because I only have 1 monitor I always find it hard to play and keep alt-tabbing for a few minutes.
even though this can be solved by playing on windowed to see other apps I found this rather annoying.
so I'm thinking that to make a script that can make the obs pop up chat window became transparent(seethrough), clickthrough, and always on top
so by doing that I can play on "fullscreen windowed" and having the obs pop up able (dock) have mentioned properties so I can keep track of my chat, stream activities on 1 screen.
the code was working but
I can't seem able to toggle them back to a normal state (Disabling transparent (seethrough), not click through [so I can type on the window again (replying to the chat, doing moderator command, etc)], and always on top)
every time I toggle the button again the window under the clickthrough one also became invisible which makes me terminate the program and start over.
that's the explanation of what am I trying to achieve.
any help was appreciated
and if this can be working it can also help many people that try to stream with 1 monitor only.
Code: Select all
#SingleInstance, Force
DetectHiddenWindows, on
~!T::
transparentmode:=!transparentmode
if transparentmode
Hotkey, ~!T , ClickThroughOn
else
Hotkey, ~!T , ClickThroughOFF
Return
ClickThroughOn:
MouseGetPos, x, y, A
WinSet, AlwaysOnTop, , A
WinSet, Transparent, 100, A
WinSet, ExStyle, +0x00000020, A
Return
ClickThroughOff:
MouseGetPos, x, y, A
WinSet, AlwaysOnTop, OFF , A
WinSet, Transparent, OFF, A
WinSet, ExStyle, OFF, A
Return