What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Finding Images in InternetExplorer Object

[?] Finding Images in InternetExplorer Object
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. [?] Finding Images in InternetExplorer Object
I'm trying to detect when the mouse is clicked over an image; I can already detect clicks, but not really what is underneath the mouse. Anybody have any idea? Google isn't really very helpful with anything related to the IE Object
<Eljay> "Problems encountered: shit blew up" :zippy:
09-12-2008 11:39 PM
Profile PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [?] Finding Images in InternetExplorer Object
Well, I've managed to do it a long time ago
code:
function callback(Browser){
    function Browser::DocumentComplete()
    {   
        Browser.Document.getElementById("your_picture_id").onclick = new Function("MsgPlus.DisplayToast('', ';o');" )
    }
}
var Wnd = MsgPlus.CreateWnd("windows.xml", "browserwnd");
var MyBrowser = Wnd.Browser_GetInterface("MyBrowserControl");

callback(MyBrowser);
MyBrowser.navigate("c:\\test.html");  // just for testing
just don't look at Google, have a look at MSDN :)
09-13-2008 02:52 AM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: [?] Finding Images in InternetExplorer Object
I do usually look at msdn, but the search is sometimes dodgy, so I find the exact page on Google.

Anyway, I need to call a certain function when ANY picture is right-clicked, but I'm sure I'll get it from that (Y)



Yay, thanks :p I had to use onmouse enter and leave events to change a variable to tell me if the mouse was over an image or not, but it works nicely :p



This post was edited on 09-13-2008 at 03:55 AM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
09-13-2008 02:58 AM
Profile PM Find Quote Report
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
RE: [?] Finding Images in InternetExplorer Object
sounds interesting, wats it 4?

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














09-13-2008 04:17 AM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: [?] Finding Images in InternetExplorer Object
It's a little project I'm working on :p

[Image: attachment.php?pid=926863]

.png File Attachment: this.png (69.29 KB)
This file has been downloaded 264 time(s).

This post was edited on 09-13-2008 at 04:37 AM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
09-13-2008 04:37 AM
Profile PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [?] Finding Images in InternetExplorer Object
lol a Plus! Browser, eh?
09-13-2008 06:31 AM
Profile E-Mail PM Web Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: [?] Finding Images in InternetExplorer Object
seems kinda pointless... becuase it uses IE not FF/chrome =\
09-13-2008 06:47 AM
Profile PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: [?] Finding Images in InternetExplorer Object
Getting a picture from an HTML file isn't so difficult:

Load the file in a DOM object, select all nodes with the name "Img", and read their attributes you want to access.
09-13-2008 07:11 AM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [?] Finding Images in InternetExplorer Object
quote:
Originally posted by SmokingCookie
Getting a picture from an HTML file isn't so difficult:

Load the file in a DOM object, select all nodes with the name "Img", and read their attributes you want to access.
Actually, he wants to detect when the mouse moves above an image. :P (see first post and replies)

I didn't know you could do that much with the InternetExplorer interface, this is really interesting! :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
09-13-2008 07:55 AM
Profile E-Mail PM Web Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: [?] Finding Images in InternetExplorer Object
If I'd want to retrieve the image file, I'd have to select the node Img, with some identification stuff, and then retrieve the Src attribute..
09-13-2008 08:13 AM
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