INI plugin? - Forum

Forum Navigation
You need to log in to create posts and topics.

INI plugin?

Does anyone know of a plugin to deal with .INI files? hpwUtility 2.45 has some useful actions but perhaps there's a plugin with a few more features?

@pauljonestindall

hpwUtility 2.45 has some useful actions but perhaps there's a plugin with a few more features?

Perhaps you can elaborate by listing ...

a) which features of hpwUtility you still need

b) which features are missing that you would like to see

HPW has reacted to this post.
HPW

@gaev

Hello. Well, hpwUtility has three Read functions. One is to read a value from its key in its section. Ok, fair enough. The other two, one reads all of the section names to a variable and the other reads all of the keys in a section to a variable, both with a [#13] delimiter. However, what I could really use is a function to read all the key values to a variable for use in a ListBox.

@pauljonestindall

To work with ini-files, these plugins can also be used:

NeoDouble 1.0.6 (David Esperalta)

RacAutoIt3x 1.0 (Roman Avalos Castillo)

@pauljonestindall

What I could really use is a function to read all the key values to a variable.

Did you mean ...

a) "all the key names" (i.e. not the assigned values of the key names) ?

b) in "a specified section" (not "all sections", as there could be duplicate key names within several sections) ?

for use in a ListBox
hpwUtility - reads all of the keys in a section to a variable

If you agree with my understanding of (a) and (b), then will hpwUtility not give you this ? (f.y.i. you can specify a [variable] as the value for property List Items for a ListBox or ComboBox) ... unless, when the user chooses an item, you want to somehow link it back to its value.

If I misunderstood, please elaborate.

Hello,

With a few lines of neoscript you should be able to do what you want.

The commands should allow you to iterate through all ini-vars.

The format you want to show in your listbox is your special need and not something genreric for every other user.

Regards

Hans-Peter

Vadim has reacted to this post.
Vadim

@gaev

a) No. The value of all keys is what I need in a variable.
b) Yes. One specific section.

Here's the idea: I have to temporarily keep track of various diameter sized strands of cables (i.e. 3/8", 1/2", 9/16"). Each size strand has a certain quantity (i.e. twelve 3/8" cables and seven 1/2" cables). All strands will have a different length and their length will be measured at different times.

So, my INI file would look like this:

[CableSizes]
3/8Count=12
1/2Count=7
[3/8Elong]
Strand-01=13.375
Strand-02=13.125
Strand-03=13.5
Strand-04=13.5
Strand-05=13.375
Strand-06=13.125
Strand-07=13.125
Strand-08=13.5
Strand-09=13.375
Strand-10=13.375
Strand-11=13.375
Strand-12=13.5
[1/2Elong]
Strand-01=4.375
Strand-02=4.125
Strand-03=4.5
Strand-04=4.5
Strand-05=4.375
Strand-06=4.125
Strand-07=4.125

Reading all of the keys values for one section, all at one time would be ideal.

@hpw

Yes, I've written some code and I can Loop through the keys. I'm still working out my UI and thinking this through.

Thank you all for your feedback.

 

@pauljonestindall

Thanks for the descriptive response.

Yes, I've written some code and I can Loop through the keys.

You are 90% there.

I'm still working out my UI and thinking this through.

Say, the variable specified for the property List Items for your ListBox is [diaSizes] ...

a) Before you loop through the keys, clear the contents of this variable ...

SetVar "[diaSizes]" ""

b) with each iteration of the loop ...

- obtain the value of the key of the current iteration ... say it is received in [thisDiaSize]
- append [thisDiaSize] to [diaSizes] with [#13] as a separator

SetVar "[diaSizes]" "[diaSizes][#13][thisDiaSize]"

Voila !!!

@vadim

Do you know if there is an English version of NeoDouble? It looks like there are altogether quite a few useful features.

@pauljonestindall

Unfortunately, I have only the Russian version.

It is possible that someone here has an English version.

Here it is, NeoDouble 1.0.6,last known version...

Freeware

 

Cheers:-)

Uploaded files:
  • You need to login to have access to uploads.