Shoutbox

How to close MSN in program? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: How to close MSN in program? (/showthread.php?tid=36158)

How to close MSN in program? by carlz on 12-30-2004 at 12:53 AM

Hello everyone,

Now I build a MSN plug-in program, but I need to exit MSN and enter again when install my program, could anyone tell me how to exit MSN in program?

thanks a lot!


RE: How to close MSN in program? by MC.POP on 12-30-2004 at 01:14 AM

u need to exit out not just close it


RE: How to close MSN in program? by .blade// on 12-30-2004 at 01:19 AM

quote:
Originally posted by musicalmidget
You can do this by right clicking the Messenger icon in the system tray and selecting "Exit". :)

:lol:


I think he means he wants his installer to close MSN while the program installs then re-launch it after (like Plus! does)  :P
RE: How to close MSN in program? by musicalmidget on 12-30-2004 at 01:21 AM

Damn, I've got my wires crossed this time.  I'm going to bed... :p

Post deleted. :lol:


RE: How to close MSN in program? by TheSarlacc on 12-30-2004 at 06:05 AM

I would suggest you have the installation program search for the MSN window, and send it a windows message to shut down. Not that hard to do at all. The fun part is that the WM_CLOSE message doesn't close MSN, but just hides it.

*sigh* life was never meant to be easy!

OR, as a last resort, tell the user to close MSN before the installation continues. |-) not too nice though...


RE: RE: How to close MSN in program? by Ash_ on 12-30-2004 at 08:44 AM

quote:
Originally posted by TheSarlacc
I would suggest you have the installation program search for the MSN window, and send it a windows message to shut down. Not that hard to do at all. The fun part is that the WM_CLOSE message doesn't close MSN, but just hides it.

*sigh* life was never meant to be easy!

OR, as a last resort, tell the user to close MSN before the installation continues. |-) not too nice though...


or he could use the TerminateProcess api call :refuck:

look up on google for how to use it, im not sure but i think you may need to Open the Process first (OpenProcess api)

move the return value into a variable (a long in Visual basic which is probly what your coding in)
then Terminate with the variable you just filled and a "0"
RE: How to close MSN in program? by Mike on 12-30-2004 at 08:50 AM

Actually, if you want to reload the plugins,  you can tell Plus! to do so with 2 api calls :)

Look in the readme.txt that comes with the plugin api documentation (typo? :P)
There is an example for C++.


RE: How to close MSN in program? by carlz on 01-04-2005 at 05:14 AM

Thanks very much! Now I exit and reopen MSN successfully using psapi.dll.