Hi everyone

i made myself a little script with a dialog that outputs a random line from a text file into
an edit box, using the sclick event

Code:
on *:dialog:dmaker:sclick:[color:red]2[/color] {
  did -a $dname [color:red]4[/color] $read(8ball.txt)
}


this works, however everytime i click the button defined with the id2 it takes a line for example

random

but when i click it a second time i get

randomword

in the edit box defined with id4, i dont want this i want just word

my question is there a way to refresh the edit box with a new line from the text file, and clear the old line
without having to close the dialog and then restart it everytime ?

Forgot to mention ihave tried seaching the help file and the forum search, i can use the sclick event no problem
just wondered if there was a way to refresh

Thanks in advance
ShadowDemon

Last edited by shadowdemon; 25/07/04 10:11 PM.