Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I wrote an AHK script to run a game (Space Empires V) in "fullscreen windowed" mode that does not support that mode, because it runs at a faster FPS in windowed mode for some reason, but I like the fullscreen experience. The way I do this is basically to run the game in windowed mode, but at the resolution of my screen, then use AHK to mask out the title bar. (I tried setting the form border style to just not have a title bar, but that seemed to break the game's rendering code, at least in Windows 7.)

My problem is that my script works just fine in Windows 7 and in the Windows 8 Release Preview, but in the final release of Windows 8, Windows refuses to actually hide the title bar. Does anyone know of a way to work around this issue?

You can download my script here:

http://spaceempires.net/downloads-file-920.html

Thanks!

share|improve this question
1  
Possibly better suited to StackOverflow? –  Karan Nov 1 '12 at 18:58
    
@Karan Hmm... I'm not sure with this one. Possibly. –  Tortoise Nov 6 '12 at 0:07

2 Answers 2

When I want to hide the borders completely I always use this:

WinSet, Style, -0xC40000, A

Or if you want a border around it you could do:

WinSet, Style, -0xC00000, A

Combined with a shortcut works quite nice, for example:

!^f::
WinSet, Style, -0xC40000, A
WinMove, A, , 0, 0, 1680, 1050
return

This way you'd open your game in windowed mode and then press Ctrl+Alt+F to make it fullscreen.

Enjoy ;).

EDIT: Remember to change 1680 and 1050 to your actual resolution which from your script would be 1600x900.

share|improve this answer
    
Thanks, but this just makes the game window completely gray - I guess it breaks DirectX or something! –  ekolis Nov 6 '12 at 12:42
    
That's odd, I've used it with different kind of programs and some old games to accomplish the same you wanted. But it's good to know you got it working anyway. –  Xandy Nov 6 '12 at 13:02
up vote 0 down vote accepted

I realized I didn't even need to remove the title bar in my script! All I needed to do was to move the window so the title bar was offscreen, which I was doing already. So commenting out the line that tries to remove the title bar solved my problem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.