It is currently December 12th, 2019, 8:29 pm

Medium OBS question

Help with creating, editing & fixing problems with skins
User avatar
Jeff
Posts: 92
Joined: September 3rd, 2018, 11:18 am

Medium OBS question

Jeff » November 30th, 2019, 7:59 pm

Short question: Is there any OBS plugin that can disable these lines of code (or make them return true)? or is there any Rainmeter plugin that can disable a few ExStyles or restrictions Rainmeter uses?

Long Question: Hey peeps, I have a problem that I wanna know if it can be solved at least here
On OBS, there are certain restrictions that disable child windows and a few windows with ExStyle and alike from appearing in the Window Capture section, Rainmeter seems to be one of them (also a few Electron apps also don't show up because of this restriction), a bit understandable, HOWEVER, if it were for this restriction to be removed, you would be able to use Rainmeter windows in OBS and other places.
An actual place that doesn't have this restriction is the Application Window on Discord, on Discord, you are able to choose all the Rainmeter skins you have, which has actually been a really good thing for my use case of this nonexistent restriction. I have a visualizer skin that I always load when I wanna talk and listen to music with my friend and like the genius I am, I just share the Rainmeter window letting the share screen consume my bandwidth.
What's even better is that literally every thing that doesn't have the same restrictions as OBS can capture Rainmeter windows, heck, you can capture the god damn Bitmap Rainmeter produces, which also means that if the restriction on OBS/Rainmeter was removed, the Window would be transparent (after you set that option in OBS' settings however)

Reason Why I would love this to happen: This would open a new use of Rainmeter and would attract even more users to use it, kinda f***** obvious if you think about it

Would love to know if someone has an answer, either a nooby one or professional, I just wanna hear it
Last edited by Jeff on December 4th, 2019, 6:31 pm, edited 1 time in total.
User avatar
Jeff
Posts: 92
Joined: September 3rd, 2018, 11:18 am

Re: Medium OBS question

Jeff » November 30th, 2019, 9:35 pm

Good News!
WinSet, ExStyle, -0x80, ahk_class RainmeterMeterWindow
in AHK works, I can ALTTAB and choose Rainemter skins and choose Rainmeter in OBS as well

Bad News!
Rainmeter always tries to revert back the changes made with AHK (that is, if the Skin has an Update other than -1), and the skins showing in OBS only works on Windows 10 (i think), not on Window 7, so even if you gain one, you lose the other

Now I just need a nerd with a copy of Visual Studio to compile

Code: Select all

static bool check_window_valid(HWND window, enum window_search_mode mode)
    return true;
}
as a plugin and I'm done with this thread
Last edited by Jeff on December 4th, 2019, 6:28 pm, edited 2 times in total.
User avatar
Jeff
Posts: 92
Joined: September 3rd, 2018, 11:18 am

Re: Medium OBS question

Jeff » November 30th, 2019, 9:41 pm

Also while I'm still here, it would be awesome for an options in [Rainmeter] or a bang that disables WS_EX_TOOLWINDOW, it would really REALLY benefit skins like these and make their existence better
User avatar
Mor3bane
Posts: 655
Joined: May 7th, 2016, 7:32 am

Re: Medium OBS question

Mor3bane » December 1st, 2019, 7:21 am

You can download VS on trial and get the components you need to compile - at least for the single use you're aiming for.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself
User avatar
Brian
Developer
Posts: 1932
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Medium OBS question

Brian » December 2nd, 2019, 9:34 am

WS_EX_TOOLWINDOW is essential for Rainmeter to draw correctly. It prevents Windows from creating a taskbar button and appearing in the ALT-TAB window. We won't be adding any way to remove this style.

The OBS problem has come up several times:
https://forum.rainmeter.net/viewtopic.php?t=27305
https://forum.rainmeter.net/viewtopic.php?t=26374

-Brian
User avatar
Jeff
Posts: 92
Joined: September 3rd, 2018, 11:18 am

Final OBS question

Jeff » December 4th, 2019, 6:27 pm

Brian wrote:
December 2nd, 2019, 9:34 am
The OBS problem has come up several times:
https://forum.rainmeter.net/viewtopic.php?t=27305
https://forum.rainmeter.net/viewtopic.php?t=26374
Thanks so much for the inside, now stuff makes more sense.
Brian wrote:
December 2nd, 2019, 9:34 am
WS_EX_TOOLWINDOW is essential for Rainmeter to draw correctly. It prevents Windows from creating a taskbar button and appearing in the ALT-TAB window. We won't be adding any way to remove this style.
That is kind of the idea, I feel like giving utility skins the chance to be alt tabbed would be really great
I'll stick around with my usual

Code: Select all

OnRefreshAction=["#CURRENTPATH#removestyle.ahk" "#CURRENTPATH##CURRENTFILE#"]

for a, b in A_Args {
WinSet, ExStyle, -0x80, %b%
}
for that like an old man til my demise :P