mIRC Home    About    Download    Register    News    Help

Print Thread
#261295 28/08/17 10:17 PM
Joined: Aug 2003
Posts: 319
P
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
P
Joined: Aug 2003
Posts: 319
I am having a problem with a script and was wondering whether the value of $event varies by locale?

Protopia #261296 29/08/17 12:42 AM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
$event is filled only during the ON EVENT events, to tell what kind of event (if any) the code is executing during.

on *:TEXT:*:#:{ echo -s this code is executing during the $event event }
on *:ACTION:*:#:{ echo -s this code is executing during the $event event }

Even if the ON EVENT calls another alias, the code within that alias is also given the $event filled.

On the other hand, something executing from the command-line or from a timer sees $event being $null.

maroon #261297 29/08/17 09:53 AM
Joined: Aug 2003
Posts: 319
P
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
P
Joined: Aug 2003
Posts: 319
Thanks for the reply, even though that wasn't what I was asking.

However I have worked out what the problem was - and it was not user's locale.

Protopia #261298 29/08/17 11:23 AM
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
What do you mean by user's locale then?


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #261299 29/08/17 11:27 AM
Joined: Aug 2003
Posts: 319
P
Pan-dimensional mouse
OP Offline
Pan-dimensional mouse
P
Joined: Aug 2003
Posts: 319
Operating system language, time settings etc.

I was wondering whether $event was e.g. french for "text" if in france.

Clutching at straws - but it turned out to be an event I hadn't coded for rather than that.

Protopia #261300 29/08/17 01:32 PM
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
Alright, far fetched indeed grin


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard