#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Ловади бот", 205, 180, 192, 124)
$Button1 = GUICtrlCreateButton("Авторизация", 72, 64, 75, 25)
$Input1 = GUICtrlCreateInput("", 64, 16, 121, 21)
$Input2 = GUICtrlCreateInput("", 64, 40, 121, 21)
$Label1 = GUICtrlCreateLabel("Логин:", 8, 24, 38, 17)
$Label2 = GUICtrlCreateLabel("Пароль:", 8, 48, 45, 17)
$Label3 = GUICtrlCreateLabel("Экю:", 16, 120, 28, 17)
$Label4 = GUICtrlCreateLabel("0", 48, 120, 10, 17)
$Label5 = GUICtrlCreateLabel("Лошади:", 16, 144, 47, 17)
$Label6 = GUICtrlCreateLabel("0", 64, 144, 10, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$URL = "http://www.lowadi.com/site/doLogIn"
$PostData = "&login=&"& $Input1 &"&password="& $Input2 &"&redirection=http%3A%2F%2Fwww.lowadi.com%2Fjeu%2F%3Fidentification%3D1&isBoxStyle=&1cf7cf527e="
$oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1")
$oHTTP.Open("POST", $URL)
$oHTTP.SetRequestHeader("Content-Type","application/x-www-form-urlencoded")
$oHTTP.Send($PostData)
$oHTTP.WaitForResponse
$Response = $oHTTP.ResponseText
Case $Form1
EndSwitch
WEnd