mIRC Home    About    Download    Register    News    Help

Print Thread
#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?

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

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.

Mpot #181643 28/07/07 02:48 AM
Joined: Dec 2002
Posts: 3,547
S
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
  }
}

Mpot #181646 28/07/07 03:25 AM
Joined: Jan 2004
Posts: 509
L
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.


Link Copied to Clipboard