mIRC Homepage
Posted By: Crinul $did is set to zero after calling $input - 06/10/14 06:37 PM
Code:
dialog mBug {
  title "mIRC did bug"
  option dbu
  size -1 -1 100 100
  button "Bug", 500, 40 40 20 20 // ID is 500 but could be 1
}

ON *:DIALOG:mBug:sclick:*: {
  if ($did == 500) {
    echo -ac info * did before input: $did
    noop $input(Bug?,y)
    echo -ac info * did after input: $did
  }
}


Steps:

1. /dialog -m mBug mBug
2. Click "Bug" button
3. Close input window (X, Yes, No)

Result:

mIRC v7.36

* did before input: 500
* did after input: 0

mIRC v7.32

* did before input: 500
* did after input: 500

Windows XP Pro SP 3
Posted By: westor Re: $did is set to zero after calling $input - 06/10/14 06:40 PM
Confirmed 7.36 (beta1 too).
Posted By: Khaled Re: $did is set to zero after calling $input - 10/10/14 08:43 AM
Thanks for your bug report. This issue has been fixed for the next version.
© mIRC Discussion Forums