Написал простейшего бота для тюряги подскажите как сделать, чтоб он автоматически собирал сиги и прибыль и показывал статистику? Заранее благодарен.
Вот сам код:
Ссылка на приложение: http://my.mail.ru/apps/552078?ref=cat
Вот сам код:
Код:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=Untitled - 3.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Тюряга by Vadyarka", 248, 79, 192, 124)
$Button1 = GUICtrlCreateButton("Собрать сиги", 128, 24, 99, 33)
$Button2 = GUICtrlCreateButton("Собрать прибыль", 16, 24, 99, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$id =InputBox('ID пользователя', 'Введите ID пользователя', 'айди', '', 360, 120)
$key =inputBox('Key пользователя', 'Введите Key пользователя', 'Key', '', 360, 120)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
For $i = 5 To 5
$URL = "http://109.234.156.254/prison/universal.php?office"
$PostData = "app%5Fid=552078&method=office&getidea=1&key="& $key &"&sig=f81d17a676f1a595b4638ed0b09d5121&user="& $id &""
$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
ToolTip($i, 0, 0)
Sleep(200)
Next
Case $Button2
For $i = 1 To 1
$URL = "http://109.234.156.254/prison/universal.php?getAllBuildingsRewards"
$PostData = "app%5Fid=552078&method=getAllBuildingsRewards&key="& $key &"&sig=5ad292345723e69b04b0655c3649d99d&user="& $id &""
$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
ToolTip($i, 0, 0)
Sleep(200)
Next
EndSwitch
WEnd
Ссылка на приложение: http://my.mail.ru/apps/552078?ref=cat