Im a little confused how would I write all that code in this

Code:
 on *:dialog:textthemev1:sclick:*:{
if $did == 26 { write %textthemename $did(texthemev1,EDITBOX#).text }
}
 


if (Windows isin %txt.1) { /kick # $nick Windows is a badword tisk tisk tisk. }