Replace gui elements as is done in the "Config"-menu to be either DDL or Edit-field #212
Replies: 1 comment
-
I only ever used There is no ini builder in this version that I'm aware of - v8 might have it I'm not familiar with it. In v6 you have to create the INI yourself which you can format as documented in the comments. Documentation in the function here https://github.com/lintalist/lintalist/blob/master/include/Func_IniSettingsEditor_v6.ahk#L89 That way you can define multiple types such as a save as test.ini [settings]
key1=value1
key2=value2 etc
key3=1
;key3 type: dropdown 1|2|3|4|5|6
;key3 default: 1
;key3 some text to display
key4=1
;key4 hidden: And you call it simply like so: IniSettingsEditor("My Program","test.ini")
#include Func_IniSettingsEditor_v6.ahk Each setting in lintalist is defined in separate files https://github.com/lintalist/lintalist/tree/master/include/settings which gets read at the very first startup of the program and processed in the https://github.com/lintalist/lintalist/blob/master/include/ReadIni.ahk - where some pre/post-processing takes places as well as other settings are read and setup - it allows me to add new settings relatively easily as with a normal |
Beta Was this translation helpful? Give feedback.
-
Hello,
posting this in discussions because I honestly don't know where else I should put it, and it feels wrong to make this an issue, as it really doesn't have a lot to do with Lintalist itself. Well, mostly.
I am currently writing a helper-GUI-function to read back, edit and save an associative array of script settings. I've used the Config-window as a visual guide to the front-end, and have several questions after realising the problems I am running into. I've done a bit of research.
Looking through the myriad of includes to lintalist (holy fuck, how do you keep track of all of this?), I found your
Func_IniSettingsEditor_v6.ahk
is adapted from the script found http://www.autohotkey.com/forum/viewtopic.php?p=69534#69534. In that thread, it is mentioned that a creator-script for the syntax of the ini-file exists (toralf'sIniFileCreator_v8
). I have also dug out that script, but I can't get it to run at all, as it seems to require an ini-file I don't have, and which isn't created if missing - which imo is a glaring oversight, but idk.I hence can't get the most out of the ini-settings editor, even though I do have it. Is it possible you have the creator-script lying around somewhere?
Preferably, as your own version seems to be slightly changed (and contains a few things I'd prefer over the original version), is it even compatible? Because it seems to be very buggy in my case. I have written up the missing ini-file myself with guesstimated values, and those seem to be bugging - or maybe it is just the script itself containing bugs. However, if you have a working instance you used to create your settings according to how they are presented in lintalist's settings-editor, I would be very glad if you would be okay with sharing that script.
Thank you,
Sincerely,
~Gw
P.S.: Also, stupid question: where is the unpacking of the ini-file handled? I can't find that snippet for some reason. Because while this is vastly useful for creating these pesky ini-files, and allowing users to change them, if I can't figure out how to incorporate that ini-file's structure into my own files this is obviously not usable at all.
Beta Was this translation helpful? Give feedback.
All reactions