![]() |


|
|||||||
| Notices |
| Battlefield 2142 - Technical Support & FAQs Technical Support and FAQs for Battlefield 2142 and related mods. |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
![]() Join Date: Nov 2006
Location: Boulder, CO
Posts: 356
|
Kill BF2142 Script
This was brought up in TS recently because the server crashed and a few people had to hard reboot. I must give all Credit to Lorax for this one, as he was the one that posted it in the 9th forums...
Open notepad or any text editor, copy the line below and paste it into the document. Code:
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery ("SELECT * FROM Win32_Process WHERE Name = 'BF2142.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
In notepad, erase what you have or open a new text document and copy/paste the following lines: Code: c:\windows\system32\cscript.exe "%HOMEPATH%\My Documents\Kill_BF2142.vbs" Save the file in your "My Documents" folder and name it Kill_BF2142.bat Now map a key to launch the Kill_BF2142.bat file and you're all set, just don't hit it by accident.
__________________
![]() |TG-9th|ZWood15
"By Any Means" Last edited by Lorax74; 05-14-2008 at 01:36 PM. |
|
|
|
|
|
#2 (permalink) |
![]() Join Date: Nov 2006
Location: Rockford, IL
Age: 26
Posts: 443
|
Re: Kill BF2142 Script
Great work Lorax, and thanks for posting it for the rest of us ZWood.
![]()
__________________
Tommy Emmanuel = Guitar God <- Click to see!! Dare to be different! Join the Airborne! ![]() * TG Gentleman's Agreement * Become a Supporting Member! * 11th Airborne Tactical Wiki * Support TG's Troops! Nominate for a Ribbon! * ![]() ![]() ![]() |
|
|
|
| Sponsored links | |
|
|
|
|
|
#3 (permalink) |
![]() Join Date: Apr 2007
Location: Newington, CT
Age: 19
Posts: 1,066
|
Re: Kill BF2142 Script
Woo!! That's going to make things a lot easier!
__________________
![]() Ikariam Alpha! Name: Azura Appleville - Taiuos[37:23] Sulfer Potatoville - Lienios[37:24] Marble Bananaville go plunk! *Need Cultural Treaties!* |
|
|
|
|
|
#4 (permalink) |
![]() ![]() ![]() Join Date: Feb 2007
Location: Schenectady NY
Age: 36
Posts: 3,904
|
Re: Kill BF2142 Script
Yay! I asked lorax for this the other week. He mentioned it and I replied, "hook a brutha up!"
He said "huh?" And that was that from grandpa lorax. I am going to map this to a my g11 keyboard function key.
__________________
|
|
|
|
|
|
#5 (permalink) |
|
Join Date: Apr 2007
Location: Virginia, USA
Posts: 271
|
Re: Kill BF2142 Script
its to complicated for me
__________________
GO MANCHESTER UNITED ALL THE WAY! HAIL CRISTIANO RONALDO in game name= TG Shifty.P 2nd in the US with bianchi lmg for most kills 7th in the world with Bianchi LMG for most kills K/D of 31/1 with bianchi LYra=stop aimbotting shifty |
|
|
|
|
|
#6 (permalink) |
![]() ![]() Join Date: Aug 2007
Location: Ireland
Posts: 791
|
Re: Kill BF2142 Script
I'm an idiot how do I set keybind in windows?
__________________
|TG-AIR|Daithi1
![]() * 11th Air Tactical Wiki*Make Somebody Warm and Fuzzy, Ribbon Nomination*Lost? Try TG Mentoring* |
|
|
|
| Sponsored links | |
|
|
|
|
|
#8 (permalink) |
![]() Join Date: Jan 2007
Location: Detroit, MI
Age: 22
Posts: 469
|
Re: Kill BF2142 Script
You can use this program to set up keybinds. You can map it to kill 2142 directly without using Lorax's script.
Once you install it will ask you if you want to create a sample script choose yes. Run the program and a Green H will be in your system tray. Right click on it and choose "edit this script". You can erase everything in there and paste this line into it if Process, Exist, "BF2142.exe" <> 0 end::Process, Close, BF2142.exe return Save the file, then right click on the H again and choose "reload script" This sets it to the end key. Look in the help file for special key commands. Note that this program must be running for the key bind to be active. I'd put it in the startup folder so it starts with Windows. |
|
|
|
|
|
#10 (permalink) |
![]() Join Date: Nov 2006
Location: Boulder, CO
Posts: 356
|
Re: Kill BF2142 Script
Essentially, yes. Its a way of Ctrl+Alt+Del out of the game, go to processes tab, and then force end the battlefield process. Its easier than rebooting
![]()
__________________
![]() |TG-9th|ZWood15
"By Any Means" |
|
|
|
| Sponsored links | |
|
|
|
|
|
#12 (permalink) |
![]() Join Date: Jul 2007
Location: Mountain Home AFB, ID
Posts: 599
|
Re: Kill BF2142 Script
When I try to use it, it brings up the window but it says:
...My Documents\Kill_BF2142.vbs(2, 1) (null): 0x80041021 What, it doesn't like my RAM? EDIT: never mind, there's a typo in the code. Didn't notice that. ationLevel=impersonat e}! That space shouldn't be there.
__________________
|
|
|
|
|
|
#13 (permalink) |
![]() Join Date: Aug 2007
Location: Ireland
Age: 33
Posts: 318
|
Re: Kill BF2142 Script
Does the original post method just kill 2142 or will it end punkbuster a+b too???
I would like to be able to end all 3 processes as sometime my system gets tied up by punkbuster a!
__________________
|
|
|
|
|
|
#14 (permalink) |
![]() ![]() ![]() Join Date: Nov 2006
Location: Bridgewater, NJ
Age: 34
Posts: 4,955
|
Re: Kill BF2142 Script
Wow, not sure how I missed the original post...
This just kills the 2142 process, and quickly too. It can be modified to kill the punkbuster processes as well. I'll post something up when I get home and figure out what those proc names are. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|

