mIRC Home    About    Download    Register    News    Help

Print Thread
#151257 15/06/06 05:40 PM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
Hi, I was wondering if it is possible for IRC to find out which internet I am using, by scripting, Example: if I was using Internet Explorer, then IRC would know what I was using, if I was using Mozilla, then it would know what I was using, please help.


-Kurdish_Assass1n
#151258 16/06/06 12:59 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Try this, it's the first time I've toyed with com objects, so it could possibly be simplified.

Useage Example: //echo -a $browser

Code:
alias browser {
  var %browser
  .comopen browser WScript.shell
  !.echo -q $com(browser,RegRead,3,bstr,HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application\)
  %browser = $com(browser).result
  .comclose browser
  return $iif(!$comerr,%browser,0)
}

#151259 16/06/06 01:07 AM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
laugh!! works, thanks, that's exactly what I was looking for, this is what it returns:
Quote:

Firefox

what would it return for Internet Explorer?
/me doesn't want to delete firefox to find out :P


-Kurdish_Assass1n
#151260 16/06/06 01:22 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
For Internet Explorer it will return 'IExplore'

You don't need to delete Firefox to see this, simply go to Internet Options in the Windows Control Panel. Then click the Programs tab and check the box at the bottom. If it's already checked, then click reset web settings.

#151261 17/06/06 09:46 PM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
for some reason, most of the times it does this now:
Quote:

//echo -a $browser
0

please help.


-Kurdish_Assass1n

Link Copied to Clipboard