Hi sorry for my bad english i hope you guys know what i mean
, i have problem about this script, i want to make script that will send input key every incoming text like "You have caught a fish" and then click the ctrl key and when the text coming again it will repeat to click the ctrl again and looping without click the ALT+M button again.
This is my code
Code: Select all
!M::
FileRead, logs, %A_Documents%\GTA San Andreas User Files\SAMP\chatlog.txt
if (RegExMatch(logs, "You have caught an fish! 'Click' to take the fish!"))
{
Send {ctrl down}
Sleep, 1000
Send {ctrl up}
}
logs := ""
return
thaaanks