Top

INI editor

+ 0 likes
Please Register to submit score.
Average Score  3.8
Scores Submitted  6
Date Added  Sep 17, 2007
Last Updated  Sep 19, 2007
Tags  dialog  editor  file  ini  text 

Introduction

A dialog that allows you to completely handle ini files. You have the option to; create and remove ini files, add topics, add and remove items, and edit item data. Any comments, suggestions, or feedback is extremely appreciated.

** usage **

* adding/removing an item *

Just use the +/- buttons and from there it is easy. Make sure you have an item the list in the topics box selected.

* adding topics *

Click the '+' button under the topics box and there you are

* creating a new ini file *

Just click the '+' button next to the combo list. There is no need to specify a .ini at the end of the name.

* removing a file *

Click the '-' button next to the combo list and make sure to have a selected item in the list. Otherwise nothing will happen.

* editing item data *

Just use the edit box next to 'table data' and it will edit the text input. If there is no text in the editbox, it will do nothing.







Grab the Code

Comments

  (32)  RSS
mountaindew
Comments: 1,523
 
mIRC Snippet:  INI editor
Posted on Sep 17, 2007 9:19 pm
good job on it, one suggestion

Code:

menu * {
  INI Editor:ini.dialog
}
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 17, 2007 9:22 pm
Thanks mountaindew for your feedback. I made it optional to access the dialog through the menubar.
Lindrian
Comments: 728
 
mIRC Snippet:  INI editor
Posted on Sep 18, 2007 5:41 am
menu * are SO annoying... Don\'t use them.
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 18, 2007 3:38 pm
Nice idea ... but did you test it wel? No you didn\'t.
Code:

on *:dialog:initable:init:0:{
  var %c = $findfile($mircdir,*.ini,0,did -a $dname 7 $nopath($1-))
  return %c
}

This doesn\'t fill the filelist with the ini.files. %c will only contain the number of ini files that were found. And what is that return %c doing there?

Code:

alias ini.dialog { if (!$dialog(initable)) { dialog -m initable initable }

There is a } missing here with the result that the menu ísn\'t shown in the menubar.

I\'ll give it a \"1\" for the time you spend on it ...
bweh
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 18, 2007 3:40 pm
I have given it 2 two points, because obviously it wasn\'t ripped...
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 18, 2007 3:52 pm
This has been tested with and without other scripts on my mIRC and a new one. Everything worked as expected with no errors. Everyone else seemed to have no errors so I assume it is just you with the problem. I remove the return %c and added the extra bracket. Thank you noMen for pointing that out.
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 18, 2007 4:25 pm
If it is only me with the problem why did you add a bracket? The code you gave originally doesn\'t show the popup menu! It was NOT tested!
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 18, 2007 4:32 pm
Dude the popup menu was added after the comment moundtaindew made. The bottom line of the code was the alias. I made on mistake with the bracket and didn\'t realize that because I didn\'t feel like opening up my mIRC when I could have easily written the code as I submitted it.
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 18, 2007 4:33 pm
Ugh I am sorry, I meant mountaindew.
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 19, 2007 11:53 am
After you have added something you should test it ... dude. Now get the combo list working ($dname 7).
xDaeMoN
Comments: 696
 
mIRC Snippet:  INI editor
Posted on Sep 19, 2007 12:47 pm
The combo list works fine. This is lacking features if you call this an editor.

1. you can add new items/data but not able to edit them
2. add an option to create new ini files
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 19, 2007 3:25 pm
The combo list stays empty when I call the dialog. I can only enter a letter and after that the ini files are shown in the table list. The idea is good, but it needs some rework.
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 19, 2007 3:59 pm
xDaeMoN, you should be able to edit things. when you dclick the item it displays it in the editbox, allowing you to edit it all you want. as long as you have something in the editbox it will be fine. However, if there is no text in the editbox then nothing will happen. On the contrary, I am adding options to remove and create new ini files so that is on the way. =)

noMen, I have no clue why you are receiving that error. Due to it working for everyone else, I would have to say everything is in check. What would you like to see in a future update?
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 19, 2007 4:57 pm
**updates**

added the option to add an ini file and remove an ini file
added the option to add a topic
edited dialog size
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 3:54 am
I\'ll help you ... dude, change:
Code:

combo 7, 5 118 82 13, drop

into:
Code:

combo 7, 5 118 82 100, drop

Only then I see the files when I click the down arrow of the combo-box.
Did anybody test this seriously??? xDaemon too????
xDaeMoN
Comments: 696
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 11:47 am
@ noMen, yep I didn\'t have a problem on the combo box. I was able to see all the INI files in the drop down menu.
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 2:12 pm
@xDaemon: you must have very good eyes to see all those files in a blue selection bar with a height of about one pixel . Or you don\'t have any ini files at all. \"combo 7, 5 118 82 13, drop\" drops down the combo list at most 13 dbu\'s down which is just a little bit more than the height of the edit field in the combi list. At least it is in my mIRC version (6.17).
xDaeMoN
Comments: 696
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 2:43 pm
I have tested the code in 6.21 & works fine. I did not test it in 6.3 yet but I would think it would work fine as well. You might want to try updating your mirc.
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 2:49 pm
noMen, that shouldn\'t affect the combo at all. If I had a size after the x y w h parameters then that would come into effect. Without the forced size effect, it automatically readjusts itself. As xDaeMoN has stated, this was tested in 6.21 so that could be the problem.
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 3:15 pm
I just tested it in 6.21, same problem. Can I upload a screenshot somewhere?
mountaindew
Comments: 1,523
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 3:18 pm
umm, i know u can on the forum, but im not sure about on comments, but try it, its [i m g]site[/i m g]
xDaeMoN
Comments: 696
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 3:24 pm
There\'s an upload option in the navigation on top to upload images.
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 3:32 pm
I honestly haven\'t a clue on why your mIRC reicieves that problem. Everything worked fine for me and so far I haven\'t recieved any issues.
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 4:00 pm
Uploaded, look for yourself. Made in mirc 6.21
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 4:03 pm
That looks like the old version of this snippet. Have you tried the new one? I have no clue why that happens without the size option.
noMen
Comments: 56
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 4:04 pm
Well the new one also contains combo 7, 5 118 82 13, drop. 13 is not much .... well it works for you, I\'m happy for you
SilentExile
Comments: 19
 
mIRC Snippet:  INI editor
Posted on Sep 20, 2007 4:06 pm
er.. thanks. =) I am truly sorry that I don\'t have an answer to your problem.
mountaindew
Comments: 1,523
 
mIRC Snippet:  INI editor
Posted on Sep 25, 2007 6:37 pm
Code:

  list 1, 14 9 46 87, size sort
  list 4, 76 9 47 89, size


^^much more helpful if you sort them
mountaindew
Comments: 1,523
 
mIRC Snippet:  INI editor
Posted on Sep 25, 2007 6:37 pm
ugh, make the bottom one

Code:

  list 4, 76 9 47 89, size sort
mountaindew
Comments: 1,523
 
mIRC Snippet:  INI editor
Posted on Sep 25, 2007 6:44 pm
u need to friggin test ur script

when you try to add an item, it asks for item, data, then asks for item and data again

also, you should disable the - in the items until you click an item

when you remove stuff, i think that this would come in handy:
Code:

echo $$?!=\"Are you sure you would like to remove $did(name,id).seltext $+ ?)\"
if ($! == $true) {
  do remove stuff...
}
mountaindew
Comments: 1,523
 
mIRC Snippet:  INI editor
Posted on Sep 26, 2007 3:07 pm
i guess ill just use this, i need a ini editor, and this is the only one on here
mountaindew
Comments: 1,523
 
mIRC Snippet:  INI editor
Posted on Sep 26, 2007 3:11 pm
i changed my mine, id rather type /run file.ini and edit it in there

you need to disable removes, and also disable the adds when theres no ini selected

Please Register or Login to start posting comments.
Bottom