Hm..about changing the name. If have looked for it, but I found a problem. I can execute the Options dialog and point it to the General tab with:
code:
msn.OptionsPages 0, MOPT_GENERAL_PAGE
This works fine. But the problem is that I don't get the handle of the opened window. The return value gives some other info:
Return Value
Returns one of the following values:
S_OK Success.
E_FAIL Could not create the Options dialog box or the Messenger object has not been created or is not responding.
S_FALSE The Options dialog box is already open. The second call will change the mOptionPage value (Option tab) in the foreground if the value is different.(..)
MSGR_E_AUDIO_UI_ACTIVE Called this method while the Media Wizard dialog box was enabled and visible.
MSGR_E_CONTACT_UI_ACTIVE The Add a Contact or Find a Contact dialog box of the Messenger client (modal dialog box) is currently open.
MSGR_E_LOGON_UI_ACTIVE The Sign in dialog box of the Messenger client (modal dialog box) is currently open.
We can use that return value, but now we don't know the handle. I can find the Handle by searching for the option dialog. The parent of the window is the desktop. The class name is "#32770 (Dialog)" Is this standart for a dialog in windows or typically for MSN? If it is standart we have to use the window caption to get the handle of the option dialog. This would be a big problem cause every msn language has an other caption. Mine is "Option" cause I use the dutch version. In that case we have to include the caption for every different language... The click-simulation shall not cause any trouble I think.
I like the idea for making a "MSN API Plus!" but I have not much time to work on it. But if someone make it is very great and helpful for everyone.
Rene