#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Колян\Documents\Form1.kxf
$Form1_1 = GUICreate("Updater txpack v1.3", 295, 146, 360, 234)
$Button1 = GUICtrlCreateButton("Скачать текстуры 1.4.5", 74, 32, 147, 25)
$Label1 = GUICtrlCreateLabel("Внимание текстуры будут скачены в папку с updater'om", 5, 9, 286, 17)
$Label2 = GUICtrlCreateLabel("by mrShake", 232, 128, 60, 17)
$Button2 = GUICtrlCreateButton("Обновить Updater", 74, 64, 147, 25)
$Button3 = GUICtrlCreateButton("Скачать текстуры 1.4.6", 74, 97, 147, 25)
WinSetOnTop("Updater txpack v1.3", "", 1)
GUISetState(@SW_SHOW)
$IE = _IECreateEmbedded()
$GUI = GUICreate("История обновлений", 400, 200, 800,230,($WS_EX_LAYERED))
$IEGUI = GUICtrlCreateObj ($IE, 0, 0, 393, 172)
WinSetTrans($GUI, "", 500)
WinSetOnTop("История обновлений", "", 1)
GUISetState()
_IENavigate ($IE, "http://www.blackskymc.tf9.ru/obnov2.txt", 0)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
InetGet("http://blackskymc.tf9.ru/Texture_pack_by_mrshake.zip","Texture_pack_by_mrshake.zip")
Case $Button2
InetGet("http://blackskymc.tf9.ru/Updater.zip","Updater.zip")
Case $Button3
InetGet("http://blackskymc.tf9.ru/Texture_pack_by_mrshake1.4.6.zip","Texture_pack_by_mrshake1.4.6.zip")
EndSwitch
WEnd