mIRC Home    About    Download    Register    News    Help

Print Thread
How to auto reply Queries? #91793 26/07/04 06:15 AM
Joined: Apr 2004
Posts: 5
M
mark1221 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2004
Posts: 5
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

Re: How to auto reply Queries? #91794 26/07/04 06:20 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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.

Re: How to auto reply Queries? #91795 26/07/04 06:22 AM
Joined: Apr 2004
Posts: 5
M
mark1221 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2004
Posts: 5
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

Re: How to auto reply Queries? #91796 26/07/04 06:24 AM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
It only checks the first line of your conversation. Btw, the code goes to the remote (Alt+R).

Re: How to auto reply Queries? #91797 26/07/04 06:47 AM
Joined: Apr 2004
Posts: 5
M
mark1221 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2004
Posts: 5
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

Last edited by mark1221; 26/07/04 07:13 AM.
Re: How to auto reply Queries? #91798 26/07/04 08:35 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
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.

Re: How to auto reply Queries? #91799 27/07/04 02:18 AM
Joined: Jul 2004
Posts: 6
T
tristanofa Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Jul 2004
Posts: 6
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.

Re: How to auto reply Queries? #91800 27/07/04 05:23 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
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


Gone.
Re: How to auto reply Queries? #91801 02/08/04 05:31 PM
Joined: Apr 2004
Posts: 5
M
mark1221 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Apr 2004
Posts: 5
I don't need it to close, just reply and stay open so i can see teh message :\