mIRC Home    About    Download    Register    News    Help

Print Thread
#21460 29/04/03 12:40 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
how do i make a dialog message to the active channel?

#21461 29/04/03 01:18 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Use msg $active in the on DIALOG event.

#21462 30/04/03 12:01 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
im using a multi line text box in my dialog, how can i set it as one var and send it to the channel, 1 line in the box = 1 line in the chan?

#21463 30/04/03 12:17 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
$did(dialog, id, <line>).text


-KingTomato
#21464 30/04/03 12:34 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
how would i make the top line disapear from the text box and go into the channel when a button is clicked, for as many lines as there is?

#21465 30/04/03 01:03 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
alias test { /dialog -m test test }

dialog test {
title "Test Msg Active"
size -1 -1 100 80
option dbu
edit "", 10, 0 0 75 10
button "Add", 20, 75 0 25 10
list 30, 0 10 100 60, size
button "Close", 50, 70 70 30 10, ok
button "Send Top Line", 40, 0 70 50 10
}

on 1:DIALOG:test:INIT:*: {
/did -ra $dname 10
}

on 1:DIALOG:test:SCLICK:20: {
/did -a $dname 30 $did(10)
/did -r $dname 10
}

on 1:DIALOG:test:SCLICK:40: {
/msg $active $did($dname, 30, 1).text
/did -d $dname 30 1
}



Load and type /test in a window


-KingTomato

Link Copied to Clipboard