mIRC Home    About    Download    Register    News    Help

Print Thread
#141688 11/02/06 11:26 PM
Joined: Jan 2006
Posts: 64
S
Babel fish
OP Offline
Babel fish
S
Joined: Jan 2006
Posts: 64
I want to get the current version of MS Internet Explorer. I tried this:
Code:
alias iever {
  .comopen ie WScript.Shell
  var %x = HKLM\Software\Microsoft\Internet Explorer\, Version
  echo -a === $com(ie, RegRead, 1, bstr, %x)
  .comclose ie
}
  

But I guess It's not working, why?

#141689 11/02/06 11:54 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
You should be reading HKLM\Software\Microsoft\Internet Explorer\Version.

Also, your snippet will echo whether the call was successful or not (ie 0 or 1), this will echo the version number:

Code:
alias iever {
  .comopen ie WScript.Shell
  var %x = HKLM\Software\Microsoft\Internet Explorer\Version
  echo -a === $(,,$com(ie, RegRead, 3, bstr, %x)) $com(ie).result
  .comclose ie
}

#141690 12/02/06 08:51 AM
Joined: Jan 2006
Posts: 64
S
Babel fish
OP Offline
Babel fish
S
Joined: Jan 2006
Posts: 64
10x smile


Link Copied to Clipboard