mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 106
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Feb 2003
Posts: 106
on 1:TEXT:*:#: {
do stuff
}

on 1:TEXT:*:#: {
do different stuff
}

In the above example, why doesn't the 2nd on TEXT event trigger ?

regards, Mark


-
Just because it never happened doesn't mean it isn't true.
Joined: Feb 2003
Posts: 31
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Feb 2003
Posts: 31
what commands do you have for them? are those the alias or did u just use that has a sample? If your not working with groups you can use on *:TEXT:*:#: so that will trigger on any text in a channel. Im not for sure what all u have going on with your commands but if your grouping and if that 2nd one was for a differnt group then u need to use group#:text:*:#

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
This Thread explains why this is so...


-KingTomato
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
There really isn't a need to have the exact same event twice in your script. Combine all commands under one eventline.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Feb 2003
Posts: 106
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Feb 2003
Posts: 106
I guess your response tells me that there is a reason that mirc does not like two on text events !!



i understand that i can combine the two events into a single event and use if-then statements to execute the appropriate command, but why can;t i use separate on text events?
smile


-
Just because it never happened doesn't mean it isn't true.
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
You can, but they must be in different files. mIRC always executes the first matching event in each file, then moves on to the next file.

Joined: Oct 2003
Posts: 9
H
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
H
Joined: Oct 2003
Posts: 9
does your first event have a "halt" in it ? if so that's probably the problem. once it hits that halt it won't look for any more events. it just stops dead at that point.

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
That's not right.

mIRC triggers one ^ event and one non ^ event per file. Halting only makes a difference to the triggering event and those with the & prefix.

Joined: Feb 2003
Posts: 106
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Feb 2003
Posts: 106
Thanks for the responses ..
smile i think i now understand


-
Just because it never happened doesn't mean it isn't true.

Link Copied to Clipboard