Page 1 of 1

Windowed mode

Posted: Sun Feb 03, 2019 8:24 pm
by JeremyaFr
Hello,
Here is a hook to enable windowed mode.

xwa_hook_windowed.zip

Re: Windowed mode

Posted: Sun Feb 03, 2019 9:09 pm
by Darksaber
Hmm.. interesting

Re: Windowed mode

Posted: Mon Feb 04, 2019 8:52 pm
by JeremyaFr
UPDATE

I've added a config file.

To set the window position and size, modify "hook_windowed.cfg":
X = left value
Y = top value
Width = width value
Height = height value
The minimum value for "Width" is 640.
The minimum value for height is 480.

When "Width" or "Height" is 0, default values are used: the window will be fullscreen.

Re: Windowed mode

Posted: Mon Feb 04, 2019 9:12 pm
by Darksaber
That's great, thanks :)

Re: Windowed mode

Posted: Sat Feb 09, 2019 7:40 pm
by JeremyaFr
UPDATE

I've updated the hook.
I've fixed the cursor position in windowed mode.

Re: Windowed mode

Posted: Sun Feb 10, 2019 4:53 pm
by JeremyaFr
UPDATE

I've uploaded this hook to GitHub and OneDrive.

Re: Windowed mode

Posted: Mon Feb 25, 2019 9:53 pm
by Darksaber
Jeremy I just noticed the the cursor hand, goes off and disappears on the right hand of the screen, this is in full screen mode

No settings in the Hook_Windowed.cfg are changed

X = 0
Y = 0
Width = 0
Height = 0

Thanks

Re: Windowed mode

Posted: Tue Feb 26, 2019 12:28 pm
by JeremyaFr
Hello,
I've fixed the cursor.

Please redownload xwa_hook_windowed.zip

Re: Windowed mode

Posted: Tue Feb 26, 2019 1:35 pm
by Darksaber
Cheers mate :)

Re: Windowed mode

Posted: Sat Dec 26, 2020 1:54 pm
by JeremyaFr
UPDATE

Hello,
I've updated the windowed hook and the main hook (DInput.dll).

I've fixed the mouse move in the hangar when using High DPI Desktop. This is done by calling the SetProcessDPIAware function.

Re: Windowed mode

Posted: Mon Apr 26, 2021 6:36 pm
by JeremyaFr
UPDATE

Hello,
I've updated the windowed hook.

I've fxed a possible crash.

Re: Windowed mode

Posted: Fri Apr 30, 2021 8:31 pm
by Ace Antilles
JeremyaFr wrote:
Mon Apr 26, 2021 6:36 pm
UPDATE

Hello,
I've updated the windowed hook.

I've fxed a possible crash.
I do a lot of Alt and tabbing. Since this updated hook I don't "think" i've crashed out. So that's good :)

Re: Windowed mode

Posted: Mon May 16, 2022 12:56 pm
by danrevella
Hi there!!
As soon as I go to mission the game come back to full screen

Re: Windowed mode

Posted: Sun May 22, 2022 11:22 am
by JeremyaFr
danrevella wrote:
Mon May 16, 2022 12:56 pm
As soon as I go to mission the game come back to full screen
Hello,
I can't reproduce the issue.

What are your settings for the "[hook_windowed]" section in the "Hooks.ini" file?

Re: Windowed mode

Posted: Sun May 22, 2022 2:25 pm
by danrevella
here is:

[hook_windowed]
X = 0
Y = 0
Width = 800
Height = 600
f.e. I run the game with Play(skip intro), when I am on the Councorse, it is 800*600 windowed, but as soon i select an option f.e. "Fly simulator", video become FullScreen immediately.

Re: Windowed mode

Posted: Sun May 22, 2022 2:32 pm
by JeremyaFr
Thanks for the infos.
I can now reproduce the issue.
This happens when a custom video is played.

Re: Windowed mode

Posted: Sun May 22, 2022 2:54 pm
by JeremyaFr
WIP

Hello,
You can try this WIP TgSmush.dll:

TgSmush_WIP_2205221652.zip

Re: Windowed mode

Posted: Sun May 22, 2022 4:36 pm
by danrevella
It does work 100% for me!!!!!!
THANKS!!!!!!!!!!!!
BTW I have preserved the original files......

Re: Windowed mode

Posted: Sat Mar 16, 2024 1:02 pm
by JeremyaFr
UPDATE

Hello,
I've updated the windowed hook.

Thanks to NanoByte011, there is now a Titlebar setting to show a titlebar in windowed mode.

The Titlebar setting will create the window with a Titlebar to allow for drag, minimize, maximize, and restore window functionality.
Currently experimental and finicky. If window loses focus you can gain control of the titlebar controls again by right clicking on the titlebar to bring up the system menu.
If Window is minimized you will have to click twice on the taskbar icon for xwa to restore the window.
If in fullscreen, this setting has no effect.