Jump to content



Recommended Posts

Ok well i need help with my program. Its a personal files thing. I have a GUI setup for it but i need a login feature. I need to have a button on the loginpage that says make a new account and when you click it it asks you for a username and password and then it takes you back to the login page an you can login with the data you just entered.

How can i do this.

Edited by keen

[center]Kesne's Bar & Grill[/center]

Link to comment
Share on other sites

I'm not renting a coder so here:

#include <GUIConstants.au3>

For $i = 1 To 3
   ; Get the name
    $name = InputBox("Username", "Enter Your Username:", "")
    If $name <> 'USERNAME' Then ContinueLoop
   ; Get the password
    $password = InputBox("Password", "Enter Your password:", "", "*M")
    If $password = 'PASSWORD' Then ExitLoop 

If $i > 3 Then
    MsgBox(0, 'Invalid', 'You have entered and invalid username or password. Please reload the application and try again.")
    Exit 1

GUICreate("Personal Files",600,600)

$tab=GUICtrlCreateTab (1, 70, 600, 190)

$tab1=GUICtrlCreateTabitem ("Welcome")
GUICtrlCreateLabel("Testing." & @CRLF & "More Testing " & @CRLF & ".", 20, 120, 375, 100)

GUICtrlCreateTabitem ("")  ; end tabitem definition

GUISetState ()

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

Thats it.

[center]Kesne's Bar & Grill[/center]

Link to comment
Share on other sites

get Koda and create your own

it's so simple it practically creates itself

it comes with the scite download


or you can find it here


besides i'm no ones bitch

i was going to say the same thing..... CWorks

so, if you dont have SciTE editor you should get it

then press

Tools > Koda(form designer)



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

  • Recently Browsing   0 members

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