Hallo Fachmenschen,
das ist wahrscheinlich wieder einmal so eine Dummy-Anfängerfrage... Doch ich suchte in der AutoIt-Hilfe, in deren Appendix'es, in den Makro- und UDF-Beschreibungen, sowie zu Guter letzt in diesem und im englischen Forum sowie in der Wiki. Bevor jetzt jemand denkt eine Lösung meiner Frage wäre leicht zu finden, weise ich auf meine Sig. hin...
Szenario:
Ich habe ein AutoIt-GUI, das ich als "Kontrollfenster" benutze. Drücke ich dort einen Button, öffnet sich eine weitere GUI, die bisher nur ein Edit-Control-Element enthält.
Das ganze läuft (bis zur Umstellung) im MessageLoopModus.
Während also mein Script so vor sich her läuft, fragt es bestimmte Zustände ab (Erläuterung in diesem Thread). Wird ein bestimmter Zustand festgestellt, dann wird dieses Ereignis mit FileOpen(), FileWriteLine(), FileClose() in eine Log-Datei geschrieben.
Wenn ich jetzt den Button drücke, der das Fenster mit dem Edit-Control öffnet, dann wird zuerst mit FileOpen(), FileRead(), FileClose() die Log-Datei eingelesen und im Edit-Control dargestellt. So weit, so gut.
Von jetzt an soll folgendes gemacht werden:
a) Jedes weitere Ereignis soll - so wie es in die Datei geschrieben wurde - im Edit-Control dargestellt werden, und
b) danach in die Datei geschrieben werden.
An und für sich ist das auch noch nicht einmal mein Problem - zur Darstellung im Edit-Control steht mir ja die Funktion ControlSend() zur Verfügung.
Meine Frage ist viel mehr: Kennt jemand eine Möglichkeit mit Autoit, eine GUI-Control - die von mir beschriebene Edit-Control - als "Konsole" zu definieren, die als Standard für eine - nur für dieses Control vorgesehene - Ausgabe festgelegt werden kann?
Ich frage, weil ich denke, dass eine solche Möglichkeit den Programmablauf erheblich beschleunigen könnte, da nicht jedes Mal die Funktion ControlSend() sowie die weiteren Anweisungen hierzu verarbeitet werden müssen.
Danke - wie immer in diesem freundlichen Forum voller geballtem AutoIt-Wissens - für Eure Antworten.