Hallo,
ich bin neu hier und probiere seit gestern ein bischen mit AutoIt herum. Erfahrungen habe ich sonst mit C++.
Mein Programm ruft, aus unerklährlicher Weise viel zu viele Instanzen vom Editor (Notepad). Woran kann das liegen und wie werde ich es wieder los?
Run("notepad.exe")
WinWaitActive("Unbenannt - Editor")
Sleep(1000)
Send("Hallo Dan, das ist der automatischr Wortgenerator"&@CRLF)
Sleep(500)
Send("gescriptet mit AutoIt"&@CRLF)
Sleep(500)
Send("kannst ja mal danach suchen - vieleicht willst du es Dir ja installieren"&@CRLF)
Sleep(500)
Send("es ist keine echte Programmiersprache sondern eine Scriptlanguage"&@CRLF)
Sleep(500)
Send("damit ist ein sehr schneller Einstieg möglich"&@CRLF)
Sleep(500)
Send("viele Grüße Rocco"&@CRLF)
Sleep(500)
Send("PS.: selbstverständlich schließt sich das Fenster auch von selber wieder"&@CRLF)
Sleep(500)
Send("wir leben ja hier in einer Service Welt"&@CRLF)
Sleep(500)
Send("noch 15 Sekunden"&@CRLF)
Sleep(15000)
WinClose("Unbenannt - Editor")
WinWaitActive("Editor")
Send("!n")
Run("notepad.exe")
WinWaitActive("Unbenannt - Editor")
Send(":-)")
Sleep(500)
Send(":-)")
Sleep(500)
Send(":-)")
Sleep(500)
Send(":-)")
Sleep(500)
Send(":-)")
Sleep(500)
Send(":-)")
Sleep(500)
Send(":-)")
Sleep(500)
Send(":-)")
Sleep(500)
Send(":-)")
Sleep(500)
Send(":-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
Send(":-):-):-):-):-):-):-):-):-):-)"&@CRLF)
Sleep(500)
WinClose("Unbenannt - Editor")
WinWaitActive("Editor")
Send("!n")
;sendet Alt + N = nicht speichern