mIRC Home    About    Download    Register    News    Help

Print Thread
on TEXT #181636 28/07/07 01:25 AM
Joined: Apr 2007
Posts: 228
M
Mpot Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
When you're using an on TEXT thing, it'll only work if someone else triggers it. How can you make it to where it'll recognize your text aswell?

Re: on TEXT [Re: Mpot] #181637 28/07/07 01:29 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
/help On INPUT

Re: on TEXT [Re: SladeKraven] #181642 28/07/07 02:38 AM
Joined: Apr 2007
Posts: 228
M
Mpot Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Apr 2007
Posts: 228
I was getting at something like

on 1:TEXT:cookie:#: describe $chan hands you a cookie

But to where you could trigger it along with anyone else.

Re: on TEXT [Re: Mpot] #181643 28/07/07 02:48 AM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I directed you to the help file

on INPUT

The on INPUT event triggers when you enter text in an editbox and press enter.

Format: on <level>:INPUT:<*#?=!@>:<commands>
Example: on 1:INPUT:#mIRC:/echo You entered the text " $1- " in the #mIRC window



Examples

Code:
on 1:INPUT:#:/echo I just mumbled " $1- " in a channel


Code:
on 1:INPUT:#: {
  if (/* iswm $1) return
  if (cookie == $1) {
    describe $chan takes a cookie out of the jar.
    halt
  }
}

Re: on TEXT [Re: Mpot] #181646 28/07/07 03:25 AM
Joined: Jan 2004
Posts: 509
L
LostShadow Offline
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Originally Posted By: Mpot
I was getting at something like

on 1:TEXT:cookie:#: describe $chan hands you a cookie

But to where you could trigger it along with anyone else.


False question - it does trigger for "anyone" else. Everyone else, but you. As the code doesn't specify nick, it triggers for, anyone, except yourself.