mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2010
Posts: 969
F
Hoopy frood
OP Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
I'm not sure what exactly is causing this, be it mIRC's change to precision or something I've over looked. The best way I can explain it is via example:

Code:
alias example {
  if ($com(bug)) {
    .comclose bug
  }
  comopen bug MSScriptControl.ScriptControl

  if ($comerr || !$com(bug)) {
    echo -a Failed to create com
  }
  elseif (!$com(bug, language, 4, bstr, jscript)) {
    echo -a Failed to set language
  }
  elseif (!$com(bug, ExecuteStatement, 1, bstr, example = 5.7)) {
    echo -a Failed to execute jscript
  }
  elseif (!$com(bug, Eval, 1, bstr, example)) {
    echo -a Failed to eval
  }
  else {
    ;; this returns 5.70000
    echo -a This should be 5.7 :: $com(bug).result
  }

  if ($com(bug)) {
    .comclose bug
  }
}

Last edited by FroggieDaFrog; 02/01/17 07:02 PM.

I am SReject
My Stuff
Joined: Dec 2002
Posts: 5,412
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,412
Thanks, this issue has been fixed for the next version.


Link Copied to Clipboard