Shoutbox

help needed please... (open links in Firefox) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: help needed please... (open links in Firefox) (/showthread.php?tid=66269)

help needed please... (open links in Firefox) by Nights on 09-15-2006 at 09:19 AM

i don't know if this is the right place to post this...i'm new here
i got the scripting documentation file...i read it..& i tried some scripts..small ones...
now i need to write a script that allows me to open links (such as inbox, space...etc) using the default browser (Mozilla Firefox in my case)...since the windows live messenger opens them using the IE...whether it's the default browser or not...
has anyone tried to write such script?? how can i start...i looked at the event references..in the interface window events...the OnWindowidEvent_CtrlClicked ...but i can't know what to do next..is this right?! am i using the events correctly??

Thanks alot for your time...


RE: help needed please... by NanaFreak on 09-15-2006 at 09:27 AM

here is the code to go to a site:

code:
new ActiveXObject("wscript.shell").run("www.site.com");
and with the OnWindowidEvent Windowid mean the id of the msg+ window you created

if you need more help just ask
RE: help needed please... by Nights on 09-15-2006 at 09:57 AM

thanks alot...the code is great...i was asking about the OnWindowidEvent if it's the right event when i click on the "check your inbox" button...what i want to do is to use the code you gave me when i click that button....
thanks again for your fast reply...


RE: help needed please... by NanaFreak on 09-15-2006 at 10:13 AM

ok well first have you made a interface to be able to make the link/button.

if you have then OnWindowidEvent the Windowid = the id of the window you have created

and yes it is the right event for it

i hope you make a good script


RE: help needed please... by Shondoit on 09-15-2006 at 11:04 AM

the "check your inbox" button actually doesn't throw an event in scripts, and can't (easily) be manipulated with scripts...

with a normal plugin you can subclass events meaning, you intercept the button click, and execute the code, and send the 'click' on it's normal path...
With scripts you can't do this though, so the only thing I can think of, is make your own button... and put it over the inbox button, but that isn't that easy either...

StuffPlug is going to have this feature (open in default browser) but isn't out yet (for WLM)

If you need any more help, just ask... that's what we're here for


RE: help needed please... (open links in Firefox) by Nights on 09-16-2006 at 03:33 PM

thanks alot...for both of you...you helped alot...