mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
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.

Never argue with an idiot...they'll drag you down to their level and beat you up with experience
Joined: Apr 2004
Posts: 45
V
Ameglian cow
Offline
Ameglian cow
V
Joined: Apr 2004
Posts: 45
use did -ra instead of did -a

-Venoman

Joined: Dec 2002
Posts: 295
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 295
Hahaha, thanks Venoman, maybe i should of searched for that in the did stuff. blush laugh

/me happy

ShadowDemon


Never argue with an idiot...they'll drag you down to their level and beat you up with experience
Joined: Feb 2003
Posts: 67
N
Naz Offline
Babel fish
Offline
Babel fish
N
Joined: Feb 2003
Posts: 67
did -o would work also, -o = overwrite


Those who live by the sword get shot by those who don't.

Link Copied to Clipboard