mIRC Homepage
Posted By: deVilbaT $msfile - 09/01/14 08:38 AM
Hi,
Identifier won't return -1.

Code:
test {
  if ($msfile(*.*,Select a file(s) below,&Ok)) {
    echo -s * $v1
    if ($v1 < 0) echo -s Too many files are selected.
    else {
      var %n 1
      while ($msfile(%n)) {
        echo -s * %n - $v1
        inc %n
      }
    }
  }
}


mIRC 7.32 / Win7.x64
Regards.
Posted By: Khaled Re: $msfile - 09/01/14 09:51 AM
Thanks for your bug report. This appears to be a Windows 7/8 bug in the GetOpenFileName() API. I have implemented a fix around the bug for the next version.
© mIRC Discussion Forums