mIRC Home    About    Download    Register    News    Help

Topic Options
#147710 - 23/04/06 01:12 AM notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
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

Top
#147711 - 23/04/06 01:33 AM Re: notices and @window
bwr30060 Offline
Fjord artisan

Registered: 23/05/05
Posts: 449
Loc: Georgia USA
I have this, if this is what you mean:
Code:
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
}
_________________________
Bears on Patrol Chat

Top
#147712 - 23/04/06 03:49 AM Re: notices and @window
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Code:
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.

Top
#147713 - 23/04/06 12:17 PM Re: notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
aawww thanks hixxy, this is great ! =D

i gots just few questions:
i changed a bit these lines

1.

Code:
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 ?


Edited by raZOR (23/04/06 12:20 PM)
_________________________
IceCapped

Top
#147714 - 23/04/06 04:08 PM Re: notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
ok ignore #1 =)
#2 stays, if too hard, just say it =)
_________________________
IceCapped

Top
#147715 - 23/04/06 05:21 PM Re: notices and @window
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
What do you mean? You can already send and receive control codes through that window.

Top
#147716 - 23/04/06 05:59 PM Re: notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
oh, you're right.
then i screwed something up laugh

sorry for bad info smirk
and thanks very much again!


Edited by raZOR (23/04/06 06:06 PM)
_________________________
IceCapped

Top
#147717 - 23/04/06 09:56 PM Re: notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
oww i still have 1 question lol

why doesnt this work for it ?

Code:
menu @%win {
  dclick {
    Save Log: /savebuf 1-200 @%win $mircdirlogs\Misc\Notice. $+ $network $+ .Log
    -
    Close:/window -c @%win
  }
}


it doesnt show the menu


Edited by raZOR (23/04/06 09:57 PM)
_________________________
IceCapped

Top
#147718 - 23/04/06 11:22 PM Re: notices and @window
Bob57 Offline
Babel fish

Registered: 06/12/04
Posts: 66
Loc: Indiana, usa
“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 {“

Top
#147719 - 23/04/06 11:47 PM Re: notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
i really have no idea what you said.....


Edited by raZOR (24/04/06 12:41 AM)
_________________________
IceCapped

Top
#147720 - 24/04/06 02:01 AM Re: notices and @window
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Code:
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.

Top
#147721 - 24/04/06 02:27 AM Re: notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
hmm
odd...
works for other @windows.

i tried with rclick and sclick too it wont accept smirk
_________________________
IceCapped

Top
#147722 - 24/04/06 02:34 AM Re: notices and @window
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
You're mistaken. You can trigger code on double click, but you can't open popups on double click.

Top
#147723 - 24/04/06 02:39 AM Re: notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
so what you say, there is no way that any popup works in that window ?
_________________________
IceCapped

Top
#147724 - 24/04/06 02:42 AM Re: notices and @window
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
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.

Top
#147725 - 24/04/06 02:46 AM Re: notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone

menu @%win {
rclick {
Save Log: /savebuf 1-200 @%win $mircdirlogs\Misc\ $+ %win $+ .Log
-
Close:/window -c @%win
}
}




dont works


Edited by raZOR (24/04/06 02:47 AM)
_________________________
IceCapped

Top
#147726 - 24/04/06 02:50 AM Re: notices and @window
hixxy Offline
Hoopy frood

Registered: 06/09/05
Posts: 2876
Try the code I gave you.

Top
#147727 - 24/04/06 02:56 AM Re: notices and @window
raZOR Offline
Hoopy frood

Registered: 06/04/05
Posts: 1009
Loc: Green Hill Zone
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

Top