AutoHotkey Community

It is currently May 27th, 2012, 8:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 146 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next
Author Message
 Post subject:
PostPosted: July 27th, 2006, 5:31 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
ofcourse you're welcome to post it!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 5:37 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 5:39 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Rajat wrote:
toralf,
i modded ur function to add the 'Default' feature..
Thanks, I'll add it to the code.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 5:48 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 6:47 am 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 6:48 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 6:54 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 6:56 am 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 6:59 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
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 :)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 7:20 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 7:22 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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?
Image

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 7:24 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 8:11 am 
Offline

Joined: July 20th, 2006, 6:41 pm
Posts: 144
Location: Los Angeles
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 9:29 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
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!

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2006, 9:44 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 146 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: IsNull, tomoe_uehara, Xx7 and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group