OK I have a dialog where you can right in many diffrent things in the edit boxes. After you write the stuff in all the boxes it saves what you put in them in %vareables. I have a button when I press it I want it to write up a script I made and fill in the %var spots with what the real %var is and then write it as a multy lined .txt or .mrc file this is the button part of it.
on *:dialog:textthemev1:sclick:*:{
if $did == 26 { write %textthemename on ^*:Text:*:#:{ echo $chan %time1 %nick1 $1- $+ | haltdef }
on ^*:Text:*:?:{ echo $nick %pmtime1 %pmnick1 $1- $+ | haltdef }
on ^*:Action:*:#:{ echo $chan %actiontime %actionnick | haltdef }
on ^*:Action:*:?:{ echo $nick %actiontime2 %actionnick2 | haltdef }
on *:input:*:{
if /* !iswm $$1 && (# || $query($target)) {
echo -ai %metime %menick $1- $+
.msg $ifmatch $1-
haltdef
}
} }
}
right now it only writes this "on ^*:Text:*:#:{ echo" and stops please help thanks.