What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Detecting 'receive msg when minimised' & running a batch

Detecting 'receive msg when minimised' & running a batch
Author: Message:
Dauntless
Junior Member
**


Posts: 16
– / Male / –
Joined: Aug 2006
O.P. RE: Detecting 'receive msg when minimised' & running a batch
I now have this, and it's working:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
    if(ChatWnd.Handle != Interop.Call('user32.dll', 'GetActiveWindow')) {
        var objShell = new ActiveXObject("Shell.Application");
        objShell.ShellExecute("C:\\Documents and Settings\\Dauntless\\My Documents\\My Downloads\\xps-led-control-exe\\police.bat", "", "C:\\Documents and Settings\\Dauntless\\My Documents\\My Downloads\\xps-led-control-exe", "open", 1);
    }
}
If someone can point me to the documentation for User32.dll, that would be really helpful!
06-03-2007 10:44 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Detecting 'receive msg when minimised' & running a batch - by Dauntless on 06-03-2007 at 09:28 AM
RE: Detecting 'receive msg when minimised' & running a batch - by Volv on 06-03-2007 at 10:02 AM
RE: Detecting 'receive msg when minimised' & running a batch - by Dauntless on 06-03-2007 at 10:06 AM
RE: Detecting 'receive msg when minimised' & running a batch - by Dauntless on 06-03-2007 at 10:44 AM
RE: Detecting 'receive msg when minimised' & running a batch - by TheSteve on 06-03-2007 at 01:03 PM
RE: Detecting 'receive msg when minimised' & running a batch - by Dauntless on 06-03-2007 at 01:16 PM
RE: Detecting 'receive msg when minimised' & running a batch - by CookieRevised on 06-03-2007 at 01:43 PM
RE: Detecting 'receive msg when minimised' & running a batch - by Dauntless on 06-03-2007 at 01:46 PM
RE: Detecting 'receive msg when minimised' & running a batch - by Volv on 06-03-2007 at 02:16 PM
RE: Detecting 'receive msg when minimised' & running a batch - by Dauntless on 06-03-2007 at 02:20 PM
RE: Detecting 'receive msg when minimised' & running a batch - by Volv on 06-03-2007 at 02:22 PM


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