Welcome, Guest. Please login or register.
Did you miss your activation email?


Recent news:

March 10, 2010 - Keybreeze is now a 100% free, open source application. The new version includes everything that was previously in the Professional Edition. Update now.


   Home   Help Search Login Register  
 

Pages: [1]
  Print  
Author Topic: End process in macro  (Read 2604 times)
RiX
Power User

Posts: 11


View Profile
« on: March 26, 2008, 01:19:31 PM »

Hello,

I'm trying to make a macro that ends af specific process, that runs in the taskmanager. For example: i want a macro that ends firefox.exe . And not by shutting down firefox on the regular way, but explicit a forced end of process.

How can i do this?

Thnx in advance
Logged
Andrew Langford
Administrator
Power User

Posts: 144


View Profile
« Reply #1 on: March 26, 2008, 02:06:16 PM »

It would be something like the following:

<ctrl d><shift d><escape><shift u><ctrl u><delay 1500>

' that would open the task manager.  if the Processes tab is normally selected by default, then leave it like that.  Otherwise, use <ctrl d><tab><ctrl u> to select it.

Now just type firefox directly into the macro editor.  That will select firefox.exe in the list.  Then use <alt d>e<alt u> to end the task.
Logged
RiX
Power User

Posts: 11


View Profile
« Reply #2 on: March 26, 2008, 02:37:24 PM »

Hi, thnx for the quick reaction!

The first two parts of your solution are working. I can open the task manager and select firefox.exe . Only the way to end the process. By pressing Alt+e doens't work. I'm running Windows XP is that the problem? Is there another way, or am i doing something wrong?

Logged
nharren
Power User

Posts: 23


View Profile
« Reply #3 on: March 26, 2008, 06:19:14 PM »

I'd recommend using a command line program to kill the process. It is more accurate and reliable, especially if you have other processes that start with an "f". You don't want to accidently close a process you didn't mean to close. To do this:

1. Download http://www.beyondlogic.org/solutions/processutil/processutil.htm
2. Extract "process.exe" to your root folder. (i.e. C:\)
3. Create a macro with
Code:
<inputbox Please enter the process name:,var1><keybreeze cmd><delay 200>cd \<enter>process -k <type var1>.exe<enter><delay 200>exit<enter>
4. Save as "kill process" or something, and create the keyword.

Now when you type the keyword in keybreeze, you just type the process name in the box (i.e "firefox"), and it will kill it for you.
Logged
RiX
Power User

Posts: 11


View Profile
« Reply #4 on: March 27, 2008, 08:11:09 AM »

Ok that works perfect...but isn't it possible that in keybreeze fills in the inputbox with 'firefox'?

EDIT: I changed it to:

Code:
<keybreeze cmd><delay 200>cd \<enter>process -k firefox.exe<enter><delay 200>exit<enter>

Works awesome now! Thnx!
« Last Edit: March 27, 2008, 01:46:25 PM by RiX » Logged
nharren
Power User

Posts: 23


View Profile
« Reply #5 on: March 27, 2008, 05:56:35 PM »

Oh, killing a specific process is much easier. The macro you have works, but you can use this one...

Code:
<keybreeze cmd,"c:\process.exe" -k firefox.exe><delay 100>exit<enter>

..which is much faster. I couldn't do it this way in the previous macro.
Logged
RiX
Power User

Posts: 11


View Profile
« Reply #6 on: March 27, 2008, 06:03:36 PM »

Indeed that works much faster! Thnx for the help!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!