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

KILL AN APP
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: KILL AN APP
quote:
Originally posted by novolo
so,  that function will work as it is in plus script...
The example shown is not tested, but gives you an idea of what would be involved.

Also, the given VB example in that link posted by Matty (which I gave to him among other links) is a nice example but the code contains a few useless things and also lacks the part where you actually try to close the application in a not forcefull way as you should always do that first.

quote:
Originally posted by novolo
now,   in the script documentation,  does it say whats the hWnd and how to know what app has wich hWnd?
No, as that should be common programming knowledge. The Scripting Documentation is meant to give info on the Messenger Plus! objects and stuff, it isn't a general "how do I program" tutorial. A Window handle (hWnd) is unique for each window, an application can have many windows, or even no windows at all. And these window handles are not fixed numbers, they are assigned and removed on the fly and thus change each time.

To know the window handle for a given process name you need a bunch of other code. Note that different processes can have the same name, so you should loop them all. And also, note that a single process/application can contain many windows, and you will never know what window is the main window. So in fact you even need to get all window handles for a given module and process them all (in order to let the application close properly first, before forcing the process to close).

This post was edited on 07-02-2006 at 03:46 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-02-2006 03:37 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
KILL AN APP - by novolo on 06-29-2006 at 02:30 AM
RE: KILL AN APP - by ShawnZ on 06-29-2006 at 02:40 AM
RE: KILL AN APP - by ddunk on 06-29-2006 at 02:45 AM
RE: KILL AN APP - by cooldude_i06 on 06-29-2006 at 04:57 AM
RE: KILL AN APP - by matty on 06-29-2006 at 05:02 AM
RE: KILL AN APP - by ddunk on 06-29-2006 at 05:05 AM
RE: KILL AN APP - by matty on 06-29-2006 at 05:11 AM
RE: KILL AN APP - by ShawnZ on 06-29-2006 at 05:16 AM
RE: KILL AN APP - by CookieRevised on 06-29-2006 at 11:48 AM
RE: KILL AN APP - by novolo on 06-29-2006 at 01:51 PM
RE: KILL AN APP - by matty on 06-29-2006 at 02:21 PM
RE: KILL AN APP - by novolo on 06-30-2006 at 12:13 AM
RE: KILL AN APP - by CookieRevised on 06-30-2006 at 04:45 PM
RE: KILL AN APP - by novolo on 06-30-2006 at 06:02 PM
RE: KILL AN APP - by matty on 06-30-2006 at 06:04 PM
RE: KILL AN APP - by ShawnZ on 06-30-2006 at 06:53 PM
RE: KILL AN APP - by matty on 06-30-2006 at 11:43 PM
RE: KILL AN APP - by novolo on 07-01-2006 at 12:17 AM
RE: KILL AN APP - by dylan! on 07-01-2006 at 12:22 AM
RE: KILL AN APP - by novolo on 07-01-2006 at 01:55 AM
RE: KILL AN APP - by cloudhunter on 07-01-2006 at 02:13 AM
RE: KILL AN APP - by novolo on 07-01-2006 at 02:29 AM
RE: RE: KILL AN APP - by CookieRevised on 07-02-2006 at 03:37 AM
RE: KILL AN APP - by cloudhunter on 07-01-2006 at 02:55 AM
RE: KILL AN APP - by novolo on 07-02-2006 at 05:22 PM
RE: KILL AN APP - by matty on 07-02-2006 at 06:55 PM


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