|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
umm i know that you can script so notices goes only to @window.
but is it possible to make along with -e switch that umm if i talk with some nickname over notices that i use @window 2 ways, like i type in that window and user get notices from what i type in that @window
so basicaly like PM window but just for notices. can this be done at all ?
IceCapped
|
|
|
|
Joined: May 2005
Posts: 449
Fjord artisan
|
Fjord artisan
Joined: May 2005
Posts: 449 |
I have this, if this is what you mean:
dialog Notice {
title "Notice"
size -1 -1 270 40
option dbu
text "",1,5 5 100 8
edit "",2,5 14 190 10,autohs
button "Hidden",3,210 50 1 1
button "Close",4,90 27 20 8,ok
}
on *:dialog:Notice*:init:*: {
dialog -t $dname NOTICE %nnick %adnick
did -a $dname 1 Notice %nnick $+ :
did -ht $dname 3
}
on *:dialog:Notice*:sclick:*: {
if ($did == 3 && $did(2) != $null) {
notice $left($gettok($did(1),2,32),-1) $did(2)
echo -a 4 $left($gettok($did(1),2,32),-1) $did(2)
did -r $dname 2
}
}
menu nicklist {
-
Notice: set %nnick $snick($chan,1) | set %adnick $address(%nnick,0) | dialog -m Notice Notice
}
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
on ^*:notice:*:*:{
var %win = $+(@notice.,$cid,.,$nick)
if (!$window(%win)) window -e %win
aline %win $+(-,$nick,$iif($target ischan,: $+ $v1),-) $1-
haltdef
}
on *:input:@:{
if (@notice.*.* iswm $active) {
.notice $gettok($v2,-1,46) $1-
echo -a -> $1-
}
} bwr30060: he said @windows, not dialogs.
|
|
|
|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
aawww thanks hixxy, this is great ! =D i gots just few questions: i changed a bit these lines 1.
aline %win $+($timestamp,$nick,$iif($target ischan,: $+ $v1),:) $1-
and
echo -at $me $+ : $1-
so i get [time] [space] [nick] [2xdot] [msg] but how to have space in aline code ? coz i get it like this in convo: [13:15] Me: some text [13:16]User: some text (no space at user2) 2.would it bee to big hassle for you to make it so user can send color codes (and such) over what @window ?
Last edited by raZOR; 23/04/06 11:20 AM.
IceCapped
|
|
|
|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
ok ignore #1 =) #2 stays, if too hard, just say it =)
IceCapped
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
What do you mean? You can already send and receive control codes through that window.
|
|
|
|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
oh, you're right. then i screwed something up sorry for bad info and thanks very much again!
Last edited by raZOR; 23/04/06 05:06 PM.
IceCapped
|
|
|
|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
oww i still have 1 question lol why doesnt this work for it ?
menu @%win {
dclick {
Save Log: /savebuf 1-200 @%win $mircdirlogs\Misc\Notice. $+ $network $+ .Log
-
Close:/window -c @%win
}
}
it doesnt show the menu
Last edited by raZOR; 23/04/06 08:57 PM.
IceCapped
|
|
|
|
Joined: Dec 2004
Posts: 66
Babel fish
|
Babel fish
Joined: Dec 2004
Posts: 66 |
“menu @%win {“ and the other uses of @%win are wrong. Normally if I have a custom window named dirlog I’d use “menu @dirlog {“, I guess if you have a global variable %win set to @dirlog you could use “menu %win {“
|
|
|
|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
i really have no idea what you said.....
Last edited by raZOR; 23/04/06 11:41 PM.
IceCapped
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
menu @notice.*.* {
Save Log: savebuf 1-200 $active $+(logs\Misc\Notice.,$network,.log)
-
Close: window -c $active
} You can't have popups open when you double click on the window.
|
|
|
|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
hmm odd... works for other @windows. i tried with rclick and sclick too it wont accept
IceCapped
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
You're mistaken. You can trigger code on double click, but you can't open popups on double click.
|
|
|
|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
so what you say, there is no way that any popup works in that window ?
IceCapped
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
No, nothing like that. Before, it looked like you were trying to make a popup menu open when you double clicked on the window, because you had menus inside of a dclick code block. You cannot open popups in ANY window when you double click the mouse unless you use a dll. However, you can still open popups via the normal right click method.
|
|
|
|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
menu @%win { rclick { Save Log: /savebuf 1-200 @%win $mircdirlogs\Misc\ $+ %win $+ .Log - Close:/window -c @%win } }
dont works
Last edited by raZOR; 24/04/06 01:47 AM.
IceCapped
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
|
|
|
|
Joined: Apr 2005
Posts: 1,009
Hoopy frood
|
OP
Hoopy frood
Joined: Apr 2005
Posts: 1,009 |
ohh hixxy, i deeply apologyse. i didnt even see your code o_O probably coz its 4 in morning uhh
oh yes, it works hehe thank you very much and good night =)
IceCapped
|
|
|
|
|