What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » WLM Plus! General » Force Plus to load

Force Plus to load
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Force Plus to load
quote:
Originally posted by lopardo
So, my question is how does Plus read the AppSettings value to determine if MSN Messenger should start when Windows starts?
When Plus is started with /WinStart:
====================================
Plus! performs:
1) Unknown1 = RegGet(HKEY_CURRENT_USER\Software\Patchou\MsgPlus2\HandleMessengerStart)
AutoMsg4Start = RegGet(HKEY_CURRENT_USER\Software\Patchou\MsgPlus2\AutoMsg4Start)
AutoMsg5Start = RegGet(HKEY_CURRENT_USER\Software\Patchou\MsgPlus2\AutoMsg5Start)
2) When "AutoMsg5Start" or "AutoMsg4Start" has a value (the normal startup string) then Messenger is strarted up automaticly
3) Plus! process ends (?)...

.........
.........
You exit Messenger:

Nothing happens, because Plus! process was already stopped (?)...


When Plus is started without /WinStart
======================================
Plus! performs:
AppState = RegGet(HKEY_CURRENT_USER\Software\Microsoft\MessengerService\AppSettings)
ForceLoad = RegGet(HKEY_LOCAL_MACHINE\SOFTWARE\Patchou\MsgPlus2\ForceLoad)

.........
.........
You exit Messenger:

Plus! performs (explained in pseudo-code again):

MSNString = RegGet(HKCU\Software\Microsoft\Windows\CurrentVersion\Run\msnmsgr)
RegDelete(HKCU\Software\Microsoft\Windows\CurrentVersion\Run\MessengerPlus2)

Unknown1 = RegGet(HKCU\Software\Patchou\MsgPlus2\HandleMessengerStart)
Unknown2 = RegGet(HKCU\Software\Patchou\MsgPlus2\HandleMessengerStart)
/* meaning? and why twice? */

IF MSNString = NOT Empty THEN
  AppState = RegGet(HKCU\Software\Microsoft\MSNMessenger\AppSettings)
  IF CheckBit(AppState, 17) = 1 THEN
    RegSet(HKCU\Software\Microsoft\Windows\CurrentVersion\Run\MessengerPlus3, "c:\blah\msgplus.exe /Winstart")
    RegSet(HKCU\Software\Patchou\MsgPlus2\AutoMsg5Start, "c:\blah\msnmsgr.exe /background")
    /* (or "AutoMsg4Start", depending on what messenger version is used I assume) */
    RegDelete(HKCU\Software\Microsoft\Windows\CurrentVersion\Run\msnmsgr)
  END IF
ELSE
  IF RegGet(HKCU\Software\Patchou\MsgPlus2\AutoMsg5Start) = NOT Empty THEN
    AppState = RegGet(HKCU\Software\Microsoft\MSNMessenger\AppSettings)
    IF CheckBit(AppState, 17) = 1 THEN
      RegSet(HKCU\Software\Microsoft\Windows\CurrentVersion\Run\MessengerPlus3, "c:\blah\msgplus.exe /Winstart")
      RegDelete(HKCU\Software\Microsoft\Windows\CurrentVersion\Run\msnmsgr)
    ELSE
      RegDelete(HKCU\Software\Patchou\MsgPlus2\AutoMsg5Start)
    END IF
  END IF
END IF





these things can be found out with programs like Registry Monitor...


PS: There is also something about HKCU\Software\Patchou\MsgPlus2\HandleMessengerStart which is read after the "MessengerPlus2"-key is deleted, but I don't know why or what it's function is and I hadn't time yet to figure that out...


EDIT (3hours later:p): OK, I'll stop editing for now... It isn't easy to figure these things out, possible, but very confussing... my head hurts now :p Also, it seems complicated. And I don't know why all these things are performed. But there must be a reason. All this is just to show that Plus! does many things when Messenger is quit... It doesn't realy answer the question in a strait forward way, but I started this to try and answer it, and all this was the result... confussing isn't it :p
quote:
Originally posted by lopardo
So, my question is how does Plus read the AppSettings value to determine if MSN Messenger should start when Windows starts?
So, my second answer would be, it doesn't :p
It does do some checks and makes some changes when Messenger quits, and depending on that (HandleMessengerStart, AutoMsg4Start, AutoMsg5Start ?) it starts up Messenger the next time...
But is seems that when Plus! is started with /WinStart it doesn't perform all those checks....



Patchou, post your code instead, much easier :p ... nah... j/k



FYI: AppSettings consists of a some hexadecimal numbers indicating some general settings for MSN Messenger (eg: 62 0E 00 80):
=> if bit 1 of the second one (0E) is set (= bit 17 from the entire number, see above code), then MSN Messenger is started up when windows starts up and there should be an entry in the run-key. (eg: if it wasn't set in this example then the second number would be "0C")
=> if bit 5 of the first one (62) is set, then the option "open messenger main window when messenger starts" is selected also. (eg: if it wasn't set in this example then the first number would be "42"). Note that this bit is always set when bit 1 of second number is not set.
=> if bit 2 of the second one (0E) is set, then the option "allow automatic sign in when connected to the internet" is selected.
=> etc...

This post was edited on 08-11-2004 at 04:59 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-11-2004 01:32 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Force Plus to load - by lopardo on 08-07-2004 at 08:59 PM
RE: Force Plus to load - by Ezra on 08-07-2004 at 09:02 PM
RE: Force Plus to load - by lopardo on 08-07-2004 at 09:14 PM
RE: Force Plus to load - by Ezra on 08-07-2004 at 09:15 PM
RE: Force Plus to load - by lopardo on 08-07-2004 at 09:21 PM
RE: Force Plus to load - by CookieRevised on 08-09-2004 at 03:17 PM
RE: Force Plus to load - by Patchou on 08-09-2004 at 05:04 PM
RE: Force Plus to load - by cooldude_i06 on 08-09-2004 at 06:24 PM
RE: Force Plus to load - by CookieRevised on 08-10-2004 at 03:04 AM
RE: Force Plus to load - by Patchou on 08-10-2004 at 07:05 AM
RE: Force Plus to load - by CookieRevised on 08-10-2004 at 10:07 AM
RE: Force Plus to load - by lopardo on 08-10-2004 at 09:17 PM
RE: Force Plus to load - by CookieRevised on 08-11-2004 at 01:32 PM
RE: Force Plus to load - by CookieRevised on 08-11-2004 at 05:02 PM
RE: Force Plus to load - by Patchou on 08-11-2004 at 05:50 PM
RE: Force Plus to load - by Dempsey on 08-11-2004 at 06:47 PM
RE: Force Plus to load - by Choli on 08-11-2004 at 09:06 PM
RE: Force Plus to load - by lopardo on 08-12-2004 at 04:44 AM
RE: Force Plus to load - by CookieRevised on 08-12-2004 at 08:38 AM


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