mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2007
Posts: 6
G
Griff67 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Jun 2007
Posts: 6
I'm still reading through the programming guide, but I am wondering if anyone knows of a way to post the same information (multi-line) to multiple channels at the same time.

Example: I would need to post a 5-10 line status report to 10 channels. Currently, I write the status report in Work, copy it, then paste it individually into each of the 10 channels. I would like to be able to past it once, and have a script/bot past it into the other channels.

My problem is that while the first line always has the same starting text, the following lines change. Should I copy the text without line breaks and CR to make one giant line?

Thanks for any suggestions.

Joined: May 2005
Posts: 54
M
Babel fish
Offline
Babel fish
M
Joined: May 2005
Posts: 54
Try with /amsg. I don't know if it works.
Exemple:
/amsg "here paste your text"


/server IRC.RomaniaIRC.ORG
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
You could use the /play command here with the -b switch to 'play' the clipboard. See /help /play

Copy the text to the clipboard, then type /mpaste. It will be posted to the channels, one at a time, at one line per second, so 10 lines to 10 channels will take around 100 seconds.
(Note that you can still chat normally while this is happening)
Code:
alias mpaste {
  ; make a list of channels
  tokenize 32 #chan1 #chan2 #chan3 #chan4 #chan5 #add #chans #here
  ; /play the clipboard to each channel in the list
  .play -b $*
}


Link Copied to Clipboard