Sign in to follow this  
Followers 0
step

Create Gui Controls From Ini File

6 posts in this topic

Could some one point me to any examples of how to create a gui dynamically from a list of labels and corresponding input boxes that are listed in an ini file.

thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I was about too, then I remembered you did a post somewhere else... and you didn't respond whether it worked for you or not :).

Edit:

Found it... Did this work?: http://www.autoitscript.com/forum/index.php?showtopic=23960

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I've responded to the other post!....It takes me a >while< to sort things out.

Is this not working because of me? is there a bug? or have i not set this up right? are some of the

questions i continually ask myself!....and its usually the first one.

I am not very bright at programming.....actually I'm just totally dim!..the light is on but sometimes there is no one in!

I'm trying to work on 2 projects at the moment that are connected and will

eventually come together hence the 2 posts!

Sometime i just need some space and time!

regards

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I've responded to the other post!....It takes me a >while< to sort things out.

Is this not working because of me? is there a bug? or have i not set this up right? are some of the

questions i continually ask myself!....and its usually the first one.

I am not very bright at programming.....actually I'm just totally dim!..the light is on but sometimes there is no one in!

I'm trying to work on 2 projects at the moment that are connected and will

eventually come together hence the 2 posts!

Sometime i just need some space and time!

regards

If this current post is in relation to your other post... I was not aware that your employee list was in an .ini file? I thought I saw .txt in there... but if it is a .txt file, the ONLY thing you should have to do is replace the file location from what I had to where your .txt file is.

Anyway... It does all the work for you... I even put a back up to make sure your not deleting a name you didn't mean too.

This was on the assumption that your .txt file looked like:

John Doe

Jane Doe

John DoRayMe

Jane DoReyMe

etc....

Edit:

Also for Beta... make sure you are using SciTe Editor since your new to the language... and when you do, just use Alt+F5 to run the script.

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

The employee list is a text file.

Jimmy

Billy

Kate

etc......

This post is about different contracts.....

[ContractCategory1]

contract1=someContractA

contract2=someContractB

[ContractCategory2]

contract1=someContractC

contract2=someContractD......etc

Basically I just want to end up with....say labels and a corresponding input boxs

that are dynamically created from the ini

thanks

Share this post


Link to post
Share on other sites

The employee list is a text file.

Jimmy

Billy

Kate

etc......

This post is about different contracts.....

[ContractCategory1]

contract1=someContractA

contract2=someContractB

[ContractCategory2]

contract1=someContractC

contract2=someContractD......etc

Basically I just want to end up with....say labels and a corresponding input boxs

that are dynamically created from the ini

thanks

Ok...

So when you say Dynamically... They should have Contract1 in it or just the value of Contract 1, should they be grouped by Categories... be careful what you say there... look up GUICtrlCreateGroup() before you answer that one.

As much detail as possible, it's not all that hard, but a pain if you have to keep going back to edit if you know what I mean.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0