mIRC Home    About    Download    Register    News    Help

Print Thread
P
pepsi_cola40
pepsi_cola40
P
Hello,

I'm new to mIRC scripting, so I was wondering: what's the use of period (.) in front of a function name versus backslash (/). I ask this because I always use backslash, but sometimes people give me code with periods, and it's not explained in the help files. For example, I was given the following:

Code:
on *:TEXT:trigger:#channel:.notice $nick You typed trigger.

Well, when I use this code, nothing appears in my status window. If however I replace the period with a backslash, I see in the status window:

Code:
-> -nick- You typed trigger.

Does this mean the first one isn't working? Or maybe it's designed not to appear in the status window?

It's probably a very stupid question. Thanks.

D
Danthemandoo
Danthemandoo
D
putting a . infront of something, eg .msg $chan blah makes it not show to you. It will still msg the server, but you will be unable to see it.

Useful if you PM people lots of info from a script, because you can do .msg $nick and it won't show up in the status window.

[Edit] Just to clarify, both of those work fine, only you can't see the 1st one, but the person that typed the trigger could.

Last edited by Danthemandoo; 16/06/04 03:18 PM.
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
As Danthemandoo said, the . prefix simply means that anything that mIRC would normally display locally (to you) from that command will not be shown. It isn't a case of being . vs. / however, you can use /.command if you want and it will work just fine. The / is only necessary when you type commands from the editbox in a window, inside scripts it's completely optional.

P
pepsi_cola40
pepsi_cola40
P
OK. Thank you both. It was quite clear. grin


Link Copied to Clipboard