Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Trying to code a termination program.
New Posts  All Forums:Forum Nav:

Trying to code a termination program.

post #1 of 2
Thread Starter 
I have been experiencing problems with my CS:S game. Some servers cause it to go into an infinite loop (works fine on all other servers). The display when the game goes into infinite loop never goes away. I have to press Ctrl + Alt + Del and try to guess which application is the HL2 one and terminate it. It normally never works and I end up having to restart my computer.

Is there anyway I could code a program that would terminate the HL2.exe from the task manager through a hot key.

I could make it so that Ctrl + Alt + Insert (or something like that) triggered the program which would terminate the HL2.exe program. Can this be done with a simple .bat program?
System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 2500k ASRock P67 Extreme4 Gen 3 AMD 7970 16GB DDR3 
Hard DriveOptical DriveOSMonitor
Intel 520 256GB SATA DVD Burner Windows 7 64 bit Deal U2410 
KeyboardPowerMouse
Adesso Mechanical Silverstone OP650 Logitech G700 
  hide details  
Reply
System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 2500k ASRock P67 Extreme4 Gen 3 AMD 7970 16GB DDR3 
Hard DriveOptical DriveOSMonitor
Intel 520 256GB SATA DVD Burner Windows 7 64 bit Deal U2410 
KeyboardPowerMouse
Adesso Mechanical Silverstone OP650 Logitech G700 
  hide details  
Reply
post #2 of 2
Thread Starter 
Got it

taskkill /f /im hl2.exe
System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 2500k ASRock P67 Extreme4 Gen 3 AMD 7970 16GB DDR3 
Hard DriveOptical DriveOSMonitor
Intel 520 256GB SATA DVD Burner Windows 7 64 bit Deal U2410 
KeyboardPowerMouse
Adesso Mechanical Silverstone OP650 Logitech G700 
  hide details  
Reply
System
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 2500k ASRock P67 Extreme4 Gen 3 AMD 7970 16GB DDR3 
Hard DriveOptical DriveOSMonitor
Intel 520 256GB SATA DVD Burner Windows 7 64 bit Deal U2410 
KeyboardPowerMouse
Adesso Mechanical Silverstone OP650 Logitech G700 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Trying to code a termination program.