Jump to content

Recommended Posts

Posted (edited)

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]

Posted

Well all that i need is a code that will create new account and has a login features.

And i read the help files

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

Posted

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 
Next

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

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
Wend

Thats it.

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

Posted

Not exactly but very close. can you make it ask for you username too and it doesnt have to lock the screen just po up a msg box would be fine. Thatnks!

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

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