I've read the forum rules and I didn't find any topic like this...Sorry
Three days ago I've started a project in AutoIt to open account informations based on what user is and what he want to do. If you didn't understand, no problem, this is important:
I have a lot of troubles with MySQL and I was asking for some help. I tried everything...I know this script is wrong but take a look:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Multiple GUI Managing", 215, 78, 192, 124) $Button1 = GUICtrlCreateButton("Button", 24, 8, 137, 65, $WS_GROUP) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUISetState(@SW_DISABLE, $Form1) SetGUI2() GUISetState(@SW_ENABLE, $Form1) EndSwitch WEnd Func SetGUI2() $Form2 = GUICreate("Child window is still here", 377, 212, 192, 124) $Username = GUICtrlCreateInput("Username", 64, 72, 209, 21) $Password = GUICtrlCreateInput("Password", 64, 104, 209, 21) $Button2 = GUICtrlCreateButton("Button", 136, 136, 73, 33, $WS_GROUP) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button2 GUIDelete($Form1) $ReadingUsername = GUICtrlRead($Username) $ReadingPassword = GUICtrlRead($Password) If $ReadingUsername = "user1" and $ReadingPassword = "password1" or $ReadingUsername = "user2" And $ReadingPassword = "password2" Then MsgBox(0,"TEST!", "Login test has been passed!") Else MsgBox(0,"TEST!", "Login test has not been passed!") EndIf EndSwitch WEnd EndFunc
Please help me fast,
-Armand
Edited by ArmandCool, 19 April 2012 - 12:50 PM.






