mIRC Home    About    Download    Register    News    Help

Print Thread
#62518 01/12/03 05:30 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
where do i look to find the default browser, or just use mirc's way, find the browsert that opens html files?


http://MTec89Net.com
irc.freenode.net #MTec89Net
#62519 01/12/03 11:41 PM
Joined: Apr 2003
Posts: 85
K
Babel fish
Offline
Babel fish
K
Joined: Apr 2003
Posts: 85
mIRC should be using Windows` default browser.


--

katsklaw
Rather experienced Admin
Rather experienced mIRC Scripter
Amateur C Coder
#62520 01/12/03 11:58 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
This should return the default browser,

$regread(HKCR\http\shell\open\ddeexec\Application\)
$regread(HKCR\http\shell\open\command\)

Get $regread here.

#62521 02/12/03 01:11 AM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
well uhh its not doing what i want. its trying to go to %1 which (goes to vh1????)
i typed //return $brwsr(http://www.mirc.com)

when i //echo'ed your code...
your code returned:
error! when reading or key does not exist
C:\PROGRA~1\MOZILLA.ORG\FIREBIRD\MOZILL~1.EXE -url "%1"


Code:
alias regread {
  var %a = regread
  .comopen %a WScript.Shell
  if !$comerr {
    var %b =  $com(%a,RegRead,3,bstr,$1-)
    var %c = $com(%a).result
    .comclose %a
    if (%c != $null) return %c
    else goto error
  }
  :error
  return error! when reading or key does not exist
}

alias testregread {
  if (($os == 95) || ($os == 98) || ($os == ME)) {
    echo -s $regread(HKLM\Software\Microsoft\Windows\CurrentVersion\Version)
  }
  elseif (($os == NT) || ($os == 2K) || ($os == XP)) {
    echo -s $regread(HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName)
  }
}
alias brwsr { run $regread(HKCR\http\shell\open\command\) $replace($+($chr(34),$chr(36),%1,$chr(34)),$1-,$1-) }


http://MTec89Net.com
irc.freenode.net #MTec89Net
#62522 02/12/03 01:24 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
You can use //run $gettok($regread(...),1,32) <url>

But /run <url> should already use the system's default browser.

#62523 02/12/03 01:34 AM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
it dont run default browser on mirc 6.03 wink

thanks...works:)

Last edited by MTec89; 02/12/03 01:36 AM.

http://MTec89Net.com
irc.freenode.net #MTec89Net

Link Copied to Clipboard