Fullscreen Maker v1.0.0.0
- Silvan Bauer
- Oct 15, 2022
- 2 min read
Ever wanted to display an application in fullscreen mode but it didn't have one implemented? Well now you can with my Fullscreen Maker!
Why I created the Fullscreen Maker
So I was curious what stuff you can do with the user32.dll and one of the features was to manipulate windows. Thats why I wanted to use it to make an application which starts another application and then makes it fullscreen. Since I already knew how to use the user32.dll in C# applications I was able to use it without much trouble unlike the first time I ever used user32.dll where I got confused since there wasn't a proper documentation on how it should be used in C#.
How the Fullscreen Maker works
So the first thing it does is to startup the application which should be made into fullscreen. Then it modifies the window size, position to display it in the middle and style so that the window has no style and then it takes the window and places it in the opened fullscreen window with black background.
What I'm not so statisfied with
I'm not so statisfied with how eventhough I used Fody.Costura the built .NET 6 WPF application still needs a dll and additional jsons. Because I wanted to make the Fullscreen Maker usable with only one exe but currently I haven't found a way yet to build everything into one exe with .NET 6. If I find a way I will update the Fullscreen Maker.
How to use it
So the Fullscreen Maker comes with a fullscreenMakerSettings.json where you can enter the settings.
executablePath - The relative path of the exe to start
processName - The name of the opened window to display in the Fullscreen Maker
fullscreenWidth - The expected fullscreen width of the window
fullscreenHeight - The expected fullscreen height of the window
Since I thought it might also be a nice feature to just display a window without resizing and a black background for the space the window doesn't cover. I implemented it by not resizing the window when not both the width and height were specified in the json.
Comments