mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2011
Posts: 2
B
bolzi Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Sep 2011
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? ;-)

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
In the Feature Suggestions section. =)

Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
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.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
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.
Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
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!
Joined: Sep 2011
Posts: 2
B
bolzi Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Sep 2011
Posts: 2
Thanks for the tips.

I give it a try :-)

Joined: Nov 2009
Posts: 295
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
anyone have a com script for getting browser info.


http://scripting.pball.win
My personal site with some scripts I've released.

Link Copied to Clipboard