Official release thread for WindowCast core

hmmm …than i have mo clue cuz a friend of mine also get it to work the way i wrote yesterday :thinking:

On a side note, as of the latest Windows update (2 nights ago, I think), the “disable rounded corners” doesn’t seem to work anymore. It was working fine for me previously. The reason I mention this is that the readme file with Windowcast suggests that Windows 11 users remove the rounded corners to avoid graphics problems.

edit As a disclaimer, I understand that the “rounded corners” tools is not made by the Windowcast creator… I just thought it was relevant news.

edit I apologize… it seems like it does partially/mostly work. Some elements, like my system tray kept the rounded corners, but most windows appear to have been fixed, which should be the important thing. Sorry about that.

Yeah, there’s also this oberrich/win11-toggle-rounded-corners: A simple utility to disable window rounded corners on Windows 11 (github.com), which isn’t permanent, but it seems to work, and it seems to work in much nicer way than the other solution does (without killing dwm.exe and patching a bunch of system files).

5 Likes

Thanks for the tip. Oddly, that one doesn’t change some of the corners that used to be square-able previously. Microsoft must have changed something. But the good thing is that the main windows do get square corners.

Can anyone tell me what a .bat file command would look like to launch retroarch with the core and content? I would like to try this without Launchbox and see if it will work for me. Thanks.

1 Like

I haven’t messed with this much since it was first released so I’m not sure I have the latest version.

Here is a batch file. Name it whatever you want.

@echo off
D:
cd "D:\Games\Quake\" 
start glquake.cmd
E:
cd "E:\RetroArch\"
start wincast.cmd

exit

You need to use the “start” command or it will not execute the second command until the first process closes.

You also cannot use command line switches with the start command so you need to start other batch files.

My wincast.cmd looks like this…

retroarch_4K.exe -L ".\cores\wgc_libretro.dll" ".\system\partials-example.txt"

The glquake.cmd looks like this…

glquake.exe -window

You will need to use whatever command (If any.) to run the game in a window. If none you could start the executable directly instead of with a batch file.

Maybe someone else has a better method.

3 Likes

Thanks, Duimon… what I’m going to try is to map a bat or cmd to a keyboard macro (razer software) first… that way I can launch the game with Launchbox, normally… then it would just be a key tap to start it… hoping that if LB isn’t involved in the process it won’t freeze on the taskbar when I launch WindowCast.

i postet once a batch laucher core for retroarch somone made…hmmm if you could use these files in the end like roms with this :thinking:

1 Like

Another question for you guys… if I can get this running consistently (assuming not using LaunchBox) how do I set shaders per game if RetroArch is calling each game "partial examples.txt? For instance, if I want to save one game with a horizontal shader and another with vertical, how would I get these to save as different games?

1 Like

I haven’t tested it but I don’t think it needs to be called “partial examples.txt” core info just says TXT file.

So have a text file named after your game and save a game preset. (Or use a $GAME$ wildcard.)

Since the shader can’t be loaded automatically (RA has no way of detecting the game running etc.) it is kind of irrelevant. Just use the --set-shader=PATH command line.

1 Like

Yeah, the .txt can be renamed. I hadn’t thought of using the wildcard… that would be a perfect use for it if I can get that working. Thanks.

1 Like

I guess if you have to pass the txt file as an argument on the command line anyway, a game preset would shorten the command line a bit. Good Luck!

Don’t work too hard. You would still need a params file for each game. Unless the $VIEW-ASPECT-ORIENT$ parameter would work, game presets would be just as easy. :wink:

1 Like

Oh I see… I’m going to have a make a file for each game regardless.

1 Like

Like I said, if the $VIEW-ASPECT-ORIENT$ parameter would work, you could have only two params files.

  • VIEW-ASPECT-ORIENT-HORZ.params

and

  • VIEW-ASPECT-ORIENT-VERT.params

You would use a core preset instead of a game preset. :grin:

1 Like

Yeah… I used those as examples, but then I run into other changes, like widescreen for Windows stuff… I like to use your Apple 128 preset for Mini vMac, which are all things I would like to run with WindowCast… so the problem of having so many .txt files goes back to the problem I’m having running things from a command line where my WindowCast core just freezes up on the taskbar… so I’m still working on that.

1 Like

CTRL-ALT-T , pressing it has no effect. What window does this activate on? Tried both on the emulator and the game window, but it didn’t work.

Ctrl+Alt+T changes the focus between Retroarch and the captured window.

2 Likes

Thank you for this. I’m very interested in how it would look on various Steam games from the early 2000s.

2 Likes

I may have found a smarter way. However, since this uses LB ahk, it may not work well depending on the environment, but as an LB user, I think it will be a hint and share this.
This is an example for PCSX2.

Start script for LB from here.

Loop
{
if WinActive(“ahk_exe pcsx2-qtx64-avx2.exe”)
{
Sleep, 2000
Run, C:\Users\Mia\LaunchBox\Emulators\RetroArch\retroarch.exe -L “C:\Users\Mia\LaunchBox\Emulators\RetroArch\cores\wgc_libretro.dll” “E:\Sony PlayStation 2 WGC\SD.txt”
Sleep, 2000
Send !{Tab}
Break
}
Else
{
Sleep, 1000
}
}
Return

That’s it for the script.

Above are my settings. The CLI command passed to RA needs to rewrite the path according to the environment.

About the sleep item.

  1. First value = In my environment, PCSX2 started up and RA was able to start stably without crashing for 2 seconds. So 2000.

  2. Second value = The time from when PCSX2 was detected to when RA, which was started in the background of PCSX2, succeeded in hooking was 2 seconds in my case. So 2000.

This number is in milliseconds. You have to change this second according to the environment. I’m using a CRT-Royal, so if it’s a CRT-Royal, I think this number is probably fine. However, if RA crashes or RA fails to hook PCSX2, your may need to increase this millisecond value.


Finally, the merit of this is that all PS2 in LB can be started with PCSX2 + WindowsCast. No need to add the application every time.

Send !{F4}

I think maybe I should mention this. With this, you can end PCSX2 and RA at the same time without any inconvenience on BIGBOX.

ps

The LB start-up time relationship should also be noted. In the above example I set the LB startup time to 5 seconds.

After investigating, if the startup screen is invalid or 0 seconds to 3 seconds, the hook from RA to PCSX2 will fail. I think I need to extend the time of the startup screen or extend the sleep item by that amount.

Somehow the combination of the current Windows 11 build and the current LB no longer works.

7 Likes

Thanks for this although I can’t immediately understand all of it. I’m wondering now if the WindowCast Core could have some of these delays integrated if that might improve compatibility/stability.

3 Likes