hallo da mein opa, mein bruder und ich immer untereinander für die bundesliga tippen habe ich mir gedacht ich mache mal ein programm welches alles automatisiert.
programm ist noch lange nicht fertig denn das ganze ftp geschnacksel fehlt noch. und den code müsste ich glaube auch(nicht meckern habe erst gestern angefangen mit dem prog) mal veringern weil das echt nervt für jeden spieltag alles wieder neu zu machen.
problem ist folgendes:
Spoiler anzeigen
While 1
$Msg = GUIGetMsg()
Switch $Msg
Case $Beenden
Exit
Case $Regeln
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\manfred\desktop\autoit3\forms\regeln.kxf
$Regeln = GUICreate("Regeln", 645, 457, 228, 154)
GUISetBkColor(0xA6CAF0)
$Edit1 = GUICtrlCreateEdit("", 16, 52, 581, 365, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_NOHIDESEL,$ES_READONLY,$ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL), 0)
GUICtrlSetData(-1, "Edit1")
$Label1 = GUICtrlCreateLabel("Das sind die aktuell vereinbarten Regeln:", 8, 16, 198, 17)
$closerules = GUICtrlCreateButton("schließen", 532, 428, 97, 21, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUIDelete("Regeln")
ExitLoop
EndSwitch
WEnd
Case $sendtipp
$s1h = GUICtrlRead($input1)
$s1g = GUICtrlRead($input2)
$s2h = GUICtrlRead($input3)
$s2g = GUICtrlRead($input4)
$s3h = GUICtrlRead($input5)
$s3g = GUICtrlRead($input6)
$s4h = GUICtrlRead($input7)
$s4g = GUICtrlRead($input8)
$s5h = GUICtrlRead($input9)
$s5g = GUICtrlRead($input10)
$s6h = GUICtrlRead($input11)
$s6g = GUICtrlRead($input12)
$s7h = GUICtrlRead($input13)
$s7g = GUICtrlRead($input14)
$s8h = GUICtrlRead($input15)
$s8g = GUICtrlRead($input16)
$s9h = GUICtrlRead($input17)
$s9g = GUICtrlRead($input18)
$spieltag = GUICtrlRead($List1)
If $s1h = "" Then
lf()
elseif $s1g = "" Then
lf()
im originalcode wäre das in der zeile 235(im anhang)...in der hauptgui sieht man ja schon die while schleife die die guigetmsg funktion ausführt..
jetzt wollte ich noch zusätzlich in diese hauptgui eine Regel gui einbauen aber immer wenn ich diese schließe kann ich sie aus der hauptgui nicht mehr öffnen die anderen sachen gehen aber noch
hoffe es kann jemand helfen denn ich wollte es bis morgen abend fertig haben da dann der 5. spieltag anfängt...