just load into remotes.
i got
on *:INPUT:*: {
if ($istok(/ ,$left($1,1),32)) || ($ctrlenter) || ($inpaste) return
elseif ($istok(NickServ ChanServ HostServ BotServ HelpServ OperServ,$target,32)) return
elseif ($istok(off talkerat $null,%ctklr,32)) return
else say %ctklr $+ $1-
haltdef
}
http://www.hawkee.com/snippet/4522/
because i could not get my on :input::{ to work right. it would mess up and i would not be able to do any alias. and i was to tired to fix it at the time i made the snippet. i will try to replace that with my OWN script soon.
the rest i did %100 on my own and by hand -_-
now i have added a disable button. and a few other updates.
dialog ctalker {
title "-=Pwnisher3's Color Talker=-"
size -1 -1 140 62
option dbu
text "Color Talker Made By Pwnisher3. the combo box on the right is your Main text color, the combo box on the left is for your Background color. ", 1, 2 2 135 21, center
button "Set Color Talker", 2, 2 38 135 10
check "Bold", 3, 4 50 22 10
check "Underline", 4, 31 50 33 10
combo 5, 69 50 25 125, size drop
text ",", 6, 97 51 13 8, center
combo 7, 112 50 25 125, size drop
button "Disable All Colors", 8, 2 26 135 10
}
on *:dialog:ctalker:sclick:8:{
set %ctklr $chr(3) $+ 01,00
}
on *:dialog:ctalker:sclick:2:{
set %ctklr %bold $+ %underline $+ $+ %ctklr1 $+ %comma $+ %ctklr2
dialog -x ctalker ctalker
}
on *:dialog:ctalker:sclick:3:{
if (did == 3) {
if (!$did(3) set %bold )
}
else {
set %bold $chr(2)
}
}
on *:dialog:ctalker:sclick:4:{
if (did == 4) {
if (!$did(4) set %underline )
}
else {
set %underline $chr(31)
}
}
on *:dialog:ctalker:sclick:*:{
if (did == 5) {
if (!$did(5))
}
else {
set %ctklr1 $did(5)
set %comma ,
}
if (did == 7) {
if (!$did(7))
}
else {
set %ctklr2 $did(7)
}
}
on *:dialog:ctalker:init:*:{
did -ca ctalker 7 00
did -a ctalker 5 00
did -ca ctalker 5 01
did -a ctalker 7 01
didtok $dname 5,7 44 02,03,04,05,06,07,08,09,10,11,12,13,14,15
}
on *:INPUT:*: {
if ($istok(/ ,$left($1,1),32)) || ($ctrlenter) || ($inpaste) return
elseif ($istok(NickServ ChanServ HostServ BotServ HelpServ OperServ,$target,32)) return
elseif ($istok(off talkerat $null,%ctklr,32)) return
else say %ctklr $+ $1-
haltdef
}
menu * {
.Color Talker: dialog -m ctalker ctalker
}
Tinkered with your code a bit and came up with the below which does the same as yours with less script.
menu * {
.Color Talker: dialog $iif(!$dialog(ctalker),-m,-va) ctalker ctalker
}
dialog ctalker {
title "-=Pwnisher3's Color Talker=-"
size -1 -1 140 62
option dbu
text "Color Talker Made By Pwnisher3. the combo box on the right is your Main text color, the combo box on the left is for your Background color. ", 1, 2 2 135 21, center
button "Set Color Talker", 2, 2 38 135 10
check "Bold", 3, 4 50 22 10
check "Underline", 4, 31 50 33 10
combo 5, 69 50 25 125, size drop
text ",", 6, 97 51 13 8, center
combo 7, 112 50 25 125, size drop
button "Disable All Colors", 8, 2 26 135 10
}
on *:dialog:ctalker:sclick:8:{ unset %ctklr }
on *:dialog:ctalker:sclick:2:{
set %ctklr $+($iif($did(3).state == 1,$chr(2)),$iif($did(4).state == 1,$chr(31)),$+($chr(3),$did(5),$chr(44),$did(7)))
dialog -x ctalker ctalker
}
on *:dialog:ctalker:init:*:{
unset %ctklr
did -ca ctalker 7 00
did -a ctalker 5 00
did -ca ctalker 5 01
did -a ctalker 7 01
didtok $dname 5,7 44 02,03,04,05,06,07,08,09,10,11,12,13,14,15
}
on *:INPUT:*: {
if ($istok(/ ,$left($1,1),32)) || ($ctrlenter) || ($inpaste) return
elseif ($istok(NickServ ChanServ HostServ BotServ HelpServ OperServ,$target,32)) return
elseif ($istok(off talkerat $null,%ctklr,32)) return
else say %ctklr $+ $1-
haltdef
}