Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hey guys, I'm new to code project but I couldn't find anything on here. so here it is. I would like to create an application for making a windowed screen borderless and fullscreen. I like playing in windowed mode for easy alt tabbing etc. So I would like to find out what I can learn to achieve this.

The reason I would like to know is because I know it is possible:
this is the code to do it for black ops in AHK, But I don't want to do it in AHK, I want to do it in my own application with my own UI and do some learning on the way.

HTML
width = 1680
height = 1010

ifexist %A_AppData%\BlackOps Windowed Borderless Mode\settings.ini
{
IniRead, width, %A_AppData%\BlackOps Windowed Borderless Mode\settings.ini,Settings,Width
IniRead, height, %A_AppData%\BlackOps Windowed Borderless Mode\settings.ini,Settings,Height
}

Start:
gui +alwaysontop
gui font, s10
gui add, text, section x15 y15, Width:
gui add, edit, ys-2 w50 vWIDTH, %width%
gui add, text, x+20 ys, Height:
gui add, edit, ys-2 w50 vHEIGHT, %height%
gui font, s12
gui add, button, xs y+15 h30 default, Set BlackOps to Borderless
gui font, s7
gui add, checkbox, y+15 vSave Checked, Save settings
gui font, s7 cGray
gui add, text,, writes to an ini file to:`n%A_AppData%\BlackOps Windowed Borderless Mode\
gui show, ,BlackOps Borderless Windowed Tool by piXelman, modified by Scarystuff
Return

ButtonSetBlackOpstoBorderless:
Gui Submit
Gui Destroy

if (width = "" or height = "") {
msgbox 48, BlackOps Borderless Windowed Mode, Width/Height must not be blank!
Goto Start
}

if (save = 1) {
ifnotexist %A_AppData%\BlackOps Windowed Borderless Mode
FileCreateDir %A_AppData%\BlackOps Windowed Borderless Mode

IniWrite, %width%, %A_AppData%\BlackOps Windowed Borderless Mode\settings.ini,Settings,Width
IniWrite, %height%, %A_AppData%\BlackOps Windowed Borderless Mode\settings.ini,Settings,Height
}


IfWinExist Call of Duty®: BlackOps ; find BlackOps if it is running
{
WinActivate Call of Duty®: BlackOps ;activate the window
WinMove,Call of Duty®: BlackOps,,0,0,1680,1010 ; resize it to 1600x1024 (modify to match resolution set in BlackOps config)
WinSet Style, -0x800000 ;fix border
WinSet Style, -0xC00000 ;noborder
ExitApp
} else {
MsgBox 5,BlackOps Borderless Windowed Mode, Call of Duty®: BlackOps is not running! Start it up and hit Retry
IfMsgBox Retry
Goto Start
ExitApp
} 


That includes a GUI and stuff.

But yeah, IDK if that code helps with anything but.

Main point:: Does anyone know how to make an application (like black ops) go to fullscreen borderless, when in windowed. using c# pref. but vb or c++ are fine (I know sh*t all c++ though)

Cheers for any help!! :D
Posted

1 solution

 
Share this answer
 
Comments
Zafarbek Ibrohimov 31-Oct-12 0:13am    
Thanks Frederico, I will have a read, But I think that may be different than changing another application that Is not created by me ;D but thanks for the input
Frederico Barbosa 31-Oct-12 5:22am    
The first one is exactly what you are looking for (copy/paste is all you need).
Zafarbek Ibrohimov 2-Nov-12 7:29am    
But how would I make it for another app say iw5mp.exe ??
Frederico Barbosa 5-Nov-12 8:00am    
Never felt the need to do it... but there's an entry about it in superuser.com:

http://superuser.com/questions/38687/windows-program-to-remove-titlebar-frame-etc-from-a-window
Zafarbek Ibrohimov 6-Nov-12 5:32am    
For games like BLOPS where there is no support for windowed borderless

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900