What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Prevent closing chats?

Prevent closing chats?
Author: Message:
Delphi Thunderbolt
Junior Member
**

Avatar
The insane developer

Posts: 53
Reputation: 1
35 / Male / –
Joined: Sep 2004
RE: Prevent closing chats?
It would be better if you looked for the API message that closes the window (Most likely WM_NCCLOSE) and cancel it out.

That would be your best bet, as nothing would be able to close the window while your script intercepts and terminates this message.

I grabbed this from a Delphi forum, which you could probably use in a DLL and call the function from your script. Take note of the bolded pieces of code.

code:
procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
var
answer : string;
begin
answer := InputBox('Admin password?','password', '');
if answer='yourpassword' then canclose:=true
else
canclose:=false;
end;


Like I said before, it's not going to be easy initially, but it's quite easy to understand and it's well worth the effort.
[Image: thundtacuserbar.gif]

It's my freedom, it's my duty, it's my war.

The day will go dark and quiet as the mighty Thunderbolts announce the end of the world...
09-10-2006 01:41 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Prevent closing chats? - by Jesus on 08-16-2006 at 12:55 PM
RE: Prevent closing chats? - by RaceProUK on 08-16-2006 at 02:09 PM
RE: Prevent closing chats? - by Jesus on 08-16-2006 at 04:17 PM
RE: Prevent closing chats? - by RaceProUK on 08-17-2006 at 08:31 AM
RE: RE: Prevent closing chats? - by Jesus on 08-17-2006 at 08:39 AM
RE: Prevent closing chats? - by CookieRevised on 08-17-2006 at 08:34 AM
RE: Prevent closing chats? - by RaceProUK on 08-17-2006 at 08:46 AM
RE: Prevent closing chats? - by Delphi Thunderbolt on 08-17-2006 at 01:45 PM
RE: Prevent closing chats? - by Jesus on 08-17-2006 at 02:55 PM
RE: Prevent closing chats? - by Delphi Thunderbolt on 08-18-2006 at 05:10 AM
RE: Prevent closing chats? - by Jesus on 08-26-2006 at 12:46 PM
RE: Prevent closing chats? - by Jesus on 09-09-2006 at 03:22 PM
RE: Prevent closing chats? - by Delphi Thunderbolt on 09-10-2006 at 01:41 AM
RE: Prevent closing chats? - by Jesus on 09-10-2006 at 11:01 AM
RE: Prevent closing chats? - by Plik on 09-10-2006 at 11:26 AM
RE: Prevent closing chats? - by Jesus on 09-10-2006 at 11:59 AM
RE: Prevent closing chats? - by xxhannahxx on 09-10-2006 at 12:30 PM
RE: Prevent closing chats? - by CookieRevised on 09-10-2006 at 03:00 PM
RE: Prevent closing chats? - by Delphi Thunderbolt on 09-11-2006 at 10:38 AM
RE: Prevent closing chats? - by Jesus on 09-11-2006 at 05:33 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