Bei meinem Script habe ich Probleme mit AutoItSetOption und WinActivate
Das geht:
AutoItSetOption("WinTitleMatchMode", 2)
MsgBox(0,"",WinExists("Notepad")) ; ergibt immer 1
WinActivate("Untitled - Notepad") ; funktioniert
WinWaitActive("Untitled - Notepad")
Send("testing")
Das geht nicht:
AutoItSetOption("MustDeclareVars", 1 )
AutoItSetOption("WinTitleMatchMode", 2)
MsgBox(0,"",WinExists("Notepad")) ; ergibt immer 1
WinActivate("Notepad"); funktioniert nicht!
WinWaitActive("Notepad")
Send("testing")
Was mache ich falsch?
MfG HDJanzen