mIRC Home    About    Download    Register    News    Help

Topic Options
#181636 - 28/07/07 02:25 AM on TEXT
Mpot Offline
Fjord artisan

Registered: 24/04/07
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?

Top
#181637 - 28/07/07 02:29 AM Re: on TEXT [Re: Mpot]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
/help On INPUT

Top
#181642 - 28/07/07 03:38 AM Re: on TEXT [Re: SladeKraven]
Mpot Offline
Fjord artisan

Registered: 24/04/07
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.

Top
#181643 - 28/07/07 03:48 AM Re: on TEXT [Re: Mpot]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
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
  }
}

Top
#181646 - 28/07/07 04:25 AM Re: on TEXT [Re: Mpot]
LostShadow Offline
Fjord artisan

Registered: 12/01/04
Posts: 509
Loc: Chicago, Illinois, U.S.A.
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.

Top