Combo box fill/add/remove etc. - 08/03/05 03:20 PM
Hi guys... I may sound really stupid, but I have challenged much things while making a script, but I have never tried things with combo boxes. Well... not in the case below at least.
Okay, so I made this dialog:
So... I want when I fill the boxes of "Nickname" and "Note" and press "Add/Update" the nickname and the note to be added in /notify. I know how to do that. But I also want the nickname to be added to the combo list so I think all the nicknames added should be stored to a variable. This is what I cannot do. The next thing I want to do is the Note to be stored in a .txt file and each line of the txt file to be the note for the coresponding user in the variable (added as a notify) since the note may include all characters and it would not be possible to make it as a variable. Now the third thing i want is when I click an existing nickname in the list, the Nickname and Note edit boxes to be filled wit hthe information stored. And when "Add/update" is pressed not to add the nick for a second time with the new info, but to update it. And when I press Remove the selected nick and it's notify note to be deleted. I saw such thing but not quite the same (not for notify) in a mirc script but I couldn't find the codes in remote.
Oh yeah and when Whois is pressed to perform /whois of the nickname selected.
I guess I want too much
Maybe somethings may not be possible, I don't know.
Thanks a lot.
Okay, so I made this dialog:
Code:
dialog notify.manager { title "Vampire Script Notify Manager" size -1 -1 273 289 option pixels icon icon.ico, 0 box "Nicknames", 1, 8 2 126 174 box "Details", 2, 143 2 123 174 list 3, 12 17 118 154, sort size vsbar box "Operations", 4, 7 186 259 64 button "Modify Selected", 5, 11 202 86 20 button "Remove", 6, 104 202 58 20 button "Add/Update", 7, 168 149 74 20 text "Nickname:", 8, 150 17 50 16 edit "", 9, 148 32 109 21 button "Whois", 10, 168 202 75 20 text "Notify Note:", 11, 150 56 60 16 edit "", 12, 148 72 109 21 button "Query", 13, 11 224 86 20 button "Done", 14, 103 257 75 25, ok text "Vampire Script", 15, 201 270 69 16, disable }
So... I want when I fill the boxes of "Nickname" and "Note" and press "Add/Update" the nickname and the note to be added in /notify. I know how to do that. But I also want the nickname to be added to the combo list so I think all the nicknames added should be stored to a variable. This is what I cannot do. The next thing I want to do is the Note to be stored in a .txt file and each line of the txt file to be the note for the coresponding user in the variable (added as a notify) since the note may include all characters and it would not be possible to make it as a variable. Now the third thing i want is when I click an existing nickname in the list, the Nickname and Note edit boxes to be filled wit hthe information stored. And when "Add/update" is pressed not to add the nick for a second time with the new info, but to update it. And when I press Remove the selected nick and it's notify note to be deleted. I saw such thing but not quite the same (not for notify) in a mirc script but I couldn't find the codes in remote.
Oh yeah and when Whois is pressed to perform /whois of the nickname selected.
I guess I want too much
Maybe somethings may not be possible, I don't know.
Thanks a lot.