mIRC Homepage
Posted By: mark1221 How to auto reply Queries? - 26/07/04 06:15 AM
Alot of people PM me asking to idle their channels and etc...
So i need something so i can auto reply\PM back with a text saying something like
"I do not idle public channels, Write your message directly or get ignored..." blah blah...

How can i do it?

thanks laugh
Posted By: Online Re: How to auto reply Queries? - 26/07/04 06:20 AM
This script will auto-reply to every new PM that contains the # char:
  • On ^*:open:?:*#*:{
    haltdef
    .msg $nick I do not idle on public channels, Write your message directly or get ignored...
    }
In addition, /haltdef will take care of auto-closing the message window.
Posted By: mark1221 Re: How to auto reply Queries? - 26/07/04 06:22 AM
What does it do?
Everytime someone PM's me with a "#" it replies with this message, or it replies to every PM with this message, and i dont want to close it afterwards.

Sorry for being such a newbie and thanks for helping me laugh
Posted By: Online Re: How to auto reply Queries? - 26/07/04 06:24 AM
It only checks the first line of your conversation. Btw, the code goes to the remote (Alt+R).
Posted By: mark1221 Re: How to auto reply Queries? - 26/07/04 06:47 AM
I still don't get it -_- sorry

i press alt+r paste that code at the remote tab,
and it doesn't do anything, i don't auto reply and nothing...

and how do i make it reply not only to ad messages. but to every PM.

I'm using NNscript if it matters
Posted By: Online Re: How to auto reply Queries? - 26/07/04 08:35 PM
It works here with NNScript. Make sure you paste the code into the script file "ownstuff.mrc" (see the View menu in the Alt+R dialog)

You don't see yourself replying because the message window does not appear at all - it's halted immediately.

If you want to auto reply to every PM and keep the window open, use this code instead:
  • On *:open:?:*: msg $nick Hello, this is my auto reply.
Posted By: tristanofa Re: How to auto reply Queries? - 27/07/04 02:18 AM
An easier way of doing the same thing:

on *:TEXT:*:?: {
.msg $nick Please do not PM me.
.window -c $nick
}

If you have a decent computer, you won't even see the PM window.
Posted By: FiberOPtics Re: How to auto reply Queries? - 27/07/04 05:23 PM
Hi,

in the original example of Online, this is the case.

He is preventing from letting the query open, because he uses haltdef (or halt) along with the on OPEN event and ^ prefix. With this code it doesn't matter whether you have a fast or slow PC, the query is stopped from opening.

Your code lets the query open, and then closes it again right away. Can't really say it's an easier way, or the same thing.

Greets
Posted By: mark1221 Re: How to auto reply Queries? - 02/08/04 05:31 PM
I don't need it to close, just reply and stay open so i can see teh message :\
© mIRC Discussion Forums