Sign in to follow this  
Followers 0
XInFisk

How do i make a...

5 posts in this topic

How do i make a setup file with gui? I mean in the setup file is there maybe a place where you can enter where your counter-strike.exe file is. and all that and then it so write it to a .ini file. Can anyone help me?

-XInFisk

Share this post


Link to post
Share on other sites



I don't get the question. Write settings to an INI file or something?

Share this post


Link to post
Share on other sites

How do i make a setup file with gui? I mean in the setup file is there maybe a place where you can enter where your counter-strike.exe file is. and all that and then it so write it to a .ini file. Can anyone help me?

-XInFisk

Hi, I mean when people write lets say what there account name is and then push OK then it will write it a .ini file.. Setup.ini or something. Sry for my bad english :D

-XInFisk

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

You know about the INI functions and GUI functions right?

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Input_1 = GuiCtrlCreateInput("", 50, 100, 140, 20)
$Input_2 = GuiCtrlCreateInput("", 50, 160, 140, 20)
$Label_3 = GuiCtrlCreateLabel("Test Name", 50, 80, 90, 20)
$Label_4 = GuiCtrlCreateLabel("Test Password", 50, 140, 100, 20)
$Button_5 = GuiCtrlCreateButton("Test Submit", 10, 190, 370, 120)

GuiSetState()
While 1
    Switch GuiGetMsg()
    Case $GUI_EVENT_CLOSE
        ExitLoop
    Case $Button_5
        IniWrite("Setup.ini", GUICtrlRead($Input_1), "Pass", GUICtrlRead($Input_2))
    EndSelect
WEnd
#endregion --- GuiBuilder generated code End ---
You might also want to hash the password and check it aginsed the hash or something like that. Also set the password inputbox to not show the characters using some style setting, I think.

Edit: [ autoit] tag is escaping my "(" characters!

Edited by gamerman2360

Share this post


Link to post
Share on other sites

You know about the INI functions and GUI functions right?

#region --- GuiBuilder code Start ---
; Script generated by AutoBuilder 0.6 Prototype

#include <GuiConstants.au3>

GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Input_1 = GuiCtrlCreateInput("", 50, 100, 140, 20)
$Input_2 = GuiCtrlCreateInput("", 50, 160, 140, 20)
$Label_3 = GuiCtrlCreateLabel("Test Name", 50, 80, 90, 20)
$Label_4 = GuiCtrlCreateLabel("Test Password", 50, 140, 100, 20)
$Button_5 = GuiCtrlCreateButton("Test Submit", 10, 190, 370, 120)

GuiSetState()
While 1
    Switch GuiGetMsg()
    Case $GUI_EVENT_CLOSE
        ExitLoop
    Case $Button_5
        IniWrite("Setup.ini", GUICtrlRead($Input_1), "Pass", GUICtrlRead($Input_2))
    EndSelect
WEnd
#endregion --- GuiBuilder generated code End ---
You might also want to hash the password and check it aginsed the hash or something like that. Also set the password inputbox to not show the characters using some style setting, I think.

Edit: [ autoit] tag is escaping my "(" characters!

Oh thanks ! Thanks for your help :D Now i got a idea about how i make it :wacko:

-XInFisk

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