Skip to content
MSN

Help with dialog..

A TG007 community discussion started by endlessdx.

Discussion 6 posts
Page 1 of 1
Open
Topic #6743 · 6 published posts · 638 views

I'm not sure if this is possible.. but I'm trying to make the dialog like a chat.. I'm not sure if I messed up on the coding, if you can help me that would be great. Thanks;

dialog chat {
 title "Chat"
 size -1 -1 309 167
 option dbu
 list 1, 248 15 57 130, size vsbar
 button "Refresh", 2, 258 148 37 12, flat
 edit "", 5, 8 134 205 11, multi return autohs
 list 3, 8 15 239 119, size
 button "Send", 6, 214 135 31 9
 text "Room Name", 4, 9 5 30 8, center
 list 7, 39 5 71 8, size
 text "Users", 8, 247 5 16 8, center
 button "x", 10, 296 2 9 8, ok
 list 9, 263 5 18 8, size
}


on *:dialog:chat:sclick:3: { $chan $active }
on *:dialog:chat:sclick:6: { set %chat.chat $did($dname,5).text | msg $active $did(2).seltext %chat.chat }
on *:dialog:chat:sclick:9: { $did(9).seltext $nick($active,0) }
on *:dialog:chat:init:0:{
 var %1 1
 while (%1 <= $nick($active,0)) {
   did -a $dname 1 $nick($chan($active),%1)
   inc %1 
 }
}
on *:dialog:chat:sclick:2:{
 did -r chat 1
 var %1 1
 while (%1 <= $nick($active,0)) {
   did -a $dname 1 $nick($chan($active),%1)
   inc %1 
 }
}
on ^*:TEXT:*:#: {
 did -a $dname 3
 .timernicks -m 1 1 showtext
}
alias showtext {
 did -a $dname 3
 var %usr.txt $4-
 did -a $dname 3 +  $dc.decode($nick)  $chr(58) %usr.txt
}
menu menubar {
 Chat:/dialog -md chat chat
 -
}

keep working on it in about a week u have all the code done

I would Do It But Am Busy With MidGard Sorry

MidGard The New name To Replace R2 Script

You mean like a chat window ? Use picwin...

Pomperom

If your doing what I think your doing(which I'm probably wrong ..) use @windows .. alot easier and it'll probably give you more ideas with less code ..

We're trying to make a window that looks like the msn chat screen...I suggested using @windows, but I can't figure out the input on the windows o O

You could use @window and then use dialog.mdx to imbed the @window within the dialog.

Get the Tech outta here!