What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] PlusWnd::BaseColor write-only

Pages: (2): « First [ 1 ] 2 » Last »
[?] PlusWnd::BaseColor write-only
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
O.P. [?] PlusWnd::BaseColor write-only
I've tried to read the BaseColor property from a PlusWnd object and received an error. Why can't this value be read? And is there another way of getting it anyway?

Oh and btw, documentation on this property is hard to find, as there's no entry for it in the tree-view control of the Windows CHM viewer.
02-25-2010 04:15 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [?] PlusWnd::BaseColor write-only
It appears that there is an entry in the scripting documentation, however it is only accessible by navigating to the PlusWnd object's Description page and clicking the link from the list there. Same goes for the Contact.ProfileColor property.

Now once you found that page, the answers are straight-forward. You'll find that the BaseColor property is indeed marked as write-only and takes a Win32 RGB value in the form of 0x00bbggrr (where rr = red, gg = green and bb = blue, in hexadecimal format).

It looks like these properties have been quietly added to Plus!, since I haven't read or heard about it before. I can't think of any interesting use right now but thanks for letting us know anyway! :P
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
02-25-2010 04:53 PM
Profile E-Mail PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
O.P. RE: [?] PlusWnd::BaseColor write-only
Well, just doing some random stuff with it, but I'd like to be able to get the BaseColor thingy.
02-25-2010 05:10 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [?] PlusWnd::BaseColor write-only
quote:
Originally posted by SmokingCookie
Well, just doing some random stuff with it, but I'd like to be able to get the BaseColor thingy.
That could be interesting indeed, but unfortunately it seems that Plus! won't let you do so.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
02-25-2010 05:19 PM
Profile E-Mail PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
O.P. RE: [?] PlusWnd::BaseColor write-only
Any kind of Win32 workaround?
02-25-2010 05:22 PM
Profile PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: [?] PlusWnd::BaseColor write-only
Well, if the base color isn't defined in the interface XML (which I think you can read), then Plus! is supposed to use this value:
HKCU\Software\Microsoft\MSNMessenger\PerPassportSettings\(Your MSN ID) -> CurrentColor
02-25-2010 05:32 PM
Profile PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
O.P. RE: [?] PlusWnd::BaseColor write-only
Works as of now, thanks (Y)

Edit: but what if the user changes their colour..? I cannot seem to detect changes, and the colours of script windows do not change.

This post was edited on 02-25-2010 at 05:48 PM by SmokingCookie.
02-25-2010 05:47 PM
Profile PM Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: [?] PlusWnd::BaseColor write-only
Yeah I know. According to Patchou in beta forum two years ago:
quote:
Originally posted by Patchou
Done on purpose for optimizations reasons.

The only window that changes color, I think, is the event log viewer :p
03-04-2010 05:03 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [?] PlusWnd::BaseColor write-only
I talked to Patchou he will make it so that the read of the property will show the colour from the registry or the colour you wrote to the basecolor property.
03-04-2010 05:53 PM
Profile E-Mail PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
29 / Male / Flag
Joined: Jul 2007
O.P. RE: RE: [?] PlusWnd::BaseColor write-only
quote:
Originally posted by matty
I talked to Patchou he will make it so that the read of the property will show the colour from the registry or the colour you wrote to the basecolor property.

Thanks ;)
03-04-2010 06:23 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


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