mIRC Home    About    Download    Register    News    Help

Topic Options
#21460 - 29/04/03 01:40 AM dialog
MTech Offline
Fjord artisan

Registered: 05/03/03
Posts: 437
how do i make a dialog message to the active channel?

Top
#21461 - 29/04/03 02:18 AM Re: dialog
Collective Offline
Planetary brain

Registered: 10/12/02
Posts: 3138
Loc: London, UK
Use msg $active in the on DIALOG event.

Top
#21462 - 30/04/03 01:01 AM Re: dialog
MTech Offline
Fjord artisan

Registered: 05/03/03
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?

Top
#21463 - 30/04/03 01:17 AM Re: dialog
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
$did(dialog, id, <line>).text
_________________________
-KingTomato

Top
#21464 - 30/04/03 01:34 AM Re: dialog
MTech Offline
Fjord artisan

Registered: 05/03/03
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?

Top
#21465 - 30/04/03 02:03 AM Re: dialog
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
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

Top