Skip to content
MSN

writes and plays problems

A TG007 community discussion started by DreaM.

Discussion 11 posts
Page 1 of 1
Open
Topic #874 · 11 published posts · 1,192 views

hi all biggrin.gif, my question is a bit hard but I hope finding help here

 

let's say that I have a text file and it contains:

 

[Dream]
1
2
3
[Dream2]
1
2
3
[Dream3]
1
2
3

Now what I want is:

 

how to force my bot to type (write or play commands) in the specified topic such as adding 4 to Dream2 topic so it will be:

[Dream2]

1

2

3

4

 

how to force the bot to delete the topic I specify such as Dream2 and its list 1 2 3?

this is an ini file im guessing by the setup, so it wud be...

 

/writeini (filename) Dream2 4

 

--SpAzZ--

thank you spaz yes that is true but the hard part is how to delete the specified topic and its list?

go to mirc and type /help /remini

My code does NOT have bugs. It just develops random features.

ozzy I really respect you so much biggrin.gif and I MEAN IT and THANK YOU SO MUCH MAN fixed.gif

i am trying not to tell you exactly how to do it , but to point you in right direction

If you find you dont know something , just have a look in mirc help file biggrin.gif

My code does NOT have bugs. It just develops random features.

yes I got how to do it biggrin.gif and thank you but I have one more question if it is possible or no and the question is:

 

can I let the script type anything but for all topics ?

 

/writeini (filename) Dream2 4 will write only in Dream2 section but what if I want it to write in all sections and sure if I don't know the name of all sections ?

alias iniadd {
 var %file = $shortfn(<filename>)
 var %add = <what you want to add to all groups>
 var %count = 1
 while (%count <= $lines(%file)) {
   if ([*] iswm $read(%file,%count)) writeini %file $remove($read(%file,%count),[,]) %add
   inc %count
 }
}

try that...

bfush.PNG

vexation thank you so much but it has an error:

 

[Dream1]

HERE

1

2

3

[Dream2]

HERE

1

2

3

 

 

the alias types the text after the section directly before number 1 but I want it to be the latest line in the section after number 3 such as:

 

[Dream1]

1

2

3

HERE

[Dream2]

1

2

3

HERE

 

 

Any help please? biggrin.gifhelp.gif

 

oh. well i dont have time for that pizza.gif

bfush.PNG

sad.gif ok

 

 

Edit: thank you so much fixed.gif

Edited Jul 12, 2004 10:19 PM by DreaM