mIRC Homepage
Posted By: Mpot on TEXT - 28/07/07 01:25 AM
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?
Posted By: SladeKraven Re: on TEXT - 28/07/07 01:29 AM
/help On INPUT
Posted By: Mpot Re: on TEXT - 28/07/07 02:38 AM
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.
Posted By: SladeKraven Re: on TEXT - 28/07/07 02:48 AM
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
  }
}
Posted By: LostShadow Re: on TEXT - 28/07/07 03:25 AM
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.
© mIRC Discussion Forums