OK i am trying to make a macro that records mouse clicks. i have got it down perfectly except it doesnt see the "end-of-file" (-1) in @error, meaning it doesnt automatically stop the macro, but shuts it down completely which can be quite annoying.
CODE
While $b = 2
$line = FileReadLine("ClickLog.txt", $i)
$Logs = StringSplit($line, ",")
MouseMove($Logs[2], $Logs[3], 2)
MouseClick("left")
sleep("150")
$i = $i + 1
If @error = -1 Then
Msgbox(0,"123","end")
$i = 1
$b = 1
ExitLoop
EndIf
Wend
Also; can someone plz also tell me how i could record keypress functions? so i know if anything is typed while its recording (such as in a txt file)
It's just for personal use so i can know who uses my comp while im afk - and what they do....