$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