http://files.mail.ru/LAN8BR
Сам скрипт:
IfWinNotActive, RIFT, , WinActivate, RIFT,
WinWaitActive, RIFT,
Logfile = C:\Users\Schmule\Documents\RIFT\log.txt ;Customize to personal Rift noncombat log file location.
fish :=0
top:
FileDelete, %logfile%
last_line :=0
sleep, 500
Send, -
sleep, 400
MouseClick, left, 876, 373 ;Customize mouse coordinate for pole click location.
Sleep, 200
If fish = 1
goto bait
go:
Timer := A_TickCount
Go-Loop:
{
Loop, read, %logfile%
last_line := A_LoopReadLine
{
sleep, 200
IfInString, last_line, свойства усилителя больше
fish :=1
IfInString, last_line, Тащите рыбу!
goto reel
IfInString, last_line, Рыба сорвалась.
goto top
IfInString, last_line, Рыбалка прекращена
goto top
IfInString, last_line, в ваших руках
goto top
If A_TickCount - Timer < 30000
Goto, Go-Loop
Goto, top
}
}
reel:
Loop
{
FileDelete, %logfile%
last_line :=0
sleep, 200
Send, -
goto go
}
bait:
Loop
{
fish :=0
sleep, 200
Send, 0
sleep, 200
MouseClick, left, 1601, 883 ;Customize mouse coordinate for pole click location.
sleep, 4000
Reload
}
^+1::Goto, bait
^+2::Pause
^+3::Reload
Escape::ExitApp