mIRC Home    About    Download    Register    News    Help

Print Thread
#165457 26/11/06 02:36 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Right, here is my problem.

Code:
on ^*:chat:*:{
  echo -ci2nt normal =$nick ( $+ $cnick($nick).color $+ $nick $+ ) $1-
  window -g1 =$nick
  haltdef
}
on *:input:*:{
  if (($window($active).type == channel) || ($window($active).type == chat) || ($window($active).type == query)) {
    if ((/* !iswm $1) && ($+($readini($mircini, text, commandchar),*) !iswm $1) || ($ctrlenter)) {
      echo -aci2nt own $_style( $+ $iif($window($active).type == channel,$iif($nick($active,$me),$nick($active,$me).color,$cnick($me).color),$cnick($me).color) $+ $iif($window($active).type == channel,$pnick($active,$me),$me) $+ ) $1-
      !.msg $active $1-
      halt
    }
  }
}
alias -l _style { return $iif($gettok($readini($mircini, options, n0),23,44) == 1,( $+ $1- $+ ),->) }


If you DCC yourself twice then chat in one of the windows, it'll send to the other one.

Quote:

[14:17:00] (Jigsy) !
[14:17:03] (Jigsy) 24


But if you try in the other window it'll echo twice.

Quote:

[14:17:03] (Jigsy) 24
[14:17:09] (Jigsy) 25
[14:17:09] (Jigsy) 25


It works fine wif DCC chats wif other users, but since I'm one of those "perfectionist" types, I want it to be correct. smirk

Any help?

*edit*

The same problem occurs if you open multiple chat windows to yourself.

They all echo back to one single point.

Last edited by Jigsy; 26/11/06 02:45 PM.

What do you do at the end of the world? Are you busy? Will you save us?
Joined: Feb 2006
Posts: 164
V
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
In the on chat event i echo it like this

Code:
   echo =$nick $($remove(=$nick,=)) $+ : $1- 


echo -aci2nt own $_style( $+ $iif($window($active).type == channel,$iif($nick($active,$me),$nick($active,$me).color,$cnick($me).color),$cnick($me).color) $+ $iif($window($active).type == channel,$pnick($active,$me),$me) $+ ) $1-

own?
Is there anything missing from that? I tried it on a blank mIRC and none of it works.

Last edited by vexed; 26/11/06 02:59 PM.
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
The own text colour.

Code:
alias pnick {
  if (($1) && ($2)) {
    if ($gettok($readini($mircini, options, n2),30,44) == 1) {
      return $iif($left($nick($1,$2).pnick,1) != $left($2,1),$+($left($nick($1,$2).pnick,1),$2),$2)
    }
    else { return $2 }
  }
}


Forgot about that.


*edit*

This could be a mIRC bug? (Unless I'm wrong.)

Because if you remove " || ($window($active).type == chat)"

Then you get your default messages sent:

Quote:

[15:10:13] <Jigsy> !


But they go to the correct windows.

[/quote]
[15:10:13] (Jigsy) !
[/quote]

Last edited by Jigsy; 26/11/06 03:11 PM.

What do you do at the end of the world? Are you busy? Will you save us?
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
This lines a bit dodgy for a start, and likely didnt help you in diagnosing your problem
if ((/* !iswm $1) && ($+($readini($mircini, text, commandchar),*) !iswm $1) || ($ctrlenter)) {
... $1 cant be a wild match for both /* and the commandchar if its been changed, and you are saying do the change if CTRLENTER is pressed!
try...
if ((!$ctrlenter) && ((/* !iswm $1) || ($+($readini($mircini, text, commandchar),*) !iswm $1))) {
^ do the !$ctrlenter check first as it takes the least resources, so if it fails then the rest need not be done

If you make this correction, then type something in any one of the 4 chat windows and press ctrl-enter you see it appear as normal in that window, and highlighted by ON CHAT in the correct window.
FROM that result it can be diagnosed your problem exists in the ON INPUT routine

Quote:
!.msg $active $1-


And this is your problem, (solution is yet to come to me sorry)

if i do that and have created 2 dcc connections (even one does it using the second chat window) then in the ON INPUT im doing
.msg =DaveC blah blah blah
that is going to message the first dcc chat to davec (being the second dcc chat window of dcc chat connection1), from any of the 4 dcc chat windows, and thus the ON CHAT event well trip off for the said dcc chat incomming text.

err not sure if that is legable, example....
/dcc chat DaveC

dcc chat outbound window created
dcc chat inbound window created

/dcc chat DaveC

dcc chat outbound window created
dcc chat inbound window created

test typed in chat window1
.msg =DaveC test typed in chat window1

test typed in chat window2
.msg =DaveC test typed in chat window2

test typed in chat window3
.msg =DaveC test typed in chat window3

test typed in chat window4
.msg =DaveC test typed in chat window4

ON CHAT trips for window blue every time, becuase thats who your sending to

There is a method of forcingt he text out the right dcc chat window, but thats using /EDITBOX and that incurs the text displaying as per normal in the outgoing dcc chat window, sicne your in the dcc chat windows ON INPUT already, you might as well just not display the highlight, and not halt.

Aka unless you find a method of sending to the correct =DaveC (being theres 4 of them) i dont know if u can fix it


Link Copied to Clipboard