Hi Leute Ich bin neu hier im Forum unwollte mal mein erstes Programm vorstellen.Ich bin erst ganz neu in der Autoit programirung.
Ich habe ein problem ..Wen man Button "About" Drückt Öffnet sich ein weiters fenster..Wen man dieses aber wieder schliest ..schliest sich das ganze programm..
Frage: Wie kann ich das verhindern?
thx schon mal im vroaus
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Shutdown", 397, 137, 256, 242)
$Input = GUICtrlCreateInput("", 64, 16, 209, 21, BitOR($ES_AUTOHSCROLL,$ES_NUMBER))
$Input1 = GUICtrlCreateInput("", 64, 56, 209, 21, BitOR($ES_AUTOHSCROLL,$ES_NUMBER))
$Label1 = GUICtrlCreateLabel("Stunden", 8, 16, 44, 17, -1, $WS_EX_STATICEDGE)
$Label2 = GUICtrlCreateLabel("Minuten", 8, 56, 42, 17, -1, $WS_EX_STATICEDGE)
$Button1 = GUICtrlCreateButton("Start", 64, 88, 97, 33, BitOR($BS_DEFPUSHBUTTON,$WS_GROUP))
$Button3 = GUICtrlCreateButton("About", 288, 88, 97, 33, BitOR($BS_DEFPUSHBUTTON,$WS_GROUP))
$Button2 = GUICtrlCreateButton("End", 176, 88, 97, 33, BitOR($BS_DEFPUSHBUTTON,$WS_GROUP))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Stunden = GUICtrlRead( $Input )
$Minuten = GUICtrlRead( $Input1 )
sleep( $Stunden *3600000)
Sleep( $Minuten *60000)
Shutdown( 5 )
Case $Button2
Exit
Case $Button3
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("About", 276, 156, 415, 289)
$Tab1 = GUICtrlCreateTab(0, 0, 273, 153, $TCS_SCROLLOPPOSITE)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("Macher")
$Label1 = GUICtrlCreateLabel("Vorname: Jannis", 8, 32, 109, 19)
GUICtrlSetFont(-1, 9, 400, 0, "Arial")
GUICtrlSetBkColor(-1, 0xFFFFFF)
$Label2 = GUICtrlCreateLabel("Nachname: Gatzenberger", 8, 56, 148, 19)
GUICtrlSetFont(-1, 9, 400, 0, "Arial")
GUICtrlSetBkColor(-1, 0xFFFFFF)
$TabSheet2 = GUICtrlCreateTabItem("Kontakt")
$Label3 = GUICtrlCreateLabel("Email: JannisGatzenberger@gmx.de", 10, 31, 232, 19)
GUICtrlSetFont(-1, 9, 400, 0, "Arial")
GUICtrlSetBkColor(-1, 0xFFFFFF)
$Label4 = GUICtrlCreateLabel("Homepage: Jannis-hat-keine-homepage.de", 8, 56, 245, 19)
GUICtrlSetFont(-1, 9, 400, 0, "Arial")
GUICtrlSetBkColor(-1, 0xFFFFFF)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
EndSwitch
WEnd