Borderless window gaming - but with correct mouse coordinates?

boxleitnerb

Platinum Member
Nov 1, 2011
2,605
6
81
Hi guys,

I've been trying to run some games in borderless windowed mode. There are several tools out there that can do that, unfortunately the vertical mouse coordinates are not entirely correct then. Is there a way around that?

Thanks!
 

Ben90

Platinum Member
Jun 14, 2009
2,866
3
0
Sounds like the game engine is confusing "On Screen" coordinates with "Active Window" coordinates. If it is your borderless program that is creating the issues, you could try a few different ones. Otherwise if it is hardcoded into the game engine or you simply have no other options, you could create an AutoHotKey script that realigns the mouse with the correct offsets everytime you move the mouse.

*edit*
After further thinking, I think it would be the most user friendly if it only moved the mouse when you clicked and then quickly moved it back. Unfortunately it would still have issues for things where the mouse passively does things without clicking, although I'm sure someone much smarter than me could figure it out.
 
Last edited:

boxleitnerb

Platinum Member
Nov 1, 2011
2,605
6
81
Civilization 5. I run it in windowed mode and use GameCompanion:
http://pcgamingwiki.com/wiki/Borderless_fullscreen_windowed#GameCompanion

I've tried the last method by Hellstrong as well, still those coordinate issues.

Right now I'm using AutoHotkey and the following script:

F12:: WinGet, WindowID, ID, A WinSet, Style, -0xC40000, ahk_id %WindowID% WinMove, ahk_id %WindowID%, , 0, 0, A_ScreenWidth, A_ScreenHeight return

How would I have to edit that to adjust for the coordinates?
 
Last edited: