Sunday, January 10, 2010

[TIP] Terminate full-screen games and appls when they stop responding

Actually it is pretty simple and doesn’t require any advance level of computer knowledge.
First you need to know what is the process name used by the game. Let’s take Counter Strike 1.6 as an example. You can check the process name for the game by right clicking the Counter-Strike 1.6 shortcut and select Properties.
Go to the Shortcut tab to view the Target. As you can see, Counter Strike 1.6 process is actually hl.exe.

Now you need to create a batch file that will kill the hl.exe process when you simultaneously hit a combination of shortcut keys. Open notepad, and type the command line shown below.
taskkill /IM hl.exe
Save the text file as anything.bat and not .txt
When you run the anything.bat file, it should be able to close the game.


Now we will assign a shortcut key to run the batch file.
Right click the anything.bat file and select “Create Shortcut”. A new file named “Shortcut to anything.bat” will appear. Right click at “Shortcut to anything.bat” file and select Properties. Click at the Shortcut Key blank area and type any key of your choice. 
If you type the letter “K”, it will automatically assign Ctrl + Alt + K as the shortcut key to run the killcss.bat file.
One very more important rule is that the shortcut must be placed at desktop for it to take effect.
When the game hangs in future, I just need to hit Ctrl + Alt + K key to kill the game so you can restart the game without having to restart your computer.

No comments:

Post a Comment