What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » KILL AN APP

Pages: (3): « First [ 1 ] 2 3 » Last »
KILL AN APP
Author: Message:
novolo
Junior Member
**

Avatar
L2Luna GM

Posts: 67
– / Male / Flag
Joined: May 2006
O.P. KILL AN APP
hi,  i made script to run applications through commands..   now,  i was wondering,  is there a way to kill an external application through sript?
[Image: signature-user=247&back=4&clr=255,255,255&size=80.png][Image: novolo.gif]
06-29-2006 02:30 AM
Profile PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: KILL AN APP
new ActiveXObject("WScript.Shell").Run("taskkill /f /im" + IMAGE_NAME)
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
06-29-2006 02:40 AM
Profile PM Web Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: KILL AN APP
quote:
Originally posted by ShawnZ
new ActiveXObject("WScript.Shell").Run("taskkill /f /im" + IMAGE_NAME)
taskkill isn't in XP Home, silly boy.
06-29-2006 02:45 AM
Profile E-Mail PM Web Find Quote Report
cooldude_i06
Full Member
***

Avatar
I'm so cool I worry myself.

Posts: 272
Reputation: 9
– / Male / –
Joined: Sep 2003
RE: KILL AN APP
you can include taskkill.exe with the script cant you?
[Image: clb2.jpg]
06-29-2006 04:57 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: KILL AN APP
quote:
Originally posted by cooldude_i06
you can include taskkill.exe with the script cant you?
No it wont run on a Windows XP Home installation.
06-29-2006 05:02 AM
Profile E-Mail PM Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: KILL AN APP
quote:
Originally posted by Matty
quote:
Originally posted by cooldude_i06
you can include taskkill.exe with the script cant you?
No it wont run on a Windows XP Home installation.
Actually, it does.
E:\Program Files\mirc\download>taskkill.exe /im editplus.exe
SUCCESS: The process "editplus.exe" with PID 1804 has been terminated.
06-29-2006 05:05 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: KILL AN APP
quote:
Originally posted by Ddunk
quote:
Originally posted by Matty
quote:
Originally posted by cooldude_i06
you can include taskkill.exe with the script cant you?
No it wont run on a Windows XP Home installation.
Actually, it does.
E:\Program Files\mirc\download>taskkill.exe /im editplus.exe
SUCCESS: The process "editplus.exe" with PID 1804 has been terminated.
Hmmm thats the gay cause when I last tried it, it didn't work. Anyways you can do this with the API all you need to know is the handle of the window I will post code for it later.
06-29-2006 05:11 AM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: KILL AN APP
quote:
Originally posted by Matty
Hmmm thats the gay cause when I last tried it, it didn't work.

oh yeah? what error?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
06-29-2006 05:16 AM
Profile PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: KILL AN APP
quote:
Originally posted by ShawnZ
new ActiveXObject("WScript.Shell").Run("taskkill /f /im" + IMAGE_NAME)
crappy method to (and the need to) include an external app to kill a task... Use the Windows APIs instead.
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-29-2006 11:48 AM
Profile PM Find Quote Report
novolo
Junior Member
**

Avatar
L2Luna GM

Posts: 67
– / Male / Flag
Joined: May 2006
O.P. RE: KILL AN APP
could anyone post the script to kill an app with the windows api?
[Image: signature-user=247&back=4&clr=255,255,255&size=80.png][Image: novolo.gif]
06-29-2006 01:51 PM
Profile PM Web Find Quote Report
Pages: (3): « First [ 1 ] 2 3 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On