mIRC Home    About    Download    Register    News    Help

Print Thread
#211461 16/04/09 11:38 PM
Joined: Apr 2009
Posts: 8
A
athlom Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Apr 2009
Posts: 8
Okay, so I found an AutoReply script I'm intrested in integrating with my mIRC:

on *:OPEN:?:*: {/msg $nick I currently have $query(0) querie(s) open and will try to get to you as soon as I can.

How do I make it so this script will automatically enter the text and make a new text line so it reads in the chat window as follows:

[15:04]$nick I currently have $query(0) querie(s) open and will try to get to you as soon as I can.
[15:04]$nick If it's important, you can Xfire me at: athlom

Also, where do I put this scriptin order for it to work properly? (New to scipts)

Last edited by athlom; 16/04/09 11:40 PM.
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Code:
on *:OPEN:?:*: {
  msg $nick <your first line/message here>
  msg $nick <your second line/message here>
}

The first line is your event description: "if a new query window is opened with whatever message...". The curly brackets enclose all the commands you want to execute if this event occurs: "... send a message to the nick, and send another message to the nick".
Note that this event will only trigger if the query is opened remotely, that is: you received a private message and thus the query window was created by mIRC.

Script load order will only matter if you have other (e.g. competing) "on open"-events in other scripts loaded; if you put this script at the top of the load order, it will fire in *any* case.

Joined: Apr 2009
Posts: 8
A
athlom Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Apr 2009
Posts: 8
So in lamer terms where do I place the script?
In a certain folder as it's own Configuration Setting;
Or can it be placed in the Options-Perform Menu of the program.

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
"Perform" is exclusively for commands to be executed "on connect" (in the moment you connect to an IRC network).

The code contains an event definition and therefore has to be a "remote script":
1) Open the scripts editor (Alt-R) and select the tab "remote".
2) Create a new, blank file (menu file: new), and paste the code to the file.
3) Save the file (e.g. menu file: save as: queryautoreply.mrc)
...and you're done smile


Link Copied to Clipboard