mIRC Homepage
Posted By: raZOR how to haltdef action? - 09/12/06 07:06 PM
i am unable to make custom themed action for
/me event

i have this:

ON ^1:INPUT:#:{ if ($1 == /me) && ($2- != $null) { .echo -a THIS_IS_TEST_TEXT $2- | halt } }

but mirc just ignores this and forces its display.

so is this on purpose done or what?
Posted By: Bob57 Re: how to haltdef action? - 09/12/06 07:32 PM
See: /help Halting default text
Remove the ^ from your script and it should work.
Posted By: Riamus2 Re: how to haltdef action? - 09/12/06 08:29 PM
You can't use ^ to halt input text. I really wish this was changed. Anyhow, I managed to halt input text using &, but that shouldn't work... oh well.
Posted By: raZOR Re: how to haltdef action? - 09/12/06 08:39 PM
so i cant change this thing with /me in any way?
Posted By: Bob57 Re: how to haltdef action? - 09/12/06 11:07 PM
Code:
ON 1:INPUT:#:{
  if (($1 == /me) && ($2)) {
    echo -a THIS_IS_TEST_TEXT $2-
    halt
} }


Removing the ^ from your script makes it work.
Posted By: DaveC Re: how to haltdef action? - 09/12/06 11:11 PM
Originally Posted By: Riamus2
You can't use ^ to halt input text. I really wish this was changed.


It is already a ^ event be default.

ON *:INPUT:#:{ echo -a this is a ^ event already and you just type in $1- }

What ever reason you have been experencing problems using a halt(def) in a on input, is likely releated to another script.
Posted By: Riamus2 Re: how to haltdef action? - 10/12/06 12:53 AM
Hm... seems you're right. It doesn't want to halt without using the &, but only if loaded in Invision. Hmm... frown
Posted By: raZOR Re: how to haltdef action? - 10/12/06 02:09 AM
Originally Posted By: Bob57
Removing the ^ from your script makes it work.


you was right all the time...
and i was stupid...

thanks ^_^

now additional question.
removing ^ fixes input echo in channel
but for query it messes up things...

ON 1:INPUT:?:{ if ($1 == /me) && ($2- != $null) { .echo -a something new | .describe $query($nick) $2- | halt } }


"describe $query($nick) $2-" echoes twice with "* /describe: insufficient parameters"

"describe $nick $2-" opens new window with my name and echoes it there instead of another users query window

so what should i do to make this work for query ?

Posted By: Riamus2 Re: how to haltdef action? - 10/12/06 05:47 AM
Use $active . $nick is you because it is an input event and you are the nick typing the input.
Posted By: raZOR Re: how to haltdef action? - 10/12/06 06:06 AM
thanks ^^
it works nice now.
© mIRC Discussion Forums