Windowed mode

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderator: JeremyaFr

Post Reply

Windowed mode

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Feb 03, 2019 8:24 pm

Hello,
Here is a hook to enable windowed mode.

xwa_hook_windowed.zip
Last edited by JeremyaFr on Mon Apr 26, 2021 6:35 pm, edited 5 times in total.
Reason: Update link

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sun Feb 03, 2019 9:09 pm

Hmm.. interesting
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Feb 04, 2019 8:52 pm

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.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Mon Feb 04, 2019 9:12 pm

That's great, thanks :)
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Feb 09, 2019 7:40 pm

UPDATE

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

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun Feb 10, 2019 4:53 pm

UPDATE

I've uploaded this hook to GitHub and OneDrive.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Mon Feb 25, 2019 9:53 pm

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
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Tue Feb 26, 2019 12:28 pm

Hello,
I've fixed the cursor.

Please redownload xwa_hook_windowed.zip

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Tue Feb 26, 2019 1:35 pm

Cheers mate :)
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Dec 26, 2020 1:54 pm

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.

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Mon Apr 26, 2021 6:36 pm

UPDATE

Hello,
I've updated the windowed hook.

I've fxed a possible crash.

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 6725
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Fri Apr 30, 2021 8:31 pm

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 :)
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

danrevella
Cadet 3rd Class
Posts: 36
Joined: Fri Nov 27, 2015 1:08 pm

Post by danrevella » Mon May 16, 2022 12:56 pm

Hi there!!
As soon as I go to mission the game come back to full screen

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun May 22, 2022 11:22 am

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?

danrevella
Cadet 3rd Class
Posts: 36
Joined: Fri Nov 27, 2015 1:08 pm

Post by danrevella » Sun May 22, 2022 2:25 pm

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.

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun May 22, 2022 2:32 pm

Thanks for the infos.
I can now reproduce the issue.
This happens when a custom video is played.

User avatar
JeremyaFr
XWAU Member
Posts: 3331
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sun May 22, 2022 2:54 pm

WIP

Hello,
You can try this WIP TgSmush.dll:

TgSmush_WIP_2205221652.zip
You do not have the required permissions to view the files attached to this post.

danrevella
Cadet 3rd Class
Posts: 36
Joined: Fri Nov 27, 2015 1:08 pm

Post by danrevella » Sun May 22, 2022 4:36 pm

It does work 100% for me!!!!!!
THANKS!!!!!!!!!!!!
BTW I have preserved the original files......

Post Reply