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

API and Mozilla
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: API and Mozilla
quote:
Originally posted by rix
Hey!

One local user here asked about possibility to show the name of the webpage opened in Mozilla in your personal message / nickname. As im not familiar with scripting nor API, i'm asking.. is it possible?

just findwindow and then get the window title and strip " - Mozilla Firefox" or whatever :P

code:
    var WM_GETTEXT = 0xD
    var hwnd = Interop.Call('User32',"FindWindowW", 'MozillaUIWindowClass', 0);
   
    if(hwnd > 0){
        var appTitle = Interop.Allocate((255 *2)+2);
        if(Interop.Call('User32', 'SendMessageW', hwnd, WM_GETTEXT, 255, appTitle)){
            var titleRaw = appTitle.ReadString(0);
            var title = titleRaw.replace(" - Mozilla Firefox", "");
            Debug.Trace(title);
        }

    }



other than that, you could probably create an extension to communicate with the plus script
[Image: dt2.0v2.png]      Happy Birthday, WDZ
10-07-2007 03:14 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
API and Mozilla - by rix on 10-07-2007 at 02:49 PM
RE: API and Mozilla - by Shiny Rabbit on 10-07-2007 at 03:01 PM
RE: API and Mozilla - by -dt- on 10-07-2007 at 03:14 PM
RE: API and Mozilla - by felipEx on 10-08-2007 at 02:01 AM


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