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

[?] API Help.
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [?] API Help.
quote:
Of course the code can always be shorted like this:
code:
function CheckWindow(){
        return Interop.Call('user32', 'GetForegroundWindow') === pPlusWnd.Handle ? true : false ;
}

The expression used in the tenary check already returns true or false, therefore no need for putting it into a tenary check in the first place. (and parameter pPlusWnd is missing)

=>>>>
code:
function CheckWindow(pPlusWnd){
        return Interop.Call('user32', 'GetForegroundWindow') === pPlusWnd.Handle;
}

;)
.-= A 'frrrrrrrituurrr' for Wacky =-.
06-27-2007 11:34 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] API Help. - by roflmao456 on 06-25-2007 at 03:23 AM
RE: [?] API Help. - by CookieRevised on 06-25-2007 at 03:49 AM
RE: [?] API Help. - by matty on 06-25-2007 at 04:40 AM
RE: [?] API Help. - by roflmao456 on 06-25-2007 at 10:51 PM
RE: [?] API Help. - by matty on 06-26-2007 at 01:17 AM
RE: [?] API Help. - by roflmao456 on 06-26-2007 at 02:33 AM
RE: [?] API Help. - by CookieRevised on 06-27-2007 at 11:34 PM
RE: [?] API Help. - by matty on 06-28-2007 at 07:08 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