Home| What is Steam| Community| News| Cyber Cafés| Forums| Support| Stats

Go Back   Steam Users' Forums > Steam Game Discussions > # - C > Counter-Strike: Source
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-24-2009, 11:44 AM   #1
Hosain H
 
Join Date: Dec 2008
Reputation: 19
Posts: 405
-noborder for Counter strike source

Does anyone here have it working? How did you get it working?

It's not working for me :<
Hosain H is offline   Reply With Quote
Old 03-24-2009, 12:12 PM   #2
Smarties^
 
Join Date: Mar 2007
Reputation: 0
Posts: 285
I think it only works for orangebox games.
Smarties^ is offline   Reply With Quote
Old 03-26-2009, 03:09 PM   #3
Hosain H
 
Join Date: Dec 2008
Reputation: 19
Posts: 405
So no fix?
Hosain H is offline   Reply With Quote
Old 03-26-2009, 03:14 PM   #4
Salith
 
Join Date: Aug 2007
Reputation: 64
Posts: 893
Not unless they bother to upgrade the engine, which is another thread altogether.
Salith is offline   Reply With Quote
Old 08-11-2009, 06:41 PM   #5
syserr0r
 
Join Date: Aug 2009
Reputation: 1
Posts: 3
Exclamation -noborder fix for non-orangebox games

Old thread I know, but will hopefully be useful to some people (like me with dual-monitors)


Home Made Version: (any screen resolution - you made it yourself so you know its safe/no virus in it)

1. Install AutoHotKeys from http://www.autohotkey.com/
2. Create a new hotkey script with the following in it:
Code:
Loop
{
	WinWait, ahk_class Valve001
	IfWinExist
	{
		WinSet, Style, -0xC00000 ; remove the titlebar and border(s)
		WinMove, , , 0, 0, 1280, 1024 ; move the window to 0,0 and reize it to 1280x1024
	}	
	Sleep 1000 ; 1 Second
}
return
3. [OPTIONAL] Replace the 1280 and 1024 values in with your screen height/width (e.g. 1024,768 800,600 etc.)
4. [OPTIONAL] Right click the .ahk file you make and click "compile" to turn it into an exe for ease of use
5. Run your exe/ahk file

~ OR ~

Download ready-made version: (Dont have to install autohotkeys, you trust me, you only want 1280x1024)
www.syserror.co.uk/HLwin.exe - This version is *ONLY* for 1280x1024

End Result:
+ You will have a green icon with an 'H' in it on your taskbar
+ You can right click this icon to close it.
+ This script will "-noborder" all hl1/h2 games and mods!
+ This script does not make any permanent changes to the game.
+ Simply close the script and restart your game and it will be back to normal!
+ This is not a cheat and will never be detected as a cheat or get you banned.
+ Your hl1/hl2 games need to be run in windowed mode at the screen resolution that you put in this .ahk script! (1280x1024 in my case).


Tested & Works On:
Counter-Strike: Source
Natural-Selection
Team-Fortress 2
Left4Dead
Day of Defeat: Source
The Ship (Yes I bought it, go figure)
Portal
Half-Life: Source
Okay.. I can't be arsed to test the rest of my hl1/hl2 games - it works mkay?

Tested & Ignores (correctly):
Crysis (Steam Version)
Elf Bowling: Hawaiian Vacation (Steam Version - Don't ask...)
Call of Duty 4: Modern Warfare
Okay.. I can't be arsed to test the rest of my non-hl1/hl2 games - it doesn't break them, mkay?


Bugs:
~ If the game/mod is not running at the same resolution as this script you may get weird resizing/UI issues.
~ If you run the game on a secondary monitor it will get moved back to 0,0 after a second. (Alter the coordinates of WinMove 0,0 if you are feeling brave)

Last minute thought: This may try to do resizing on SDK tools/Hammer Editor - Just close the script if this is the case


Advanced notes:

- It runs all the time, although it doesn't need to. It doesn't do much however (as you can see) - it uses no CPU.
- It is constantly checking for a hl1/hl2 game, if it finds one it just removes its border/titlebar, resizes it to the correct resolution since it is a smaller window (no titlebar/borders) and sticks it in the absolute top left of the screen (0,0). This is basically what -noborder does. If it doesn't find a hl1/hl2 game it skips this. It then sleeps for a second (so that its not checking every processor cycle, no need), rinse repeat.
- From what I can tell all hl1/hl2 based games have a window class name of "Valve001" so this should pick up all hl1/hl2 games including mods.
syserr0r is offline   Reply With Quote
Old 08-11-2009, 07:30 PM   #6
syserr0r
 
Join Date: Aug 2009
Reputation: 1
Posts: 3
Update 12/08/2009 3:30 AM (Colds ftl)

Todo:
+ Guess the correct screen resolution from the nearest neighbour
+ Accept screen resolution arguments from the command line to allow for a generic exe/ahk
+ Implement a GUI for settings the screen resolution (?)
+ Save settings to file (.ini?)
syserr0r is offline   Reply With Quote
Old 10-25-2009, 05:13 AM   #7
unconnected
 
Join Date: Aug 2009
Reputation: 0
Posts: 3
Thanks Syserror, works like a charm! Now i have it running at all times because starting it everytime im playing is something i forget.. Do you think that it does any hog at all?


Cheers
unconnected is offline   Reply With Quote
Old 10-25-2009, 06:52 AM   #8
syserr0r
 
Join Date: Aug 2009
Reputation: 1
Posts: 3
I've got 2, 1 for CoD4 and the above one, running at all times and from what I can tell it doesn't have any CPU usage (which is why I run them all the time, like you I can't be bothered to keep starting them)

On a side note, this is the Call of Duty:Modern Warare (CoD4) version:

Code:
Loop
{
	WinWait, ahk_class CoD4
	IfWinExist
	{
		WinSet, Style, -0xC00000 ; remove the titlebar and border(s)
		WinMove, , , 0, 0, 1280, 1024 ; move the window to 0,0 and reize it to 1280x1024
	}	
	Sleep 1000 ; 1 Second
}
return
Again where 1280 and 1024 is the screen resolution.

There is 1 extra thing to get it working with CoD4 however, since there is no option to change between windowed and full-screen mode you have to enter a couple of console commands.

Enter the following commands (one per line, press enter after each one) into the CoD4 console to set it to windowed mode (to work in this "borderless" mode):

Code:
/r_fullscreen 0
/vid_restart
If you wish to go back to fullscreen then simply:

Code:
/r_fullscreen 1
/vid_restart
Hope this is useful to someone
syserr0r is offline   Reply With Quote
Old 10-25-2009, 12:55 PM   #9
unconnected
 
Join Date: Aug 2009
Reputation: 0
Posts: 3
Yeah i made a COD4 my self :P WindowSpy helped..

Thanks bud
unconnected is offline   Reply With Quote
Old 10-30-2009, 10:36 AM   #10
Fireye
 
Join Date: Sep 2007
Reputation: 0
Posts: 41
Awesome post dude, my poor dual-monitor self has been looking for just this kind of solution!
Fireye is offline   Reply With Quote
Old 11-03-2009, 02:48 PM   #11
Gentle
 
Join Date: Aug 2004
Reputation: 1
Posts: 4,275
Can someone post a description of what "-noborder" does and also post links to screenshots showing what the "before" and "after" looks like with this program?

Gentle
Gentle is offline   Reply With Quote
Old 11-03-2009, 03:29 PM   #12
PLAY_MAKER
 
Join Date: May 2006
Reputation: 2
Posts: 361
Nice little program this should help out a great deal for people with dual monitors.
PLAY_MAKER is offline   Reply With Quote
Old 11-16-2009, 04:52 AM   #13
Soberwarlock
 
Join Date: Mar 2006
Reputation: 0
Posts: 144
Quote:
Originally Posted by syserr0r View Post
1. Install AutoHotKeys from http://www.autohotkey.com/
2. Create a new hotkey script with the following in it:
Code:
Loop
{
	WinWait, ahk_class Valve001
	IfWinExist
	{
		WinSet, Style, -0xC00000 ; remove the titlebar and border(s)
		WinMove, , , 0, 0, 1280, 1024 ; move the window to 0,0 and reize it to 1280x1024
	}	
	Sleep 1000 ; 1 Second
}
return
3. [OPTIONAL] Replace the 1280 and 1024 values in with your screen height/width (e.g. 1024,768 800,600 etc.)
4. [OPTIONAL] Right click the .ahk file you make and click "compile" to turn it into an exe for ease of use
5. Run your exe/ahk file
[/size]
Cool man that helped. Is there a way I can use scripts for non-steam games like GTA4, Crysis (DVD), Starcraft
Soberwarlock is offline   Reply With Quote
Old 11-16-2009, 09:59 AM   #14
Fireye
 
Join Date: Sep 2007
Reputation: 0
Posts: 41
Quote:
Originally Posted by Gentle View Post
Can someone post a description of what "-noborder" does and also post links to screenshots showing what the "before" and "after" looks like with this program?

Gentle
NoBorder on newer Source games (TF2, L4D, Portal, etc) gives you windowed fullscreen. In effect, if you have two monitors, you can go between a web browser and the game easily.

If you run fullscreen, when you try to go outside of the game, it will minimize the game, which takes time.
Fireye is offline   Reply With Quote
Old 11-17-2009, 08:31 AM   #15
KiloSwiss
 
Join Date: Mar 2009
Reputation: 0
Posts: 5
Hello I took Your idea and made these Scripts for the following most used Resolutions.

800x600
1024x768
1152x864
1280x960
1280x1024
1440x900
1600x900
1680x1050
1920x1200

You can Download them all together packed in a little Zip-file from my Webspace: http://www.kiloswiss.ch/downloads/CSS_Noborder.zip (1.92MB)

btw.
It would be nice if someone could make a Readme on English, because My English isn't very good
I will then put it also in the Zip-file and reupload it on my Webspace.

I can also add some more Resolutions if You People like, just tell me which resolutions You also use often on Your Computers.

Have Fun
Greez KiloSwiss

|edit|
added 1920x1200.exe to the Zip-file

Last edited by KiloSwiss : 11-19-2009 at 11:20 AM.
KiloSwiss is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


All times are GMT -8. The time now is 04:25 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site Content Copyright Valve Corporation 1998-2009, All Rights Reserved.