Skip to content
MSN Addons

A question about Dialog

A TG007 community discussion started by nyt1972.

Discussion 5 posts
Page 1 of 1
Open
Topic #5944 · 5 published posts · 1,023 views

I created this button with the tgtools dialog studio which has this code behined it,

 

dialog new_table {
 title "New Project"
 size -1 -1 228 89
 option dbu
 button "Button", 1, 4 4 37 12
}

 

now I want to know that what is code to tell mirc to run a remote script or a block of statements on the click of this button.

On *:Dialog:new_table:sclick:1: comand here

It would basically be the same as any other mirc commands when it comes to running remotes. Such as...

 

Example:
alias colornicks {
 var %ncolor = 1
 while ($nick($chan,0) > %ncolor) {
   if ($nick($chan,%ncolor) != $replacementnick($me)) cline -l $iif(*Owner* iswm $nick($chan,%ncolor),12,$iif(*Host* iswm $nick($chan,%ncolor),7)) $chan $nick($chan,%ncolor)
   cline -l $iif(%meaway,$color(gray),11) $chan $fline($chan,$replacementnick($me) $+ *,1,1)
   inc %ncolor
 }
}

On *:Dialog:new_table:sclick:1: { colornicks }

doh i read the ? wrong lol

Ok thanyou I will try this.