Hi if anyone can help me?I want add 2 page in the hack.I mean the someone click the button,another page come.Maybe more checkbox or others checkbox with other functions..
You have to do that:Quote:
Well i don't really like it because i transpart the form
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 186, 68, 192, 124)
$Button1 = GUICtrlCreateButton("Page 1", 8, 16, 75, 25)
$Button2 = GUICtrlCreateButton("Page2", 96, 16, 75, 25)
GUISetState(@SW_SHOW, $form1)
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 299, 173, 302, 218)
$Edit1 = GUICtrlCreateEdit("", 0, 0, 297, 121)
GUICtrlSetData(-1, "Edit1")
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 8, 128, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 8, 152, 97, 17)
GUISetState(@SW_HIDE, $Form2)
#Region ### START Koda GUI section ### Form=
$Form3 = GUICreate("Form3", 253, 118, 302, 218)
$Input1 = GUICtrlCreateInput("Input1", 8, 8, 121, 21)
$Button3 = GUICtrlCreateButton("Button1", 8, 40, 75, 25)
$Radio1 = GUICtrlCreateRadio("Radio1", 104, 48, 113, 17)
$Radio2 = GUICtrlCreateRadio("Radio2", 104, 80, 113, 17)
GUISetState(@SW_HIDE, $Form3)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg(1)
Switch $nMsg[1]
Case $Form1
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
exit
case $button1
GUISetState(@SW_show, $Form2)
case $button2
GUISetState(@SW_show, $Form3)
EndSwitch
Case $Form2
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE, $Form2)
EndSwitch
Case $form3
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE, $Form3)
EndSwitch
EndSwitch
wend
Thank for replay...but i need in the same form if is possible.Quote:
You have to do that:
PHP Code:#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 186, 68, 192, 124)
$Button1 = GUICtrlCreateButton("Page 1", 8, 16, 75, 25)
$Button2 = GUICtrlCreateButton("Page2", 96, 16, 75, 25)
GUISetState(@SW_SHOW, $form1)
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Form2", 299, 173, 302, 218)
$Edit1 = GUICtrlCreateEdit("", 0, 0, 297, 121)
GUICtrlSetData(-1, "Edit1")
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 8, 128, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 8, 152, 97, 17)
GUISetState(@SW_HIDE, $Form2)
#Region ### START Koda GUI section ### Form=
$Form3 = GUICreate("Form3", 253, 118, 302, 218)
$Input1 = GUICtrlCreateInput("Input1", 8, 8, 121, 21)
$Button3 = GUICtrlCreateButton("Button1", 8, 40, 75, 25)
$Radio1 = GUICtrlCreateRadio("Radio1", 104, 48, 113, 17)
$Radio2 = GUICtrlCreateRadio("Radio2", 104, 80, 113, 17)
GUISetState(@SW_HIDE, $Form3)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg(1)
Switch $nMsg[1]
Case $Form1
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
exit
case $button1
GUISetState(@SW_show, $Form2)
case $button2
GUISetState(@SW_show, $Form3)
EndSwitch
Case $Form2
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE, $Form2)
EndSwitch
Case $form3
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
GUISetState(@SW_HIDE, $Form3)
EndSwitch
EndSwitch
wend