Hallo,
nach einiger Abstinenz bin ich wieder mit AutoIt eingestiegen.
Ein kleines Programm soll in einen Fenster Werte eintragen und danach auf weiter drücken.
Mit Notepad usw. keine Probleme.
Aber mit dem betroffenen Fenster tut sich garnix. Aus dem Controls heraus kann ich lesen, aber nix schreiben oder Mouseclicks ausführen.
Es sind also die richtigen Namen, aber es lässt sich nicht bearbeiten.
WinActivate wurde versucht. sleep wurde versucht. Mouseclick, Mousedown/Mouseup, Controlsettext.
Mit Notepad, Scite und Geany keine Probleme. Die Edits passen und können geschrieben und gelesen werden.
; Wait 10 seconds for the Notepad window to appear.
Local $hWnd = WinWait("xxxxxxxxxxxx", "", 10)
; Set the edit control in Notepad with some text. The handle returned by WinWait is used for the "title" parameter of ControlSetText.
ControlSetText($hWnd, "", "TEdit4", "66666")
; Retrieve the text of the edit control in Notepad. The handle returned by WinWait is used for the "title" parameter of ControlGetText.
Local $sText = ControlGetText($hWnd, "", "TEdit4")
; Display the text of the edit control.
MsgBox($MB_SYSTEMMODAL, "", "The text in Edit1 is: " & $sText)
Send("{ENTER}")
Mouseclick event mit Koords.
Warum ghet das nicht?