What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [REQUEST] Text finder

[REQUEST] Text finder
Author: Message:
activatedclone
New Member
*


Posts: 3
29 / Male / Flag
Joined: Oct 2008
O.P. [REQUEST] Text finder
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!
10-13-2008 03:54 AM
Profile E-Mail PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: [REQUEST] Text finder
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.

This post was edited on 10-13-2008 at 10:02 AM by davidpolitis.
10-13-2008 09:51 AM
Profile PM Find Quote Report
activatedclone
New Member
*


Posts: 3
29 / Male / Flag
Joined: Oct 2008
O.P. RE: [REQUEST] Text finder
Thanks
10-13-2008 11:32 AM
Profile E-Mail PM Find Quote Report
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
RE: [REQUEST] Text finder
NP. (Y)
10-13-2008 11:33 AM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [REQUEST] Text finder
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
<Eljay> "Problems encountered: shit blew up" :zippy:
10-13-2008 01:31 PM
Profile PM Find Quote Report
activatedclone
New Member
*


Posts: 3
29 / Male / Flag
Joined: Oct 2008
O.P. RE: [REQUEST] Text finder
Yeah, if somebody could make that, then that would still be as good.
10-13-2008 11:25 PM
Profile E-Mail PM Find Quote Report
TomFletcher
New Member
*


Posts: 3
31 / Male / Flag
Joined: Jan 2009
RE: [REQUEST] Text finder
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.
01-08-2009 08:14 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: [REQUEST] Text finder
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?

This post was edited on 01-09-2009 at 03:42 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
01-09-2009 03:41 PM
Profile PM Find Quote Report
TomFletcher
New Member
*


Posts: 3
31 / Male / Flag
Joined: Jan 2009
RE: [REQUEST] Text finder
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.
01-09-2009 04:16 PM
Profile E-Mail PM Find Quote Report
« 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