mIRC Home    About    Download    Register    News    Help

Topic Options
#41284 - 12/08/03 03:39 PM On ^text and on ^action
MrPeepers Offline
Vogon poet

Registered: 05/08/03
Posts: 136
I have a snippet
on ^*:ACTION:*:#:{
echo $chan ( $+ $asctime($ctime,HH:nn:ss tt) $+ ) ( $+ $iif($left($nick(#,$nick).pnick,1) isin $prefix,$ifmatch) $+ $nick $+ ) $1-
haltdef
}
If I change that to TEXT instead of action it works fine but as action it doesnt work I know you guys can help you never failed me before Id appreciate any help you can give me.
_________________________
In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.

Top
#41285 - 12/08/03 03:43 PM Re: On ^text and on ^action
Collective Offline
Planetary brain

Registered: 10/12/02
Posts: 3138
Loc: London, UK
When you say it doesn't work how do you mean? I tested it and it gave me "(15:41:11 pm) (@Nick) a" when Nick typed "/me a". Perhaps you have another on ^ACTION event that is conflicting with it?

Top
#41286 - 12/08/03 03:46 PM Re: On ^text and on ^action
MrPeepers Offline
Vogon poet

Registered: 05/08/03
Posts: 136
I mean it returns the default symbols on action when I do a /me and I have a clean mirc no other scripts
_________________________
In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.

Top
#41287 - 12/08/03 03:49 PM Re: On ^text and on ^action
Collective Offline
Planetary brain

Registered: 10/12/02
Posts: 3138
Loc: London, UK
on ACTION will not trigger when you do a /me, only when someone else does. You need to use on INPUT or /me and /describe aliases to change what it displays when you do that.

Top
#41288 - 12/08/03 04:08 PM Re: On ^text and on ^action
MrPeepers Offline
Vogon poet

Registered: 05/08/03
Posts: 136
Wow I had a dumb moment there thanks
_________________________
In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.

Top
#41289 - 13/08/03 01:12 AM Re: On ^text and on ^action
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
I kinda wish that at a "halting default text" level it will work on yourself. Such as

on ^*:TEXT:*:#: - will work for u
on *:TEXT:*:#: - wont

it would make themeing sooo much easier.
_________________________
-KingTomato

Top
#41290 - 13/08/03 02:51 AM Re: On ^text and on ^action
neophyte Offline
Fjord artisan

Registered: 12/04/03
Posts: 426
Loc: Australia
I just wish mIRC had a themestamp (kinda like timestamp but applicable to actions and incoming/outgoing text).

_________________________
--------
mIRC - fun for all the family (except grandma and grandpa)

Top
#41291 - 13/08/03 03:24 AM Re: On ^text and on ^action
Hammer Offline
Hoopy frood

Registered: 07/12/02
Posts: 1321
Loc: Georgia, USA
To KingTomato:

Problem One:
Using the caret (^) in an event tells mIRC to alter the processing order for that script.
  1. on ^*:EVENT:
  2. mIRC gets a shot at it
  3. on *:EVENT:
This is why you can halt default mIRC-generated text with step 1. mIRC has not yet had a go at whatever event it is, so you can haltdef (or halt) and step 2 is skipped, at least as far as outputting text is concerned. Omitting the caret means that your script gets processed in step 3 for that event.

Problem Two:
"Your" text is processed in on INPUT, not on TEXT. on INPUT only has steps 1 and 2 and doesn't require the 3rd step at all, nor does it require the caret. If you halt your on INPUT script, then mIRC only gets a passing glance at it in step 2.

To neophyte:

echo -t uses the $timestampfmt if either global timestamping is on or timestamping is on for that window; otherwise, it won't timestamp.
echo $timestamp .. or echo $themestamp work no matter what.

Both ways work for on ACTION/NOTICE/TEXT or any other event you echo in.
_________________________
DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Top
#41292 - 13/08/03 03:56 AM Re: On ^text and on ^action
neophyte Offline
Fjord artisan

Registered: 12/04/03
Posts: 426
Loc: Australia
Yeah, fair enough, however, I feel I should clarify what I meant.


Currently mIRC will output a text line (in a query, or channel window) like this:

[timestamp] <yournick> remote text
[timestamp] *<nick> action event

[timestamp] is optional.


You can change the format of the timestamp using this:
/timestamp -f [customformat]


By a "themestamp", I was indicating that this could be used to change the output of text within a channel and or query window.

example:

/themestamp -ecqf <customformat>
/actionstamp -ecqf <customformat>

the options are simple:
-e all windows (this is assumed, like global timestamping is, when /timestamp is used)

-q query window only

-c channel window only

-f format - not using this will return the themestamp/actionstamp to the default state.
_________________________
--------
mIRC - fun for all the family (except grandma and grandpa)

Top
#41293 - 13/08/03 07:49 AM Re: On ^text and on ^action
MrPeepers Offline
Vogon poet

Registered: 05/08/03
Posts: 136
on *:INPUT:#:{
if ($left($1-,1) != /) {
.msg # $1-
echo $chan ( $+ $asctime(HH:nn:ss tt) $+ ) ( $+ $iif($left($nick(#,$me).pnick,1) isin $prefix,$ifmatch) $+ $me $+ ) $1-
halt
}
}
I have that and Ive changed it around to action and describe yet nothing has change? Am i just screwing up or am I being blonde again
_________________________
In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.

Top
#41294 - 13/08/03 07:51 AM Re: On ^text and on ^action
MrPeepers Offline
Vogon poet

Registered: 05/08/03
Posts: 136
I tried the ^ instead of * that didnt work would i want to do ^*?
_________________________
In Virginia, chickens cannot lay eggs before 8:00 a.m., and must be done before 4:00 p.m.

Top
#41295 - 13/08/03 08:09 AM Re: On ^text and on ^action
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
you HAVE to use * or a numeric/alphanumeric level. ^ is not a level, its a prefix. you wouldn't do ON :text:*:#: would u?
_________________________
-KingTomato

Top