Jump to content

Need help make a Gui Interface


djinius
 Share

Recommended Posts

Hi,

I'd need a little help making a GUI interface autoscript...

I would basically like to make an app that Generates "an imaginary identification" by reading a bank list from a ".ini" file....

So I would need a GUI interface where there are fields for first name,last name,age,sex,birthday... etc...

Each value that would be rendered randomnly into these field would be drawn from a "databank, or word bank" stored in a .ini file I would create my self...

Afterwords, once all the data is generated, I would like to be able to save the generated "profile or imaginary identification" into a new ".ini" file.

I would also like to be able to use that same application to open these "generated profiles"... In other words, I would like my program to be able to generate profiles, that can be save into .ini files, and also be able to open already written profiles... I'd have more specifications eventually... but I would really need someone to help me out getting started... Any tips, suggestions would be highly appreciated ! Thank you very much for your time and help !!

Link to comment
Share on other sites

Use Koda that is installed with AutoIt to create the GUI. Just add the input controls to the GUI and write the functions.

There is a lot of info in the help file about working with GUI's. Once you show that you have made an effort then you can expect more help, but don't expect someone to write it for you.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

ohh I wasn't expecting anyone at all to do it for me... I just really needed someone to give a me a few pointers because I have no idea where to start from... That Koda Designer is great ! Thanks for letting me know about that....

Now i just started putting my fields...

Ok so i'm just starting... I added a few fields, made a tab controls for the "Generate" section and the "read" section... How do I add values to a combo box ?

Link to comment
Share on other sites

If you read the help file for GuiCtrlCreateCombo(), you'll find this

#include <GUIConstants.au3>

GUICreate("My GUI combo") ; will create a dialog box that when displayed is centered

GUICtrlCreateCombo ("item1", 10,10); create first item
GUICtrlSetData(-1,"item2|item3","item3"); add other item snd set a new default

GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Link to comment
Share on other sites

ohh I wasn't expecting anyone at all to do it for me... I just really needed someone to give a me a few pointers because I have no idea where to start from... That Koda Designer is great ! Thanks for letting me know about that....

Now i just started putting my fields...

Ok so i'm just starting... I added a few fields, made a tab controls for the "Generate" section and the "read" section... How do I add values to a combo box ?

$Combo1 = GUICtrlCreateCombo("", 10,10,100,20)

$def_value = "Data2"

GUICtrlSetData($Combo1,"Data1|Data2|Data3|Data4", $def_value)

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

I'm using Koda FormDesigner... is there a way to see the code using the program,?

Just use Koda to create and position all the controls. Go back later and add the Data using the method I showed you. Koda is a Form Designer, not a script writer.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...