mIRC Home    About    Download    Register    News    Help

Print Thread
#131079 25/09/05 01:33 AM
Joined: Sep 2005
Posts: 44
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Sep 2005
Posts: 44
if i make a .ini file and say i type this

[nice]
cheeseburger
hotdog
pizza

[bad]
onions
mayo
veg

what are the [ ?? ] ? r they a variable like %bad and %good or what?

#131080 25/09/05 01:52 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
It gives a name to the section. Any items under each [ ] are in that section.

You can use the name for using the search or wildcard match, it tells it to look in a specific section.

BTW, I think you ask too much questions maybe you should read the help file.

Last edited by schaefer31; 25/09/05 01:53 AM.
#131081 25/09/05 01:52 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
as an INI that wont return anything

[section]
item = value

so maybe in food.ini
[good]
1 = hamburger
2 = pizza
3 = beets preserved in old wine vinagar
[bad]
onions = smelly
sourkraute = rash
pumpernickle = devil farts

the item and value can be anything, but you have to have both

as a text that you could play to a channel what you had will work

in food.txt

[good]
hamburger
hotdog
pizza
[bad]
onions
mayo
devil fart bread
[end]
if you use /play -tgood food.txt it would play to that active channel/query/dcc-chat window the lines under the topic "good" til mIRC saw the topic [bad] where playback would stop.

#131082 25/09/05 02:05 AM
Joined: Sep 2005
Posts: 44
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Sep 2005
Posts: 44
thanks alot.

/play -tgood food.txt ... cud i add a line number on so it could only show.. 1 piece of food?

this may sound really dumb and make no sence but would..
something like
$gettok $read(food.txt,[good],2)
what would that do?

and yeh i do ask alot of questions, i have read the help file but i still dont understand certain parts.

Last edited by reece1312; 25/09/05 02:08 AM.
#131083 25/09/05 02:23 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
no point in using the [topic] format to play one line
Code:
//var %food = $?="Enter food word $crlf such as mayo" | msg $active $read(food.txt,s,%food)

in food.txt
mayo mayo is bad
hamburger hamburger is good
pizza pizza is good
onion onion is bad
steak steak is very good
bread pumpernickel gives me the devils fart


or

//var %food = * $+ $?="Enter food word $crlf such as mayo" $+ *  | msg #reece $read(food.txt,w,%food)

in food.txt

mayo is bad
I love hamburger
only pepperoni pizza 
onion is bad
steak is very good
breads like pumpernickel gives me the devils fart



//echo $read(info.txt, s, mirc)

Scans the file info.txt for a line beginning with the word mirc and returns the text following the match value.

//echo $read(help.txt, w, *help*)
Scans the file help.txt for a line matching the wildcard text *help*.
/help $read
/help /play
/help contents

#131084 25/09/05 02:37 AM
Joined: Sep 2005
Posts: 44
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Sep 2005
Posts: 44
do i just put

//var %food = $?="Enter food word $crlf such as mayo" | msg $active $read(food.txt,s,%food)in food.txtmayo mayo is badhamburger hamburger is goodpizza pizza is goodonion onion is badsteak steak is very goodbread pumpernickel gives me the devils fartor//var %food = * $+ $?="Enter food word $crlf such as mayo" $+ * | msg #reece $read(food.txt,w,%food)in food.txtmayo is badI love hamburgeronly pepperoni pizza onion is badsteak is very goodbreads like pumpernickel gives me the devils fart

in remote? cuz i did and dont know how to make it work? lol

#131085 25/09/05 05:45 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
try reading what I wrote

also try reading the help files I listed
/help contents
/help $read
/help /play


Link Copied to Clipboard