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: Tue Jul 25, 2006 11:43 pm    Post subject: Reply with quote

Razz
your modded function has turned out great... i should be adding it to the main post on top.. u uploading it somewhere?
_________________
Back to top
View user's profile Send private message
Kerry



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

PostPosted: Wed Jul 26, 2006 5:05 am    Post subject: Reply with quote

Hey! god you guys have really taken off on this, it's great! I'm still using the first one that still came out in my script, but I'm going to upgrade it really soon

I had 2 requests that I would find very helpful if you could do them Smile


  1. Preselected Key (if you want someone to go to a certain key first, or in my case, want to make sure someone realizes they should open the section)
  2. Have certain values that are acceptable. For example, in my script, I test whether someone puts in "Yes" or "No", I wouldn't want them putting in any other thing or else it can mess up the script. Maybe a dropdown menu with possible options
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: Wed Jul 26, 2006 8:42 am    Post subject: Reply with quote

Rajat wrote:
:P
your modded function has turned out great... i should be adding it to the main post on top.. u uploading it somewhere?
Thanks for th honor. I'll upload it soon. The post is getting too long now. But first I would like to enhance it a bit more.

Kerry wrote:
Preselected Key (if you want someone to go to a certain key first, or in my case, want to make sure someone realizes they should open the section)
I do not know how this could do be done. Any suggestions? Rajat?

Kerry wrote:
Have certain values that are acceptable. For example, in my script, I test whether someone puts in "Yes" or "No", I wouldn't want them putting in any other thing or else it can mess up the script. Maybe a dropdown menu with possible options
Hmmm, good idea, Have to think about it. Maybe a key type "DropDown" with a comma separated list following the type definition.

Thanks for the feedback.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Wed Jul 26, 2006 10:02 am    Post subject: Reply with quote

toralf wrote:
Kerry wrote:
Preselected Key (if you want someone to go to a certain key first, or in my case, want to make sure someone realizes they should open the section)
I do not know how this could do be done. Any suggestions? Rajat?

ahk doesn't have any direct way of selecting a treeview item AFAIK, so the only way i can think of is Sending Keys %DefaultSec%{Right}%DefaultKey%
_________________
Back to top
View user's profile Send private message
toralf



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

PostPosted: Wed Jul 26, 2006 10:19 am    Post subject: Reply with quote

I found a way to select the first key of the first section
Code:
TV_Modify(TV_GetChild(TV_GetNext()), "Select")
I also added a DropDown key type. Will update the script in the above post in a few minutes
_________________
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: Wed Jul 26, 2006 10:27 am    Post subject: Reply with quote

I was wondering if you guys could come up with a better name for the function. "EditSettings" is a bit too simple and I'm not sure if the functionality behind it is clear by its name. What do you think?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 5812

PostPosted: Wed Jul 26, 2006 11:25 am    Post subject: Reply with quote

toralf wrote:
What do you think?


SetConfig()
Configure()
ConfigEdit()

Regards( Very Happy )
_________________
SKAN - Suresh Kumar A N
Back to top
View user's profile Send private message
toralf



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

PostPosted: Wed Jul 26, 2006 11:36 am    Post subject: Reply with quote

Goyyah wrote:
SetConfig()
Configure()
ConfigEdit()
Thanks for the suggestions. I want to wait for rajat, before I make a decission.

PS: Just added custom date & time formats for the DateTime key type. And resozed some controls in the GUI. (The script above is NOT yet updated.) Anything else users wish for?
_________________
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: Wed Jul 26, 2006 12:28 pm    Post subject: Reply with quote

Quote:
PS: Just added custom date & time formats for the DateTime key type. And resozed some controls in the GUI. (The script above is NOT yet updated.) Anything else users wish for?


Not for me... I'm not currently using the full functionality of the script, but I'm sure I will, but I can't think of any other updates at the moment.

As far as names, I suggest having something with the name INI so that it shows that its editting an INI

ConfigINI
EditINISettings, something that says more specfically Smile

-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: Wed Jul 26, 2006 3:13 pm    Post subject: Reply with quote

I updated the code and redesigned my first post.

BTW: I changed the name of the function to "IniSettingsEditor". I hope you bear with me that I didn't start a poll on it.
_________________
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: Wed Jul 26, 2006 7:55 pm    Post subject: Reply with quote

yeah that's a good name, and not a problem, it's your and Goyyah's thing Smile.

I was thinking of something that could go along with this, and that is making a function that adds in the extra line of functionality

maybe make a similar IniWrite funciton except adds description and type? I don't know, this could be quite hard. The only reason I ask is because I create my .ini dynamically (on request of the user) and then launch this program

dunno if this is possible, but just an idea Smile

-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: Wed Jul 26, 2006 7:55 pm    Post subject: Reply with quote

hey toralf! Just come back from work and checked out your latest offering... Its nothing short of awesome!
I've updated my main post to add a link to your post just next to the d/l link to my script. This way whoever reads just the first post will not miss your script.

I'm sure this script of ours is all set to become THE settings editor for many ahk scripts! Wink

by the way it has occurred to me earlier too but forgot to mention it... How about removing the 'Type : xxxx' from showing in description? ... it looks more part-of-code-thing than descriptive. if needed we can always use the normal description to explain the reqmts of the particular setting.

and yeah... Thanks for all those improvements!
_________________
Back to top
View user's profile Send private message
toralf



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

PostPosted: Wed Jul 26, 2006 8:11 pm    Post subject: Reply with quote

Hi Rajat,

Thanks for the link and the respect.

Rajat wrote:
How about removing the 'Type : xxxx' from showing in description? ... it looks more part-of-code-thing than descriptive. if needed we can always use the normal description to explain the reqmts of the particular setting.
Of cause it is possible, but I think it isn't bad to have it there, it adds some more information to the description. How do other feel about this?

I was thinking of maybe having a key default value similiar to the key type (e.g. ;somekey default: xxxx) And a button on the GUI to reset all values to their defaults. But I guess it not that often used.

I was also thinking of a max/min limit for Integer and Float numbers, but couldn't think of an elegant way to implement that. Maybe also a max length for text. But only if code size is small. I don't want to make the script more complex.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Wed Jul 26, 2006 8:43 pm    Post subject: Reply with quote

toralf wrote:
I was thinking of maybe having a key default value similiar to the key type (e.g. ;somekey default: xxxx) And a button on the GUI to reset all values to their defaults. But I guess it not that often used.

now that you mention it, I remember I had it on my mind initially to have a 'default' button that resets the currently selected value to its default value (though i hadn't planned for a set-all-to-default button). it should be easily do-able.

toralf wrote:

I was also thinking of a max/min limit for Integer and Float numbers, but couldn't think of an elegant way to implement that. Maybe also a max length for text. But only if code size is small. I don't want to make the script more complex.

this i think isn't worth the effort. Also for special needs, the host script can always check the updated setting in the .ini and MsgBox that this particular setting isn't correct and should be changed to whatever.
_________________
Back to top
View user's profile Send private message
Kerry



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

PostPosted: Wed Jul 26, 2006 9:04 pm    Post subject: Reply with quote

Hey - another request that would be helpful Smile

Making it able to pick up multiple ini's, this might be a big add on, and then it would just go down further in the tree

-Kerry

P.S. I think both of those defaults would be good - you guys rock
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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 2 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