mIRC Home    About    Download    Register    News    Help

Print Thread
#41284 12/08/03 02:39 PM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
Joined: Aug 2003
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.
#41285 12/08/03 02:43 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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?

#41286 12/08/03 02:46 PM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
Joined: Aug 2003
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.
#41287 12/08/03 02:49 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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.

#41288 12/08/03 03:08 PM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
Joined: Aug 2003
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.
#41289 13/08/03 12:12 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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
#41290 13/08/03 01:51 AM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
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)
#41291 13/08/03 02:24 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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
#41292 13/08/03 02:56 AM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
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)
#41293 13/08/03 06:49 AM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
Joined: Aug 2003
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.
#41294 13/08/03 06:51 AM
Joined: Aug 2003
Posts: 136
Vogon poet
OP Offline
Vogon poet
Joined: Aug 2003
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.
#41295 13/08/03 07:09 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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

Link Copied to Clipboard