#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Ловади бот(Кликер)", 305, 98, 199, 114)
$Button1 = GUICtrlCreateButton("Начать", 104, 64, 75, 25)
;$Input1 = GUICtrlCreateInput("", 16, 32, 273, 21)
$Label1 = GUICtrlCreateLabel("Введите колличество лошадей во вкладке без завода", 16, 8, 280, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '00000419' Then
MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00000419->' & $aResult[1] & ')')
EndIf
EndFunc
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
_WinWaitActivate("Домашняя страница игрока - Google Chrome","")
MouseClick("left",244,400,1)
_WinWaitActivate("Мои лошади - Google Chrome","")
MouseClick("left",201,511,1)
Sleep(1000)
_WinWaitActivate("","")
MouseClick("left",186,389,1)
Sleep(1000)
MouseClick("left",321,481,1)
Sleep(1000)
MouseClick("left",216,719,1)
Sleep(1000)
MouseClick("left",192,461,1)
Sleep(1000)
MouseClick("left",285,393,1)
Sleep(1000)
MouseClick("left",363,385,1)
Sleep(1000)
MouseClick("left",276,448,1)
Sleep(1000)
MouseClick("left",183,580,1)
Sleep(1000)
MouseClick("left",806,682,1)
Sleep(10000)
EndSwitch
WEnd