AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Plug'n'Play GUI Settings Editor for your scripts (Version 6)
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Thu Jul 27, 2006 5:31 am    Post subject: Reply with quote

ofcourse you're welcome to post it!
_________________
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 27, 2006 5:37 am    Post subject: Reply with quote

Kerry wrote:
Hey, I made a complete working version with a third area (done by using {})

Do you want me to post the code? I know it was to be too specific, and I don't want to infringe on your guys' program, but thought it might help. It doesn't interfere with the rest of the program (you don't need to have the area) and it will work just as you designed it.
Yes, give us a link. I'll take a look at it.
Two things, though:

1) Now you have areas, but how do you open multiple inis? Or will these areas be inside a single ini file? But if they are in a single ini, the section names have to be different between areas anyway, since otherwise IniRead will not work. So you could name the sections [Area - Section] with the same effect. *puzzled*

2) Since {area} is not a standard ini feature I would like it to have a ";" infront. So it will be a comment line in normal use. Should be easy to adjust your code to this.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 27, 2006 5:39 am    Post subject: Reply with quote

Rajat wrote:
toralf,
i modded ur function to add the 'Default' feature..
Thanks, I'll add it to the code.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 27, 2006 5:48 am    Post subject: Reply with quote

Titan wrote:
Your objective seems very similar to the purpose of VisualINI - you could use that as a template too speed things up :P
Hi Titan,
Yes, I thought the same thing. And I looked at your code. But you took a different approach. It would take me longer to mod your script then to start from scratch. But thanks for the hint. I like your GUI design. The only thing I haven't got my hands on is the Anchor() stuff. But it looks elegant.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Thu Jul 27, 2006 6:47 am    Post subject: Reply with quote

Hey, here's a link to the code

IniSettingsEdior
test.ini
I haven't added it as a comment yet... but you're right, I hadn't thought of that yet (the IniRead)

Would your code be able to take the hyphen? like [area - section]? That would probably be better, though I would still use areas just to make it easier, I would do it like
Code:

{area}
[area - section]
key
key


I'll see if I can make it take comments soon (unless you know a way you could make the third area by what's before the hyphen? I really don't know how to, and would take me a while, but it might be worth it)

-Kerry
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 27, 2006 6:48 am    Post subject: Reply with quote

Updated my post:

Quote:
; changes since 1.0:
; - added default value (thanks rajat)
; - fixed error with DisableGui=1 but OwnedBy=0 (thanks kerry)
; - fixed some typos


@rajat: I changed the implementation of the default value handling. Please test if this is ok for you. Thanks.
It also allows to go back to the initial value if no default is given.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 27, 2006 6:54 am    Post subject: Reply with quote

Kerry wrote:
Hey, here's a link to the code
I'll take a look. But probably not soon.

Kerry wrote:
Would your code be able to take the hyphen? like [area - section]?
Yes it does. But it will not split it into an area and a section, the section would just have the name "area - section". But I guess to split the name into area and section would be possible.

You still haved answered my question. What do these areas help you in a single file, or how will you open multiple files?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Thu Jul 27, 2006 6:56 am    Post subject: Reply with quote

Quote:
You still haved answered my question. What do these areas help you in a single file, or how will you open multiple files?


My bad, I got caught up with making autohotkey.net account.

I was going to read and append each ini file into one big file, with an area above each of the content with that ini's name, which basically does the same thing as reading multiple INI's

-Kerry
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Thu Jul 27, 2006 6:59 am    Post subject: Reply with quote

the restoring initial value seems to be working fine for everything except for Typ:float. you might need to check that.

also... i feel the button label should be shorter Smile
_________________
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 27, 2006 7:20 am    Post subject: Reply with quote

Kerry wrote:
I was going to read and append each ini file into one big file, with an area above each of the content with that ini's name, which basically does the same thing as reading multiple INI's
What are you doing with this combined file afterwards? How do you assure that section names are not duplicate? If they are not duplicate, why do you need areas?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 27, 2006 7:22 am    Post subject: Reply with quote

Rajat wrote:
the restoring initial value seems to be working fine for everything except for Typ:float. you might need to check that.

also... i feel the button label should be shorter :)
I'll look into the float thing.

Any suggestions for the button text?

Ok, this is the first design of the IniFileCreator. Please give feedback on design, and ideas/requests?

_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 27, 2006 7:24 am    Post subject: Reply with quote

Rajat wrote:
the restoring initial value seems to be working fine for everything except for Typ:float. you might need to check that.
Tested, with default 1.1. Works. What is not working?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kerry



Joined: 20 Jul 2006
Posts: 146
Location: Los Angeles

PostPosted: Thu Jul 27, 2006 8:11 am    Post subject: Reply with quote

toralf wrote:
Kerry wrote:
I was going to read and append each ini file into one big file, with an area above each of the content with that ini's name, which basically does the same thing as reading multiple INI's
What are you doing with this combined file afterwards? How do you assure that section names are not duplicate? If they are not duplicate, why do you need areas?


I know there will be duplicates, mainly because all the INIs are very similar except for different applications

Ok, that was much easier than I thought, I updated the code above, it should work now by adding an extra area like you said
[area - section]

Now the only thing I can't do.. maybe someone could help me, is make the descriptions work for the area and section, though the key description still works, and if you remove the area it still works

here's a link

Test2.ahk
Test2.ini
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Thu Jul 27, 2006 9:29 am    Post subject: Reply with quote

toralf wrote:
Tested, with default 1.1. Works. What is not working?

actually, earlier when I tested, Pressing the default button (when no default value is explicitly given in ini) would make Edit1 blank. i just tested it again and its not so! *confused*


toralf wrote:
Any suggestions for the button text?

I think just the word 'Restore' covers both default and initial values. and now that the function is already so elaborate, we might as well add a statusbar to the gui and using the already running loop, check control under mouse and give helpful tips in the statusbar... easy to implement and helpful for users... good idea, eh? ... i can implement it tonight if u say.

and the ini editor looks good! and seems to cover everything that's supported by the function right now... great work there!
_________________
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Thu Jul 27, 2006 9:44 am    Post subject: Reply with quote

Rajat wrote:
I think just the word 'Restore' covers both default and initial values.
Ok, I'll replace it.

Rajat wrote:
now that the function is already so elaborate, we might as well add a statusbar to the gui and using the already running loop, check control under mouse and give helpful tips in the statusbar... easy to implement and helpful for users... good idea, eh? ... i can implement it tonight if u say.
Go ahead. I guess it is only needed for only a few controls.

Rajat wrote:
and the ini editor looks good! and seems to cover everything that's supported by the function right now... great work there!
The only thing missing is an extra field for a default value other then the normal value. Do you think this is needed? I hope not, otherwise I have to redesign the GUI cause such a field would require more space. I guess it is so rare that I can expect the user to edit the ini file manually. (Remember this is only during creation of the ini file.)
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 4 of 10

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group