Shoutbox

Setting Current Font? - 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)
+----- Thread: Setting Current Font? (/showthread.php?tid=65724)

Setting Current Font? by alexp2_ad on 09-02-2006 at 12:11 PM

Is there anyway to set the current users font (and colour and formatting and such) in a script?

Not by using the formatting codes, but properly setting the font.

Thanks. :)


RE: Setting Current Font? by markee on 09-02-2006 at 12:14 PM

You can change the messenger registry settings but it won't update until you re-open the window.

EDIT: The two registry settings are as follows in case you did want to know (I think you can work out which is which):

HKCU\Software\Microsoft\MSNMessenger\PerPassportSettings\{MSN ID here}\IM Color
HKCU\Software\Microsoft\MSNMessenger\PerPassportSettings\{MSN ID here}\IM Format


RE: RE: Setting Current Font? by alexp2_ad on 09-02-2006 at 12:19 PM

quote:
Originally posted by markee
You can change the messenger registry settings but it won't update until you re-open the window.

Hmm... not ideal, but it might do, could you give me a little more in depth than that?  ie.  which registry settings?
RE: Setting Current Font? by Huhu_Manix on 09-02-2006 at 12:20 PM

For the font you can use the command "/font"...but for the colour...:(


RE: RE: Setting Current Font? by alexp2_ad on 09-02-2006 at 12:23 PM

quote:
Originally posted by Huhu_Manix
For the font you can use the command "/font"...but for the colour...:(

That just opens the font window though... it can't be used to set a font can it? *-)
RE: Setting Current Font? by markee on 09-02-2006 at 12:25 PM

Updated my first post with the registry keys (no-one replied when I started writing it [Image: msn_tongue.gif])


RE: Setting Current Font? by alexp2_ad on 09-02-2006 at 12:49 PM

OK, they seem to be saved as binary, how would I read / write values to them?

And is there anyway I could use /font then send window messages to the font window to set the font or something? *-)


RE: Setting Current Font? by Plik on 09-02-2006 at 01:10 PM

quote:
Originally posted by alexp2_ad
And is there anyway I could use /font then send window messages to the font window to set the font or something? *-)
I think you can, i seam to remember eljelly doing it a while back. AFAIK the hwnd for the font textbox is easyish to find :)
RE: Setting Current Font? by Spunky on 09-02-2006 at 06:50 PM

quote:
Originally posted by markee
HKCU\Software\Microsoft\MSNMessenger\PerPassportSettings\{MSN ID here}\IM Color
HKCU\Software\Microsoft\MSNMessenger\PerPassportSettings\{MSN ID here}\IM Format

I don't have those two keys in the registry :s It's just the last parts that are missing ("\IM Color" and "\IM Format"). I'm guessing that if my font isn't set by those keys, then it's going to respond when they're changed. It may not just be me that doesn't have them

RE: Setting Current Font? by AberNStein on 09-08-2006 at 01:47 AM

so is there any way to maybe send messages to the font chooser or something?
or any other creative solution to change the font?
i've got a working script that gets the contacts' fonts with xniff and stores them in an associative array. i'd like to integrate this into a clone/imitate/mock script.


RE: RE: Setting Current Font? by alexp2_ad on 09-08-2006 at 09:13 AM

quote:
Originally posted by AberNStein
so is there any way to maybe send messages to the font chooser or something?
or any other creative solution to change the font?
i've got a working script that gets the contacts' fonts with xniff and stores them in an associative array. i'd like to integrate this into a clone/imitate/mock script.

Lol, man... :P  That's why I wanted to set the font... did you not realise / wonder that? :P

But I'm a step ahead, I've set the font now, but not the colour or the formatting yet.