What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » a bit difficult script action

a bit difficult script action
Author: Message:
New Member

Posts: 3
Joined: Jan 2008
O.P. a bit difficult script action
I'm new to the world of scripting with msgplus!
I was wondering if it's possible to make a script that changes the focus to a particular window when a message from a user is received.

I'm talking about tabbed chats!
I'd like to make a script which changes the focus to the window in which I've received the message, when it occurs!

How may i do this?

This post was edited on 01-10-2008 at 12:42 AM by airali.
01-08-2008 09:09 PM
Profile E-Mail PM Find Quote Report
Full Member

formerly fatfreechicken

Posts: 483
Reputation: 34
32 / Male / Flag
Joined: May 2005
RE: a bit difficult script action
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin, Message,MessageKind){
     Interop.Call('user32', 'SetFocus', ChatWnd.Handle);

Take note though that when using this, if you are in the middle of typing you will continue typing in the new window, and may end up sending the message to the wrong person.

Hope this helps :)

This post was edited on 01-08-2008 at 09:25 PM by pollolibredegrasa.

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
01-08-2008 09:24 PM
Profile 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