mIRC Home    About    Download    Register    News    Help

Print Thread
#118471 25/04/05 05:01 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Is there a simple way thru the /play command to play from X line to Y line? I hadn't noticed that as a /play option?


Those who fail history are doomed to repeat it
#118472 25/04/05 05:04 PM
Joined: Apr 2005
Posts: 26
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Apr 2005
Posts: 26
/play -thelp1 help.txt

will play all the text under a ini file topic

In the help.txt file you would have:

[help1]
line1
line2
line3

[help2]

might be usefull for ya i dunno

#118473 25/04/05 05:20 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
There does not seem to be a specific option to do this. Unless someone knows of a way that isn't listed in the HLP, your best option will probably be to $read the range of lines into a new file, play it, then /remove that new file. I'm not sure exactly what you are doing, but it sounds like that may be a simple way to handle it.


Invision Support
#Invision on irc.irchighway.net
#118474 25/04/05 08:45 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Indeed there isn't such an option, but with the use of filter, this is a fairly easy task.

Here's an example:

//filter -ffcr 5-9 versions.txt tmp | play -se tmp | .remove tmp

That would play lines 5-9 from the versions.txt (if you have that in your main mIRC folder) to the status window.

The filter flags are as follows:

f = input is a file
f = output is a file
c = clear outfile before outputting data to it (just in case if the file would exist)
r = specify a range m-n of lines

The temp file is immediately removed, even during the playing of the output. That's because the contents are first loaded into memory when using /play.

Greets


Gone.
#118475 25/04/05 09:38 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Yes I saw that - and thinking more onit, this MAY do what I want (writing a script for somebody else). It sure would be nice tho if we could just specify line numbers to read smile


Fiber - interesting idea. I might give that a shot as well. Thanks for the other option

Last edited by landonsandor; 25/04/05 09:39 PM.

Those who fail history are doomed to repeat it
#118476 26/04/05 04:46 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
if the contents can be set in catagories then you could use topic play
Code:
  
[topic1]
line of info
another line
[topic2]
this is topic #2
information is as follows
and so on
[]

then /play -ttopic1 test.txt (or whatever you have named the text)


Link Copied to Clipboard