Ich versuche ein Skript zu erstellen, das ein Klick-Makro ausführt, das so lange fortgesetzt wird, bis die letzte Zeile in der Textdatei etwas Bestimmtes anzeigt.AutoHotkey read lastline
nicht viel Erfahrung haben
NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode, Event ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. SetMouseDelay, 22
p::
Loop, {
Send, ^{Click 758, 243} Send, ^{Click 903, 545} Send, ^{Click 758, 305} Send, ^{Click 903, 545} Send, ^{Click 793, 329} Send, ^{Click 903, 545} Send, ^{Click 758, 454} Send, ^{Click 903, 545} Send, ^{Click 1036, 412} Send, ^{Click 1711, 719} Send, ^{Click 1028, 259} Send, +{Click 903, 545} Loop read, F:\Cooking\bread\Flour_amount.txt { Loop, parse, A_LoopReadLine, last_line := A_LoopReadLine, if InString, A_LoopReadLine, Too much Flour, Break Else continue }
}
Süße Dank Mann gehen, dass –
auszuprobieren Aber die Sache ist, sollte seine nur die letzte Zeile gelesen, weil sein eine Log-Datei von einem Spiel, so dass ihr ständig immer neue Protokolle –