mIRC Home    About    Download    Register    News    Help

Print Thread
#167445 24/12/06 02:03 PM
Joined: Oct 2006
Posts: 166
B
b1ink Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
I'm not sure if that procedure has to be like that or it's just another bug!

Code:
on *:input:*:if ($1 = 1st) msg $active 2nd


<blink> 2nd
<blink> 1st


shows 2nd before 1st. That was happening long time ago.

also if I specified a timer with 0 duration to trigger it will work!

Code:
on *:input:*:if ($1 = 1st) .timer 1 0 msg $active 2nd


<blink> 1st
<blink> 2nd


Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
Its supposed to be like that to allow halting the input. smile

Last edited by Mpdreamz; 24/12/06 02:13 PM.
Joined: Oct 2006
Posts: 166
B
b1ink Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
thanks for your replay.

Joined: Oct 2006
Posts: 166
B
b1ink Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
but I'm not trying to halt the input. but I just want to show my input before the msg trigger.

Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
You gotta see it as this execution stack:

<enter key>
on input event
draw display in channel

So if you want something to display after the original input. you gotta halt mIRC and put your message after of the original one.
Code:
on *:input:#: { 
  if ($1 == 1st) { 
    say $1-
    say something after original message.
    halt
  }
}

Last edited by Mpdreamz; 24/12/06 03:07 PM.
Joined: Oct 2006
Posts: 166
B
b1ink Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
I use that so often. but I just thought to shorten the code. thanks anyway.

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Heh. I was commenting on this a week or two ago. smile

Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
A new event might be handy that catches when new lines are "drawn" into a window wheter that is status,channel,pm or custum.

Joined: Oct 2006
Posts: 166
B
b1ink Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
How is that exactly?

Joined: Oct 2003
Posts: 284
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 284
Code:
AFTER *:TEXT:*:#: { .... }


smile

Sais #167532 25/12/06 11:23 PM
Joined: Oct 2003
Posts: 214
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
for this, you can use "/signal afterinput <various infos>" without the -n switch, then the signal event "afterinput" will react after the on input event, else it will act like an alias called from the on input or so wink


one step closer to world domination

Link Copied to Clipboard