Borderless Window Mode <3
Aezay
Join Date: 2003-04-19 Member: 15660Members
<b>Description:</b>
Being a huge fan of borderless window mode, it's of course one of those features I really miss in NS2.
I decided to do something about the lack of this feature, so I created a small script (in a personal script editor),
but since I wanted to share this feature, I compiled a small program to do this instead.
<b>Download:</b>
<a href="http://aezay.dk/ns2/ns2noborder_11.05.19.rar" target="_blank">http://aezay.dk/ns2/ns2noborder_11.05.19.rar</a>
<b>Instructions:</b>
- Start Natural Selection 2 up.
- Make sure it's running in window mode.
- Execute the "ns2noborder.exe" file.
- Optional: Create a shortcut for this file, to allow a keyboard shortcut.
<b>Pros vs Cons:</b>
<!--coloro:#006400--><span style="color:#006400"><!--/coloro-->[+] Easy Alt+Tabbing to quickly do other stuff while waiting to respawn.<!--colorc--></span><!--/colorc-->
<!--coloro:#006400--><span style="color:#006400"><!--/coloro-->[+] Less risk of crashing when Alt+Tabbing.<!--colorc--></span><!--/colorc-->
<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->[-] Window mode has a slight performance hit.<!--colorc--></span><!--/colorc-->
<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->[-] Window mode does not support vsync.<!--colorc--></span><!--/colorc-->
<b>Issues:</b>
Please let me know of any issues.
<b>Source Code:</b>
Here is the code if anyone is interested.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->wnd := FindWindow(nil,'Natural Selection 2');
if (wnd <> 0) then
begin
x := GetSystemMetrics(SM_CXSCREEN);
y := GetSystemMetrics(SM_CYSCREEN);
SetWindowLong(wnd,GWL_STYLE,WS_VISIBLE or WS_CLIPSIBLINGS);
SetWindowPos(wnd,0,0,0,x,y,SWP_NOZORDER);
end<!--c2--></div><!--ec2-->
Being a huge fan of borderless window mode, it's of course one of those features I really miss in NS2.
I decided to do something about the lack of this feature, so I created a small script (in a personal script editor),
but since I wanted to share this feature, I compiled a small program to do this instead.
<b>Download:</b>
<a href="http://aezay.dk/ns2/ns2noborder_11.05.19.rar" target="_blank">http://aezay.dk/ns2/ns2noborder_11.05.19.rar</a>
<b>Instructions:</b>
- Start Natural Selection 2 up.
- Make sure it's running in window mode.
- Execute the "ns2noborder.exe" file.
- Optional: Create a shortcut for this file, to allow a keyboard shortcut.
<b>Pros vs Cons:</b>
<!--coloro:#006400--><span style="color:#006400"><!--/coloro-->[+] Easy Alt+Tabbing to quickly do other stuff while waiting to respawn.<!--colorc--></span><!--/colorc-->
<!--coloro:#006400--><span style="color:#006400"><!--/coloro-->[+] Less risk of crashing when Alt+Tabbing.<!--colorc--></span><!--/colorc-->
<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->[-] Window mode has a slight performance hit.<!--colorc--></span><!--/colorc-->
<!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->[-] Window mode does not support vsync.<!--colorc--></span><!--/colorc-->
<b>Issues:</b>
Please let me know of any issues.
<b>Source Code:</b>
Here is the code if anyone is interested.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->wnd := FindWindow(nil,'Natural Selection 2');
if (wnd <> 0) then
begin
x := GetSystemMetrics(SM_CXSCREEN);
y := GetSystemMetrics(SM_CYSCREEN);
SetWindowLong(wnd,GWL_STYLE,WS_VISIBLE or WS_CLIPSIBLINGS);
SetWindowPos(wnd,0,0,0,x,y,SWP_NOZORDER);
end<!--c2--></div><!--ec2-->
Comments
<a href="http://www.grismar.net/shiftwindow/" target="_blank">http://www.grismar.net/shiftwindow/</a>
Sample image of the programm interface: <a href="http://www.grismar.net/shiftwindow/shot.gif" target="_blank">http://www.grismar.net/shiftwindow/shot.gif</a>
Does the same, with more features to play with.
Just Grab the window Title(under the window selection) and press Trigger it.
Only took a few minutes to make this, so didn't spent too much time for nothing.
I'll leave it here in case anyone prefer my version ;)