|
You last visited: Today at 11:29
Advertisement
Von Form Zu Form Wechseln.
Discussion on Von Form Zu Form Wechseln. within the AutoIt forum part of the Coders Den category.
04/14/2011, 13:52
|
#1
|
elite*gold: 0
Join Date: Jul 2010
Posts: 307
Received Thanks: 290
|
Von Form Zu Form Wechseln.
Hallo Erstmal!
Ich wollte mal etwas machen das von einer form zur anderen wechselt jetzt wollt ich das aber auch so machen das wenn man auf einen zurück button klickt es wieder zur ersten form kommt und dann alles neu einstellen kann. also bis zu dem zurück und neu einstellen hab ich geschafft aber wenn man dann wieder auf weiter klickt passiert nix ... Könntet ihr mir helfen? Hier ist ein beispiel script
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #region ### START Koda GUI section ### Form= $Form1 = GUICreate("(Nachgestellt)", 227, 74, 191, 122) $Button1 = GUICtrlCreateButton("Zurück", 8, 8, 107, 57, $WS_GROUP) GUICtrlSetState(-1, $GUI_DISABLE) $Button2 = GUICtrlCreateButton("Weiter", 112, 8, 107, 57, $WS_GROUP) GUISetState(@SW_SHOW) #endregion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button2 Gui2() EndSwitch WEnd Func Gui2() GUISetState(@SW_HIDE, $Form1) #region ### START Koda GUI section ### Form= $Form2 = GUICreate("(Nachgestellt)", 331, 82, 192, 124) $Button1 = GUICtrlCreateButton("Zurück", 8, 8, 107, 65, $WS_GROUP) $Button2 = GUICtrlCreateButton("Msg Box", 112, 8, 107, 65, $WS_GROUP) $Button3 = GUICtrlCreateButton("Weiter", 216, 8, 107, 65, $WS_GROUP) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState(@SW_SHOW) #endregion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUISetState(@SW_SHOW, $Form1) GUISetState(@SW_HIDE, $Form2) Case $Button2 MsgBox(0, "Test", "Test") EndSwitch WEnd EndFunc
|
|
|
04/14/2011, 14:56
|
#2
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
|
zb so:
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("(Nachgestellt)", 227, 74, 191, 122) $Button1 = GUICtrlCreateButton("Zurück", 8, 8, 107, 57, $WS_GROUP) GUICtrlSetState(-1, $GUI_DISABLE) $Button2 = GUICtrlCreateButton("Weiter", 112, 8, 107, 57, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
#Region ### START Koda GUI section ### Form= $Form2 = GUICreate("(Nachgestellt)", 331, 82, 192, 124) $Button3 = GUICtrlCreateButton("Zurück", 8, 8, 107, 65, $WS_GROUP) $Button4 = GUICtrlCreateButton("Msg Box", 112, 8, 107, 65, $WS_GROUP) $Button5 = GUICtrlCreateButton("Weiter", 216, 8, 107, 65, $WS_GROUP) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState(@SW_HIDE, $Form2) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg(1) Switch $nMsg[1] Case $Form1 Switch $nMsg[0] Case $GUI_EVENT_CLOSE Exit Case $Button2 GUISetState(@SW_HIDE, $Form1) GUISetState(@SW_SHOW, $Form2) EndSwitch Case $Form2 Switch $nMsg[0] Case $GUI_EVENT_CLOSE Exit Case $Button3 GUISetState(@SW_SHOW, $Form1) GUISetState(@SW_HIDE, $Form2) Case $Button4 MsgBox(0, "Test", "Test") EndSwitch EndSwitch WEnd
|
|
|
04/14/2011, 15:04
|
#3
|
elite*gold: 0
Join Date: Jul 2010
Posts: 307
Received Thanks: 290
|
Quote:
Originally Posted by omer36
zb so:
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("(Nachgestellt)", 227, 74, 191, 122) $Button1 = GUICtrlCreateButton("Zurück", 8, 8, 107, 57, $WS_GROUP) GUICtrlSetState(-1, $GUI_DISABLE) $Button2 = GUICtrlCreateButton("Weiter", 112, 8, 107, 57, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("(Nachgestellt)", 331, 82, 192, 124) $Button3 = GUICtrlCreateButton("Zurück", 8, 8, 107, 65, $WS_GROUP) $Button4 = GUICtrlCreateButton("Msg Box", 112, 8, 107, 65, $WS_GROUP) $Button5 = GUICtrlCreateButton("Weiter", 216, 8, 107, 65, $WS_GROUP) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState(@SW_HIDE, $Form2) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg(1) Switch $nMsg[1] Case $Form1 Switch $nMsg[0] Case $GUI_EVENT_CLOSE Exit Case $Button2 GUISetState(@SW_HIDE, $Form1) GUISetState(@SW_SHOW, $Form2) EndSwitch Case $Form2 Switch $nMsg[0] Case $GUI_EVENT_CLOSE Exit Case $Button3 GUISetState(@SW_SHOW, $Form1) GUISetState(@SW_HIDE, $Form2) Case $Button4 MsgBox(0, "Test", "Test") EndSwitch EndSwitch WEnd
|
Danke! Klappt Perfekt! Ich Danke Dir...
Edit: Hm Leider klappt nur das beispiel wenn ich das dan in mein eigentliches script einbaue zeigt es nicht die 2te form an und wenn ich auf andere buttons klicke passiert auch nichts... ich kann dann nur x drücken oder minimieren.
|
|
|
|
Similar Threads
|
PHP Registration Form
09/27/2010 - Shaiya Private Server - 10 Replies
Hello,
I had a php reg form for my private server.... but the server crashed and i had lost everything...
I managed to get everything back on but i cant seem to find the registration form. If anyone of you could help me out it would be greatly appreciated.
Regards.
|
dc form 60 dungeon
11/25/2008 - Dekaron - 4 Replies
i have some problem if i enter 60 dungeon my ms gos up and i dc
my real ms gos also up i checked that with ping to google it jumps to 1k+
wtf is that oO
yesterday everything was fine ...
|
help me play 2m form eu
04/28/2008 - Dekaron - 1 Replies
can somone tall me how 2 make 2m work cuzz i am in eu plzzzzzz found somthing :(:(:(
|
i need help form anyone
12/27/2007 - Conquer Online 2 - 3 Replies
I forgot the secret of the bank of any possible solution to Open World Please help me attention and to open bank
|
Druid Tree form buff without tree Form
11/11/2007 - WoW Exploits, Hacks, Tools & Macros - 5 Replies
My buddy and i were screwing around the other day in Mech and we figured out a way to have a working tree form buff for the party but not be in tree form. Which if anyone knows about druids allows them to cast all their other high healing spells. Anyway follow the instructions below its a bit tricky
1. Change your chest item to something else
2. Get into Combat.. Queue your chestpiece to switch back to your original
3. When the fights finishing, Get ready.. The second the...
|
All times are GMT +2. The time now is 11:29.
|
|