mIRC Home    About    Download    Register    News    Help

Print Thread
#63981 14/12/03 04:25 AM
D
Deakkon
Deakkon
D
I'm writing a channel control script, with some features I miss in the one included in mIRC and that's all good and fine (it works) - but;
I have made a edit box for the topic, which allows me to write and set a new topic in a chan, I would however like this box to automaticly show the current topic (as channel control does). Anyone have an idea to how I can make this work?

The dialog part for the topic looks like this:
;---topic---
box "Set Topic", 23, 7 5 248 19
edit "", 24, 13 12 220 10, autovs
button "Set", 25, 236 13 16 9

with the line
if ($did == 25) { /topic %s_ccchan $did(24) }
later on.

Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
try $did($dname, 24) ....
and try to explain what u want a bit more +-+

Joined: Nov 2003
Posts: 203
H
Fjord artisan
Offline
Fjord artisan
H
Joined: Nov 2003
Posts: 203
you can get the channel topic on any channel you are on with $chan(#channelname).topic, there for
edit $chan($active).topic , 24, 13 12 220 10, autovs
should work ok, but maybe you are better to use the init event to put the topic in the edit box, as there will be times when the active window is not a channel, just use something like did -a $dname id $chan($active).topic would be ok for init, just add the check to make sure the active window is a channel

D
Deakkon
Deakkon
D
beautifull Hitchhiker - works like a charm - Thnx a bunch!!!


Link Copied to Clipboard