Borderless Window Mode <3

AezayAezay Join Date: 2003-04-19 Member: 15660Members
edited May 2011 in NS2 General Discussion
<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-->

Comments

  • KoruyoKoruyo AUT Join Date: 2009-06-06 Member: 67724Members, Reinforced - Shadow
    edited May 2011
    Or you use shiftwindow, works for every programm.

    <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.
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    As Koruyo said, there's already a program that lets us do this, but +rep for doing this anyways. Now if you could figure out how to do this in the NS2 lua and submit it to UWE, that would really be awesome.
  • AezayAezay Join Date: 2003-04-19 Member: 15660Members
    Now that you mention that program, I actually remember someone posting about it before.

    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 ;)
  • KoruyoKoruyo AUT Join Date: 2009-06-06 Member: 67724Members, Reinforced - Shadow
    I posted it on getsetisfaction a while(few months) ago, maybe also the forums dunno. :)
Sign In or Register to comment.