hmmm ok that worked very well now im running into other probs like in a list box. I wanna click on one of the things from a txt file and have it say it in a chat or like change the channel topic to the thing i click. this is what i havew so far

Code:
 on *:dialog:topicchanger:sclick:*:{
  if $did == 3 { did -a topicchanger 1 %message | write channeltopics.txt %message }
  if $did == 7 { did -r topicchanger 1
  loadbuf -o topicchanger 1 channeltopics.txt }
   [color:red] if $did == 1 { /topic # $1- } [/color] 
  if $did == 4 {  }
}
 


I also want some way to del single lines from the text so when i click on it in the list and i hit the del button that i added to the dialog (dialog number 4) it will del that highlighted string.