Jump to content

How do i make a...


 Share

Recommended Posts

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

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

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

Edited by gamerman2360
Link to comment
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

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...