hi@all
also ich bin dabei eine Oberfläche für ein browsergame zu proggen. das heißt ich will mich nicht mehr selber durch die menüs klicken, sondern man soll vorher mit autoit eine liste machen die das progg dann durcharbeitet.
das ist schon mal die erste gui
Spoiler anzeigen
$mainwindow = GUICreate("Bauen in EC",300,200)
Opt("GUIOnEventMode", 1)
$eingeben=GUICtrlCreateButton("Planeten eingeben",9,10,115,29,-1,-1)
$anzeigen=GUICtrlCreateButton("Planeten anzeigen",9,40,115,29,-1,-1)
$bearbeiten=GUICtrlCreateButton("Schleife bearbeiten",9,70,115,29,-1,-1)
$starten=GUICtrlCreateButton("Schleife starten",9,100,115,29,-1,-1)
GUISetState(@sw_show)
GUICtrlSetOnEvent($eingeben, "Planieingeben")
GUICtrlSetOnEvent($anzeigen, "Planianzeigen")
GUICtrlSetOnEvent($bearbeiten, "Schleifebearbeiten")
GUICtrlSetOnEvent($starten, "starten")
GUICtrlSetOnEvent($GUI_EVENT_CLOSE, "Beenden")
While 1
sleep (1)
WEnd
So, wenn man jetzt auf denn Button Planeten eingeben klickt soll eine zweite GUI erscheinen:
Spoiler anzeigen
$planieingebwindow = GUICreate("Planeten eingeben",300,200)
Opt("GUIOnEventMode", 1)
GUICtrlCreateLabel("Kopieren sie den html Quelltext von der EC Konstruktionsseite in das Feld.",20,10,174,44,-1,-1)
$quelltext=GUICtrlCreateInput("hier hinein",25,71,110,30,-1,-1)
$ok=GUICtrlCreateButton("Wenn fertig hier draufdrücken",42,129,162,31,-1,-1)
GUICtrlSetOnEvent($ok, "quelbearbeit")
GUICtrlSetOnEvent($GUI_EVENT_CLOSE, "Beenden")
GUISetState(@SW_SHOW, $planieingebwindow)
Dazu hab ich jetzt die ganzen Funktionen angelegt. Die zweite GUI in die Funktion Planieingeben geschrieben. Doch wenn man jetzt in der zweiten Gui auf OK klickt wird die nächste funktion quelbearbeit nicht gestartet.
hoffe mir kann jemand helfen.
mfg Bjoerni