mIRC Home    About    Download    Register    News    Help

Print Thread
#85201 03/06/04 11:01 PM
Joined: Apr 2004
Posts: 51
Babel fish
OP Offline
Babel fish
Joined: Apr 2004
Posts: 51
Using $did($did).seltext in a script which worked fine in 6.03 through 6.14 no longer works in 6.15. I have rolled back to 6.14 to verify it was working (does) then went back to 6.15 and it doesn't work in the same unmodified script. This identifier is obviously being used in a dialog event which is upon a sclick of a drop down combo box. If I use $did($did,$did($did).sel) I get the desired result but would like to be able to not have to modify the various points in the script which use $did($did).seltext

#85202 03/06/04 11:18 PM
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
working fine here...

#85203 03/06/04 11:48 PM
Joined: Apr 2004
Posts: 51
Babel fish
OP Offline
Babel fish
Joined: Apr 2004
Posts: 51
Here is a snip from the event:

if ($did == 70) || ($did == 75) {
set %x.bots.cnt 5
set %x.bots.get.settings 1
echo 3 -s seltext $did($did,$did($did).sel) $did $did($did).sel $did($did).seltext
botmsg set-s settings-s $replace($did,70,c,75,a) $did($did).seltext
did -ev X-Bots $replace($replace($did,70,80 69,75,41 74),$chr(32),$chr(44))
did -h X-Bots $replace($replace($did,70,93 94,75,95 96),$chr(32),$chr(44))
return
}

The $did($did).seltext in 6.14 is getting a value in this situation. In 6.15 its not. Again the event is a sclick and the dialog object here is a drop down combo box the $did($did).seltext returns the selected item in the drop down box in 6.14 but doesn't seem to in 6.15. I have tested it going back to 6.14 and 6.15 mahy times and placing different identifiers in the echo command to see what has value and what does not and in 6.15 $did($did).seltext just does not have a value.

#85204 04/06/04 01:25 AM
Joined: Apr 2004
Posts: 51
Babel fish
OP Offline
Babel fish
Joined: Apr 2004
Posts: 51
In fact $did($did) does not work either but both $did(dialogname,$did).seltext and $did(dialogname,$did) work if done in a //echo from an edit box. I even tried using $did($dname,$did) and $did($dname,$did).seltext in the dialog event itself but in this instance (with 6.15) there is no value when there is a value in mIRC 6.14. $did($did).sel however works in the script and returns the appropriate line number slected in the combo box.

#85205 04/06/04 08:54 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Confirmed. $did().seltext for a combo doesn't work when called from within the sclick event of that combo. It works outside of it though:
Code:
dialog combobug {
  title "Combo bug"
  size -1 -1 117 151
  option dbu
  combo 1, 11 9 96 109, size
}
on *:dialog:combobug:init:0: didtok $dname 1 32 the quick brown fox jumped over the lazy dog
on *:dialog:combobug:sclick:1:{
  echo -s $did(combobug,1).sel :: $did(combobug,1).seltext
  .timer 1 0 echo 3 -s $!did(combobug,1).sel :: $!did(combobug,1).seltext
}
Type /dialog -m combobug combobug and click on an item.

The workaround for the moment is easy though. $did().sel works fine, so one can use $did(dialog,id,$did(dialog,id).sel) instead of $did(dialog,id).seltext


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#85206 04/06/04 09:01 AM
Joined: Apr 2004
Posts: 51
Babel fish
OP Offline
Babel fish
Joined: Apr 2004
Posts: 51
Yea, working around it is easy enough but I am afraid that maybe some other $did type things aren't functioning properly as of this version. Thanks though smile

#85207 10/06/04 04:57 PM
Joined: Dec 2002
Posts: 5,427
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,427
This has been fixed for the next version.

#85208 13/06/04 08:29 PM
Joined: Mar 2004
Posts: 130
T
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
cool
thsi is difrent if you drop the combo
combo 1, 11 9 96 129,drop
on *:dialog:combobug:sclick:1:{ echo -s $did(1).sel $did(1).seltext }

of course ther is still a bug if you add edit to the combo
combo 1, 11 9 96 129,drop,edit


#85209 08/07/04 06:27 PM
Joined: Dec 2002
Posts: 329
Fjord artisan
Offline
Fjord artisan
Joined: Dec 2002
Posts: 329
In mIRC 6.16 the $did().seltext/text bug has been fixed.


Link Copied to Clipboard