mIRC Home    About    Download    Register    News    Help

Topic Options
#233992 - 29/09/11 12:04 PM $url for Chrome, Firefox or newer browsers
bolzi Offline
Bowl of petunias

Registered: 29/09/11
Posts: 2
Hello,

should be fine if there is a way to use $url (to show active url in browser) for chrome, firefox and opera or tab-based browsers.

Would some1 agree? How can I suggest such a wish and where? ;-)

Top
#233994 - 29/09/11 01:43 PM Re: $url for Chrome, Firefox or newer browsers [Re: bolzi]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2009
In the Feature Suggestions section. =)

Top
#233995 - 29/09/11 02:08 PM Re: $url for Chrome, Firefox or newer browsers [Re: bolzi]
pball Offline
Fjord artisan

Registered: 04/11/09
Posts: 295
I don't get what you're asking for really. I tried $url with FF open and it showed the active url (I didn't actually know this identifier existed).

There also is the ability to use $dde to get the url and title of the active webpage, which is what I use in my little script. However I know this doesn't work for all browsers but that is the browsers fault.
_________________________
http://scripting.pball.win
My personal site with some scripts I've released.

Top
#233997 - 29/09/11 05:26 PM Re: $url for Chrome, Firefox or newer browsers [Re: bolzi]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: MA, USA
I can't test this at work, but as mentioned, I believe this already works for the major browsers. However, the browser must be the default browser. If your default browser is IE and you open FF, I am pretty sure that you can't use $url to get FF's url. DDE may still be possible, though I've never used it, so I'm not positive of that.
_________________________
Invision Support
#Invision on irc.irchighway.net

Top
#234003 - 29/09/11 10:10 PM Re: $url for Chrome, Firefox or newer browsers [Re: Riamus2]
pball Offline
Fjord artisan

Registered: 04/11/09
Posts: 295
this is my personal show current url script

Code:
webpage if (($dde(IExplore,WWW_GetWindowInfo,1)) || ($dde(firefox,WWW_GetWindowInfo))) && ($regex(url,$replace($v1,\","),/^"(.*?)"\x2c"(.*?)"(|\x2c"(.*?)")$/)) { describe $active 07is Currently Browsing03: $+($iif($regml(url,2),$+(07"15,$chr(44),01,$regml(url,2),07",$chr(32))),07,$chr(40),04,$chr(44),01,$regml(url,1),07,$chr(41),) } | else echo -a 07** Webpage error


it works with ie, ff, opera, and netscape from what i've found. chrome does not support this. (the script above doesn't have opera or netscape included but can be added following the same format)
_________________________
http://scripting.pball.win
My personal site with some scripts I've released.

Top
#234008 - 30/09/11 12:31 PM Re: $url for Chrome, Firefox or newer browsers [Re: pball]
MeStinkBAD Offline
Fjord artisan

Registered: 07/04/03
Posts: 342
Originally Posted By: pball
it works with ie, ff, opera, and netscape from what i've found. chrome does not support this. (the script above doesn't have opera or netscape included but can be added following the same format)


Yeah... you should be using COM not DDE. That should work with every browser.
_________________________
Beware of MeStinkBAD! He knows more than he actually does!

Top
#234015 - 30/09/11 02:34 PM Re: $url for Chrome, Firefox or newer browsers [Re: bolzi]
bolzi Offline
Bowl of petunias

Registered: 29/09/11
Posts: 2
Thanks for the tips.

I give it a try :-)

Top
#234017 - 30/09/11 04:47 PM Re: $url for Chrome, Firefox or newer browsers [Re: MeStinkBAD]
pball Offline
Fjord artisan

Registered: 04/11/09
Posts: 295
anyone have a com script for getting browser info.
_________________________
http://scripting.pball.win
My personal site with some scripts I've released.

Top