Shoutbox

[REQUEST] Text finder - 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: [REQUEST] Text finder (/showthread.php?tid=86623)

[REQUEST] Text finder by activatedclone on 10-13-2008 at 03:54 AM

Lately, I have been very interested in copying other people DPs, diplay names and PSMs and acting like them. However, the one thing there would appear to be no script for is finding what text type (like New Times Roman-Bold-Blue) the other person is using. So if anybody thinks they might be able to figure something like that out, that would be great.

Thanks!


RE: [REQUEST] Text finder by davidpolitis on 10-13-2008 at 09:51 AM

Welcome to the forums.
Next time please search before posting a question to see if it has already been asked.

quote:
Originally posted by absorbation
It has been requested a lot. However, in scripting there is nothing to detect the font and colour your contact is using at the moment, sorry :(.
quote:
Originally posted by Chris4
If you mean in conversation, you can always highlight your contacts text, copy it, and paste it into Word Pad or Microsoft Word. Then just click on the text and it says what font it is.

RE: [REQUEST] Text finder by activatedclone on 10-13-2008 at 11:32 AM

Thanks


RE: [REQUEST] Text finder by davidpolitis on 10-13-2008 at 11:33 AM

NP. (Y)


RE: [REQUEST] Text finder by Spunky on 10-13-2008 at 01:31 PM

You can find the font no problem, but setting it is harder via a script, although you could use a command to TELL you the font and manually change it yourself


RE: [REQUEST] Text finder by activatedclone on 10-13-2008 at 11:25 PM

Yeah, if somebody could make that, then that would still be as good.


RE: [REQUEST] Text finder by TomFletcher on 01-08-2009 at 08:14 PM

If somebody knows a way to find out the font of the contact like Spunky says, I've come up with a script to set it:

code:
var WshShellObj = new ActiveXObject("WScript.Shell");
var fontToSet = 'Arial';

function changeFont(ChatWnd)
{
    MsgPlus.AddTimer('setFont', 500);
    Interop.Call('user32', 'SendMessageW', ChatWnd.Handle , 0x0111, 40211, 0);
}

function OnEvent_Timer(TimerId)
{
    WshShellObj.SendKeys(fontToSet + '{ENTER}');
}


It's the only method I could come up with and it displays the font window for a split second - maybe it would inspire somebody.
I'm quite new to scripting.
RE: [REQUEST] Text finder by Spunky on 01-09-2009 at 03:41 PM

quote:
Originally posted by TomFletcher
function changeFont(ChatWnd)

There is no such function =/

Also, SendKeys is not the best idea for a script, as you may end up typing it somewhere else.

The best way to do it would be to edit outgoing packets, something that Plus! will not do...

EDIT: Also, what if you don't have their font installed?
RE: [REQUEST] Text finder by TomFletcher on 01-09-2009 at 04:16 PM

Thats because i made it to be called. Maybe something like this?

code:
var WshShellObj = new ActiveXObject("WScript.Shell");
var fontToSet;

function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    fontToSet = 'Arial';
    changeFont(ChatWnd);
}

function changeFont(ChatWnd)
{
    MsgPlus.AddTimer('setFont', 500);
    Interop.Call('user32', 'SendMessageW', ChatWnd.Handle , 0x0111, 40211, 0);
}

function OnEvent_Timer(TimerId)
{
    WshShellObj.SendKeys(fontToSet + '{ENTER}');
}


I see your point with the SendKeys though (i think there's a WM_SETTEXT message that could be used, but I couldnt work it out), and if the font isn't installed.