Bishop12 Posted December 17, 2018 Posted December 17, 2018 all i want is After Login GUI and if correct Password Then i want him to switch into new GUI and have like START BUTTON MENU Something like that ???? any one can help me here how can i do that kind of switch GUI after 1 GUI is done HELP??? expandcollapse popup1.LOGIN MENU GUI #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("bot", 180, 140, 737, 350) GUISetBkColor(0x3399FF) $_Start = GUICtrlCreateGroup("Start", 8, 8, 161, 57) GUICtrlSetFont(-1, 10, 800, 0, "System") $_Run = GUICtrlCreateButton("Run", 24, 24, 129, 33) GUICtrlSetFont(-1, 10, 800, 0, "Corbel") GUICtrlSetCursor (-1, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) $_Exit = GUICtrlCreateGroup("Exit", 8, 72, 161, 57) GUICtrlSetFont(-1, 10, 800, 0, "System") $_Close = GUICtrlCreateButton("Close", 24, 88, 137, 33) GUICtrlSetFont(-1, 10, 800, 0, "Corbel") GUICtrlSetCursor (-1, 0) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### HotKeySet("{f1}","Close") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $_Close Exit Case $_Run Local $pw1 = 001 Local $pw2 = 002 Local $pw3 = 003 $pw = InputBox("Login","password","","",230,120) If $pw = $pw1 or $pw = $pw2 or $pw = $pw3 Then MsgBox(4096, & $pw "Correct", "the pw is correct!") Sleep(300) _Bot() Else MsgBox(48, & $pw "Incorrect", "This pw is incorrect Mother Fucker idiot") Sleep(300) Exit EndIf Func _Bot() Local $coord1 = 571 Local $coord2 = 253 MouseMove($coord1,$coord2,10) Sleep(500) MouseClick("left") EndFunc Func Close() Exit EndFunc EndSwitch WEnd 2nd START MENU GUI #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Form2", 192, 196, 302, 218) $START = GUICtrlCreateButton("START", 48, 32, 81, 57) $Exit = GUICtrlCreateButton("Exit", 48, 104, 81, 57) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
Moderators JLogan3o13 Posted December 17, 2018 Moderators Posted December 17, 2018 @Bishop12 This is a perfect example of information you can find on the Wiki. There is an entire article dedicated to resolving the exact issue you are having. Please see this: https://www.autoitscript.com/wiki/Managing_Multiple_GUIs "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now