ich peil das jetzt garnicht mehr richtig ^^
hier mal der source:
was muss da jetzt rein das er mit den button "start" und "exit" startet und beendet
und das die combobox gelesen wird und das dann das bild ersetzt wird mit dem was da in der combobox steht
ich peil das nicht mehr :/
hier mal der source:
PHP Code:
#include <ImageSearch.au3>
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 469, 110, 279, 314)
$Combo1 = GUICtrlCreateCombo("Anbaukram", 208, 16, 249, 25)
GUICtrlSetData(-1,"Getreide|Salat")
GUICtrlCreateEdit("", 8, 8, 185, 89)
GUICtrlSetData(-1, StringFormat("1.) Wähle hier aus was \r\n du anbauen willst\r\n\r\n2.) Drücke auf Start und \r\n lehne dich zurück"))
$Start = GUICtrlCreateButton("Start", 224, 56, 91, 33, 0)
$Exit = GUICtrlCreateButton("Exit", 344, 56, 91, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
****[FEHLENDES STÜCK]******
$x1 = 0
$y1 = 0
Func _start()
Sleep (3000)
While 1
MouseClick ("LEFT",880,280,1,5)
Sleep (500)
$result = _ImageSearch("Getreide.bmp",1,$x1,$y1,2)
if $result=1 Then
MouseClick ("LEFT",$x1,$y1,1,5)
EndIf
und das die combobox gelesen wird und das dann das bild ersetzt wird mit dem was da in der combobox steht
ich peil das nicht mehr :/