schon ein Release xD
version 1.1
<= Patcher Release 1.1
; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ;
; =<>=<>=<>=<>=<>! AllesPatcher !<>=<>=<>=<>=<>= ; =<>=<>=< Made for: Autoit.de, private >=<>=<>= ;
; AutoIt version: 3.3.4.0 <=!= ; Script Copyright: ==>>=> black_skorpy <=<<== ;
; Language: German <=!= ; >Darf in unveränderter compileter Form auch <= ;
; Author: "black_skorpi",Porgress by NoName <=!= ; >anderweitig genutzt und hochgeladen werden <= ;
; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ;
; >==<>=<>=<> ==>> Script Start <<== <>=<>=<>==< ; => ==>> <>Verändern nicht erlaubt!xD<> <<== <= ;
; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ;
#NoTrayIcon
#include <GUIConstantsEx.au3>
#include <GDIPlus.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ###
$hGUI = GUICreate("Patchvorgang", 179, 16, -1, -1, -$WS_Popup, BitOr($WS_EX_TOOLWINDOW, $WS_EX_TOPMOST))
$hGUIProgress = GUICtrlCreatePic("", 0, 0, 180, 17)
#EndRegion ### END Koda GUI section ###
GUISetState()
_GDIPlus_Startup()
#include <file.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
$iSize = 0
$iBytesAll = 0
$iPercent = 0
$iPercentAll= 0
$iPercentRound = 0
$i = 0
$iPercentAll += $iPercent
$hBitmap = _WinAPI_CreateBitmap(180, 17, 1, 32)
$hImage = _GDIPlus_BitmapCreateFromHBITMAP($hBitmap)
$hGraphic = _GDIPlus_ImageGetGraphicsContext($hImage)
_ProgressCreate($hGraphic, 0x6FFF0000, "Fortschritt: " & $iPercentRound & "%", $i * 1.8, 180, $i * 0.85)
$hNewBitmapHandle = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage)
_SetBitmapToCtrl($hGUIProgress, $hNewBitmapHandle)
InetGet("http://mmorpgaming.pytalhost.com/autoit/list.txt", @TempDir & "\list.txt",1)
Global $afile
If _FileReadToArray(@TempDir & ".\" & "list.txt",$afile) Then
For $i = 1 To $afile[0]
If Not FileExists(@ScriptDir & "\" & $afile[$i]) Then
$iSize = $iSize + InetGetSize("http://mmorpgaming.pytalhost.com/autoit/" & $afile[$i],8)
EndIf
$size = FileGetSize(@ScriptDir & "\" & $afile[$i])
$sizeonline = InetGetSize("http://mmorpgaming.pytalhost.com/autoit/" & $afile[$i],8)
If FileExists(@ScriptDir & "\" & $afile[$i]) And $size <> $sizeonline Then
$iSize = $iSize + InetGetSize("http://mmorpgaming.pytalhost.com/autoit/" & $afile[$i],8)
EndIf
Next
For $i = 1 To $afile[0]
If Not FileExists(@ScriptDir & "\" & $afile[$i]) Then
InetGet("http://mmorpgaming.pytalhost.com/autoit/" & $afile[$i],@ScriptDir & "\" & $afile[$i],8,0)
$iBytesDone = InetGetSize("http://mmorpgaming.pytalhost.com/autoit/" & $afile[$i],8)
$iPercent = $iBytesDone / $iSize * 100
EndIf
$iPercentAll += $iPercent
$iPercentRound = Round($iPercentAll, 1)
$hBitmap = _WinAPI_CreateBitmap(180, 17, 1, 32)
$hImage = _GDIPlus_BitmapCreateFromHBITMAP($hBitmap)
$hGraphic = _GDIPlus_ImageGetGraphicsContext($hImage)
_ProgressCreate($hGraphic, 0x6FFF0000, "Fortschritt: " & $iPercentRound & "%", $i * 1.8, 180, $i * 0.85)
$hNewBitmapHandle = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage)
_SetBitmapToCtrl($hGUIProgress, $hNewBitmapHandle)
Next
EndIf
_GDIPlus_Shutdown()
Func _ProgressCreate($hGraphic, $vColor, $vText, $vPercent, $vWidth, $vTextWidth)
_GDIPlus_GraphicsClear($hGraphic, 0xFFFFFFFF)
Dim $hPenProgress[99]
For $i = 0 To 8
$vSWColor = "0xFF" & Hex($i * 2 * 10, 2) & Hex($i *2* 10, 2) & Hex($i * 2 * 10, 2)
$hPenProgress[$i] = _GDIPlus_PenCreate($vSWColor)
_GDIPlus_GraphicsDrawLine($hGraphic, 0, $i, $vWidth, $i, $hPenProgress[$i])
_GDIPlus_PenDispose($hPenProgress[$i])
Next
For $i = 0 To 7
$vSWColor = "0xFF" & Hex($i*2 * 10, 2) & Hex($i *2* 10, 2) & Hex($i *2* 10, 2)
$hPenProgress[$i] = _GDIPlus_PenCreate($vSWColor)
_GDIPlus_GraphicsDrawLine($hGraphic, 0, 16 - $i, $vWidth, 16 - $i, $hPenProgress[$i])
_GDIPlus_PenDispose($hPenProgress[$i])
Next
$hBrushProgress = _GDIPlus_BrushCreateSolid($vColor)
_GDIPlus_GraphicsFillRect($hGraphic, 0, 0, $vPercent, 17, $hBrushProgress)
$hFontFamilyProgress = _GDIPlus_FontFamilyCreate("Arial")
$hFontProgress = _GDIPlus_FontCreate($hFontFamilyProgress, 8, 1)
$hLayoutProgress = _GDIPlus_RectFCreate($vTextWidth, 1, $vWidth, 17)
$hFormatProgress = _GDIPlus_StringFormatCreate()
$hBrushTextProgress = _GDIPlus_BrushCreateSolid(0xFFFFFFFF)
_GDIPlus_GraphicsDrawStringEx($hGraphic, $vText, $hFontProgress, $hLayoutProgress, $hFormatProgress, $hBrushTextProgress)
$hPenOutLineTL = _GDIPlus_PenCreate(0xFF666666)
$hPenOutLineBR = _GDIPlus_PenCreate(0xFFDDDDDD)
_GDIPlus_GraphicsDrawLine($hGraphic, 0, 0, $vWidth, 0, $hPenOutLineTL)
_GDIPlus_GraphicsDrawLine($hGraphic, 0, 0, 0, 16, $hPenOutLineTL)
_GDIPlus_GraphicsDrawLine($hGraphic, 0, 16, $vWidth, 16, $hPenOutLineBR)
_GDIPlus_GraphicsDrawLine($hGraphic, $vWidth - 1, 0, $vWidth - 1, 16, $hPenOutLineBR)
_GDIPlus_PenDispose($hPenOutLineTL)
_GDIPlus_PenDispose($hPenOutLineBR)
_GDIPlus_BrushDispose($hBrushProgress)
_GDIPlus_FontFamilyDispose($hFontFamilyProgress)
_GDIPlus_FontDispose($hFontProgress)
_GDIPlus_StringFormatDispose($hFormatProgress)
_GDIPlus_BrushDispose($hBrushTextProgress)
EndFunc
Func _SetBitmapToCtrl($vCtrlID, $h_Bitmap)
Local $hWnd = GUICtrlGetHandle($vCtrlID)
If $hWnd = 0 Then Return SetError(1, 0, 0)
Local $vOldStyle = _WinAPI_GetWindowLong($hWnd, -16)
_WinAPI_SetWindowLong($hWnd, -16, BitOR($vOldStyle, 0xE))
Local $vOldBmp = _SendMessage($hWnd, 0x0172, 0, $h_Bitmap)
If $vOldBmp <> 0 Then _WinAPI_DeleteObject($vOldBmp)
EndFunc
; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ;
; >==<>=<>=<>! ==>> Script End <<== !<>=<>=<>==< ; => ==>->!-! =>=> Version 1.10 <=<= !-!<-<== <= ;
; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ; =<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>=<>= ;