Hallo,
ich habe folgendes Problem:
Es müssen etliche Daten erfasst werden.
Ich möchte gerne folgendes machen:
Das Feld das den Focus hat (soll automatisch prüfen) ob Text enthalten ist.
Wenn JA , dann geht es nach 2 Sekunden mit TAB zum nächsten Feld!
Ich habe m. ControlFocus u.s.w. probiert
alles ohne Erfolg
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1_1 = GUICreate("Form1", 615, 484, 192, 124)
$txtJahr = GUICtrlCreateInput("2014", 128, 48, 49, 32)
GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif")
$txtOrdner = GUICtrlCreateInput("", 128, 112, 441, 32)
GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif")
$txtDatei = GUICtrlCreateInput("", 128, 168, 441, 32)
GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif")
$txtAdresse = GUICtrlCreateInput("", 128, 224, 441, 32)
GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif")
$txtKopie = GUICtrlCreateInput("", 128, 352, 441, 32)
GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif")
$Label1 = GUICtrlCreateLabel("Jahr:", 72, 48, 45, 28)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$lblOrdner = GUICtrlCreateLabel("Ordner", 48, 112, 64, 28, $SS_RIGHT)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$lblDatei = GUICtrlCreateLabel("Datei", 69, 167, 46, 28, $SS_RIGHT)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$lblAdresse = GUICtrlCreateLabel("Adresse", 38, 232, 74, 28, $SS_RIGHT)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$lblKopie = GUICtrlCreateLabel("Kopie", 56, 354, 53, 28, $SS_RIGHT)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$btnEnde = GUICtrlCreateButton("beenden", 496, 416, 75, 25)
$btnStart = GUICtrlCreateButton("Start", 496, 40, 75, 41)
GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $txtJahr
;Send ("{Tab}")
Case $txtOrdner
Case $txtDatei
Case $txtAdresse
Case $txtKopie
Case $btnEnde
Exit
Case $btnStart
EndSwitch
WEnd
Grüße
Ilse