Hi, can somebody help me with this script please ?
First up, i have a combo box with lots of entries in it, but now it needs sorting out and i want to delete certain parts from the list, i saw in another script they have a combo box with add/delete buttons so i kindof know this can be done, but i cant for the life of me figure it out, i have read and reread the script, printed it out and read the help files, of both mIRC and the script.
So far i have
dialog comby {
title ""
size -1 -1 124 86
option dbu
button "CLOSE", 1, 2 2 37 12, ok cancel
button "ADD", 2, 2 20 37 12
button "DELETE", 3, 2 32 37 12
combo 4, 40 2 80 80, sort edit drop
}
on *:dialog:comby:edit:0: {
did -o $dname 4 %tempmessage
}
on *:dialog:comby:sclick:2: {
did -a $dname 4 %tempmessage $did(4)
}
on *:dialog:comby:sclick:3: {
did -o $dname 4 %tempmessage $did(4)
}
That above code will add and delete entries (this is a test combo box script, before i think about addding it to my real script)
It adds the entries and it deletes them, but i think i have the code wrong (again)
because asoon as i close the script, all the entires are gone, i think it may something to do with the
% variable i have used, maybe i shouldnt of used that, but if i remove it, i cant figure out what text or event should go there in order to add or delete text i want in the combo box.
I have read and reread on $did and all that stuff, and i can honestly say after nearly 2 years of scripting mIRC i still cant get that bit right, and yet just the otehr day i made my first away script with no help.
Thanks in advance
ShadowDemon
(Still using mIRC V6.12)