Beiträge von UEZ
-
-
Ab 3.3.9.0:
_GDIPlus_ImageResize()
_GDIPlus_ImageScale()Gruß,
UEZ -
Das Meiste sollte auch in meinem Proggy vorhanden sein, soweit ich das gesehen habe.
Kannst ja mal testen und mir Feedback geben (bin hart im Nehmen).

Danke und Gruß,
UEZ -
Probiere es mal damit:
[autoit]
[/autoit]
Func CaptureWindowsContent($hWnd, $sFile = @ScriptDir & "\Test.png")
Local $aWin = WinGetPos(HWnd($hWnd))
Local Const $iYCaption = _WinAPI_GetSystemMetrics(4)
Local Const $iYFixedFrame = _WinAPI_GetSystemMetrics(8)
Local Const $iXFixedFrame = _WinAPI_GetSystemMetrics(7)
Local $aWin2 = WinGetClientSize(HWnd($hWnd))
Local $hDC_Capture = _WinAPI_GetDC(HWnd($hWnd))
Local $hMemDC = _WinAPI_CreateCompatibleDC($hDC_Capture)
Local $hHBitmap = _WinAPI_CreateCompatibleBitmap($hDC_Capture, $aWin[2], $aWin[3])
Local $hObjectOld = _WinAPI_SelectObject($hMemDC, $hHBitmap)
DllCall("gdi32.dll", "int", "SetStretchBltMode", "hwnd", $hDC_Capture, "uint", 4)
DllCall("user32.dll", "int", "PrintWindow", "hwnd", $hWnd, "handle", $hMemDC, "int", 0)
_WinAPI_DeleteDC($hMemDC)
_WinAPI_SelectObject($hMemDC, $hObjectOld)
_WinAPI_ReleaseDC($hWnd, $hDC_Capture)
Local $hBitmap = _GDIPlus_BitmapCreateFromHBITMAP($hHBitmap)
Local $hBitmap_Crop = _GDIPlus_BitmapCloneArea($hBitmap, $iXFixedFrame, $iYCaption + $iXFixedFrame, $aWin2[0], $aWin2[1])
_GDIPlus_ImageSaveToFile($hBitmap_Crop, $sFile)
_GDIPlus_BitmapDispose($hBitmap)
_GDIPlus_BitmapDispose($hBitmap_Crop)
_WinAPI_DeleteObject($hHBitmap)
EndFuncGruß,
UEZ -
Coole Idee Eukalyptus!

Gruß,
UEZ
-
Was ist eigentlich der Zweck, Bitmaps in dieses Format umzuwandeln?
Gruß,
UEZ -
Du sagtest was von 32x16 großen Bildern, aber jetzt ist von großen Bildern die Rede.
Da AutoIt ab einer bestimmten Größe für solche Zwecke nicht mehr geeignet ist, müsstest du auf Alternativen zurück greifen.
Die beste Lösung wäre Inline ASM, aber darin bin ich nicht fit genug, um eine Lösung zu basteln.Vielleicht können dir die ASM Cracks hierbei weiter helfen.
Gruß,
UEZ -
Probiere es mal damit:
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
#include <Array.au3>
#include <GDIPlus.au3>_GDIPlus_Startup()
[/autoit] [autoit][/autoit] [autoit]
Global $hBitmap = _GDIPlus_BitmapCreateFromFile(@ScriptDir & "\Monochrom 16x32.bmp")
If _GDIPlus_ImageGetWidth($hBitmap) <> 16 Or _GDIPlus_ImageGetHeight($hBitmap) <> 32 Then Exit MsgBox(0, "Fehler", "Bild ist nicht 16x32 Pixel groß!") * _GDIPlus_Shutdown()
$iTimer = TimerInit()
$aResult = BitmapToBinary($hBitmap)
ConsoleWrite(TimerDiff($iTimer) & @LF)
_GDIPlus_BitmapDispose($hBitmap)
_GDIPlus_Shutdown()
_ArrayDisplay($aResult)Func BitmapToBinary($hImage)
[/autoit] [autoit][/autoit] [autoit]
Local $iW = _GDIPlus_ImageGetWidth($hImage), $iH = _GDIPlus_ImageGetHeight($hImage) ;get width and height of the image
Local $hBitmap = _GDIPlus_BitmapCreateFromScan0($iW, $iH)
Local $hContext = _GDIPlus_ImageGetGraphicsContext($hBitmap)
_GDIPlus_GraphicsDrawImageRect($hContext, $hImage, 0, 0, $iW, $iH)Local $tBitmapData = _GDIPlus_BitmapLockBits($hBitmap, 0, 0, $iW, $iH, BitOR($GDIP_ILMWRITE, $GDIP_ILMREAD), $GDIP_PXF32ARGB) ;locks a portion of a bitmap for reading and writing. More infor at http://msdn.microsoft.com/en-us/library/…8(v=vs.85).aspx
[/autoit] [autoit][/autoit] [autoit]
Local $iScan0 = DllStructGetData($tBitmapData, "Scan0") ;get scan0 (pixel data) from locked bitmap
Local $iSearchPixel = Int(0xFF000080), $iReplaceColor = 0x00000000 ;color format 0xAARRGGBB
Local $tPixel = DllStructCreate("int[" & $iW * $iH & "];", $iScan0)
Local $iPixel, $iRowOffset, $iX, $iY, $iVal, $iBits, $y = 0, $z = 0, $aBytes[16*4]For $iX = 0 To $iW - 1
[/autoit]
For $iY = 0 To $iH - 1 ;get each pixel in each line and row
$iPixel = BitAND(DllStructGetData($tPixel, 1, 1 + $iX + ($iY * $iW)), 1) ;get pixel color
$iBits &= $iPixel
$iVal += $iPixel * 2 ^ (7 - $z)
$z += 1
If $z = 8 Then
$aBytes[$y] = $iVal
$y += 1
$iVal = 0
$iBits = ""
$z = 0
EndIf
Next
Next
_GDIPlus_BitmapUnlockBits($hBitmap, $tBitmapData) ;unlocks a portion of a bitmap that was locked by _GDIPlus_BitmapLockBits
Return $aBytes
EndFuncBei mit benötigt die Operation für ein 16x32 ca. 3.5 Millisekunden.
Das Resultat landet in einem Array, so dass Viererblöcke eine Spalte abbilden (0-3, 4-7, etc.).
Gruß,
UEZ -
-
Schaue mal in der Hilfe unter _GDIPlus_BitmapLockBits() nach. Dort ist ein Beispiel, wie man an die Pixel Informationen kommt.
Gruß,
UEZ -
Dann poste den SciTE Konsolen Output, denn ich sehe nicht, warum du ein Syntax Error bekommst.
Gruß,
UEZ -
Poste mal dein Programm.
Gruß,
UEZ -
Es startet Notepad und anschließend die Animation. Die Animation läuft solange, bis Notepad geschlossen wird.
Was hat die Animation mit Aero zu tun?
Gruß,
UEZ -
Hier mal ein Beispiel:
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
;coded by UEZ build 2013-05-02, idea from http://tympanus.net/codrops/2012/1…ing-animations/
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <Memory.au3>
#include <GDIPlus.au3>
#include <WindowsConstants.au3>Global $iProgram_PID = Run("notepad.exe")
[/autoit] [autoit][/autoit] [autoit]Global Const $hDwmApiDll = DllOpen("dwmapi.dll")
[/autoit] [autoit][/autoit] [autoit]
Global $sChkAero = DllStructCreate("int;")
DllCall($hDwmApiDll, "int", "DwmIsCompositionEnabled", "ptr", DllStructGetPtr($sChkAero))
Global $bAero = DllStructGetData($sChkAero, 1)
Global $fStep = 0.02
If Not $bAero Then $fStep = 1.25_GDIPlus_Startup()
[/autoit] [autoit][/autoit] [autoit]
Global Const $STM_SETIMAGE = 0x0172
Global $iW = 400, $iH = 210
Global Const $hGUI = GUICreate("Rotating Bokeh", $iW, $iH, -1, -1, $WS_POPUPWINDOW, $WS_EX_TOPMOST)
GUISetBkColor(0)
Global Const $iPic = GUICtrlCreatePic("", 0, 0, $iW, $iH)
GUICtrlSetState(-1, $GUI_DISABLE)
WinSetTrans($hGUI, "", 0)
GUISetState()
Global $hHBmp_BG, $hB, $iSleep = 20
GUIRegisterMsg($WM_TIMER, "PlayAnim")
DllCall("user32.dll", "int", "SetTimer", "hwnd", $hGUI, "int", 0, "int", $iSleep, "int", 0)Global $z, $iPerc
[/autoit] [autoit][/autoit] [autoit]
For $z = 1 To 255 Step $fStep
WinSetTrans($hGUI, "", $z)
NextDo
[/autoit] [autoit][/autoit] [autoit]
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
_Exit()
EndSwitch
If Not ProcessExists($iProgram_PID) Then _Exit()
Until FalseFunc _Exit()
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
GUIRegisterMsg($WM_TIMER, "")
_WinAPI_DeleteObject($hHBmp_BG)
_GDIPlus_Shutdown()
GUIDelete()
Exit
EndFuncFunc PlayAnim()
[/autoit] [autoit][/autoit] [autoit]
$hHBmp_BG = _GDIPlus_RotatingBokeh($iW, $iH, "Please wait while installing Java ...")
$hB = GUICtrlSendMsg($iPic, $STM_SETIMAGE, 0, $hHBmp_BG) ;$IMAGE_BITMAP = 0
If $hB Then _WinAPI_DeleteObject($hB)
_WinAPI_DeleteObject($hHBmp_BG)
$iPerc += 0.1
If $iPerc > 99.9 Then $iPerc = 0
EndFunc ;==>PlayAnimFunc _GDIPlus_RotatingBokeh($iW, $iH, $sString = "Please wait...", $bHBitmap = True)
[/autoit] [autoit][/autoit] [autoit]
Local Const $hBrushBall1 = _GDIPlus_BrushCreateSolid(0xE004AC6B)
Local Const $hBrushBall2 = _GDIPlus_BrushCreateSolid(0xC0E0AB27)
Local Const $hBrushBall3 = _GDIPlus_BrushCreateSolid(0xD081B702)
Local Const $hBrushBall4 = _GDIPlus_BrushCreateSolid(0xB0E70339)
Local Const $hPen = _GDIPlus_PenCreate(0xFF303030)
DllCall($ghGDIPDll, "uint", "GdipSetPenLineJoin", "handle", $hPen, "int", 2)
Local $hBitmap = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iW, "int", $iH, "int", 0, "int", $GDIP_PXF32ARGB, "ptr", 0, "int*", 0)
$hBitmap = $hBitmap[6]Local Const $hCtxt = _GDIPlus_ImageGetGraphicsContext($hBitmap)
[/autoit] [autoit][/autoit] [autoit]
_GDIPlus_GraphicsSetSmoothingMode($hCtxt, 2)
Local Const $hBmp_BG = _GDIPlus_BMPFromMemory(_Background())
Local $hBrushTexture = DllCall($ghGDIPDll, "uint", "GdipCreateTexture", "handle", $hBmp_BG, "int", 0, "int*", 3)
$hBrushTexture = $hBrushTexture[3]
_GDIPlus_BitmapDispose($hBmp_BG)
_GDIPlus_GraphicsFillRect($hCtxt, 0, 0, $iW, $iH, $hBrushTexture)
Local Const $fDeg = ACos(-1) / 180, $iRadius = 40, $iBallSize = $iRadius / 1.77, $iCircleSize = $iBallSize + 2 * $iRadius, $iBallSize2 = $iBallSize / 2, _
$iCircleSize2 = $iCircleSize / 2, $fFontSize = 11, $iW2 = -1 + $iW / 2, $iH2 = -1 + $iH / 2
Local Static $iAngle = 0
DllCall($ghGDIPDll, "int", "GdipDrawEllipse", "handle", $hCtxt, "handle", $hPen, "float", $iW2 - $iCircleSize2, "float", $iH2 - $iCircleSize2, "float", $iCircleSize, "float", $iCircleSize)
DllCall($ghGDIPDll, "int", "GdipFillEllipse", "handle", $hCtxt, "handle", $hBrushBall1, "float", -$iBallSize2 + $iW2 + Cos(2.25 * $iAngle * $fDeg) * $iRadius, "float", -$iBallSize2 + $iH2 + Sin(2.25 * $iAngle * $fDeg) * $iRadius, "float", $iBallSize, "float", $iBallSize)
DllCall($ghGDIPDll, "int", "GdipFillEllipse", "handle", $hCtxt, "handle", $hBrushBall2, "float", -$iBallSize2 + $iW2 + Cos(1.75 * $iAngle * $fDeg) * $iRadius, "float", -$iBallSize2 + $iH2 + Sin(1.75 * $iAngle * $fDeg) * $iRadius, "float", $iBallSize, "float", $iBallSize)
DllCall($ghGDIPDll, "int", "GdipFillEllipse", "handle", $hCtxt, "handle", $hBrushBall3, "float", -$iBallSize2 + $iW2 + Cos(1.66 * $iAngle * $fDeg) * $iRadius, "float", -$iBallSize2 + $iH2 + Sin(1.66 * $iAngle * $fDeg) * $iRadius, "float", $iBallSize, "float", $iBallSize)
DllCall($ghGDIPDll, "int", "GdipFillEllipse", "handle", $hCtxt, "handle", $hBrushBall4, "float", -$iBallSize2 + $iW2 + Cos(1.33 * $iAngle * $fDeg) * $iRadius, "float", -$iBallSize2 + $iH2 + Sin(1.33 * $iAngle * $fDeg) * $iRadius, "float", $iBallSize, "float", $iBallSize)
$iAngle += 2.5Local Const $hFormat = _GDIPlus_StringFormatCreate()
[/autoit] [autoit][/autoit] [autoit]
Local Const $hFamily = _GDIPlus_FontFamilyCreate("Arial")
Local Const $hFont = _GDIPlus_FontCreate($hFamily, $fFontSize, 2)
Local Const $hBrushTxt = _GDIPlus_BrushCreateSolid(0xFFFFFFFF)
Local Const $tLayout = _GDIPlus_RectFCreate(0, 0, 0, 0)
Local Const $aInfo = _GDIPlus_GraphicsMeasureString($hCtxt, $sString, $hFont, $tLayout, $hFormat)
DllStructSetData($tLayout, "X", ($iW - DllStructGetData($aInfo[0], "Width")) / 2)
DllStructSetData($tLayout, "Y", $iH / 2 + $iRadius + $iBallSize)
_GDIPlus_GraphicsDrawStringEx($hCtxt, $sString, $hFont, $tLayout, $hFormat, $hBrushTxt)_GDIPlus_FontDispose($hFont)
[/autoit] [autoit][/autoit] [autoit]
_GDIPlus_FontFamilyDispose($hFamily)
_GDIPlus_StringFormatDispose($hFormat)
_GDIPlus_BrushDispose($hBrushTxt)
_GDIPlus_BrushDispose($hBrushTexture)_GDIPlus_GraphicsDispose($hCtxt)
[/autoit] [autoit][/autoit] [autoit]
_GDIPlus_BrushDispose($hBrushBall1)
_GDIPlus_BrushDispose($hBrushBall2)
_GDIPlus_BrushDispose($hBrushBall3)
_GDIPlus_BrushDispose($hBrushBall4)
_GDIPlus_PenDispose($hPen)
If $bHBitmap Then
Local $hHBITMAP = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap)
_GDIPlus_BitmapDispose($hBitmap)
Return $hHBITMAP
EndIf
Return $hBitmap
EndFunc ;==>_GDIPlus_RotatingBokeh;==================================================================================================================================
[/autoit] [autoit][/autoit] [autoit]
; Function Name: _GDIPlus_BMPFromMemory
; Description: Loads an image which is saved as a binary string and converts it to a bitmap or hbitmap
;
; Parameters: $bImage: the binary string which contains any valid image which is supported by GDI+
; Optional: $hHBITMAP: if false a bitmap will be created, if true a hbitmap will be created
;
; Remark: hbitmap format is used generally for GUI internal images, $bitmap is more a GDI+ image format
; Don't forget _GDIPlus_Startup() and _GDIPlus_Shutdown()
;
; Requirement(s): GDIPlus.au3, Memory.au3 and _WinAPI_BitmapCreateDIBFromBitmap() from WinAPIEx.au3
; Return Value(s): Success: handle to bitmap (GDI+ bitmap format) or hbitmap (WinAPI bitmap format),
; Error: 0
; Error codes: 1: $bImage is not a binary string
; 2: unable to create stream on HGlobal
; 3: unable to create bitmap from stream
;
; Author(s): UEZ
; Additional Code: thanks to progandy for the MemGlobalAlloc and tVARIANT lines and
; Yashied for _WinAPI_BitmapCreateDIBFromBitmap() from WinAPIEx.au3
; Version: v0.98 Build 2012-08-29 Beta
;===================================================================================================================================
Func _GDIPlus_BMPFromMemory($bImage, $hHBITMAP = False)
If Not IsBinary($bImage) Then Return SetError(1, 0, 0)
Local $aResult
Local Const $memBitmap = Binary($bImage) ;load image saved in variable (memory) and convert it to binary
Local Const $len = BinaryLen($memBitmap) ;get length of image
Local Const $hData = _MemGlobalAlloc($len, $GMEM_MOVEABLE) ;allocates movable memory ($GMEM_MOVEABLE = 0x0002)
Local Const $pData = _MemGlobalLock($hData) ;translate the handle into a pointer
Local $tMem = DllStructCreate("byte[" & $len & "]", $pData) ;create struct
DllStructSetData($tMem, 1, $memBitmap) ;fill struct with image data
_MemGlobalUnlock($hData) ;decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE
$aResult = DllCall("ole32.dll", "int", "CreateStreamOnHGlobal", "handle", $pData, "int", True, "ptr*", 0) ;Creates a stream object that uses an HGLOBAL memory handle to store the stream contents
If @error Then Return SetError(2, 0, 0)
Local Const $hStream = $aResult[3]
$aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromStream", "ptr", $hStream, "int*", 0) ;Creates a Bitmap object based on an IStream COM interface
If @error Then Return SetError(3, 0, 0)
Local Const $hBitmap = $aResult[2]
Local $tVARIANT = DllStructCreate("word vt;word r1;word r2;word r3;ptr data; ptr")
DllCall("oleaut32.dll", "long", "DispCallFunc", "ptr", $hStream, "dword", 8 + 8 * @AutoItX64, _
"dword", 4, "dword", 23, "dword", 0, "ptr", 0, "ptr", 0, "ptr", DllStructGetPtr($tVARIANT)) ;release memory from $hStream to avoid memory leak
$tMem = 0
$tVARIANT = 0
If $hHBITMAP Then
Local Const $hHBmp = _WinAPI_BitmapCreateDIBFromBitmap($hBitmap)
_GDIPlus_BitmapDispose($hBitmap)
Return $hHBmp
EndIf
Return $hBitmap
EndFunc ;==>_GDIPlus_BMPFromMemoryFunc _WinAPI_BitmapCreateDIBFromBitmap($hBitmap) ;create 32-bit bitmap v5 (alpha channel supported)
[/autoit] [autoit][/autoit] [autoit]
Local $tBIHDR, $aRet, $tData, $pBits, $hResult = 0
$aRet = DllCall($ghGDIPDll, 'uint', 'GdipGetImageDimension', 'ptr', $hBitmap, 'float*', 0, 'float*', 0)
If (@error) Or ($aRet[0]) Then Return 0
$tData = _GDIPlus_BitmapLockBits($hBitmap, 0, 0, $aRet[2], $aRet[3], $GDIP_ILMREAD, $GDIP_PXF32ARGB)
$pBits = DllStructGetData($tData, 'Scan0')
If Not $pBits Then Return 0
$tBIHDR = DllStructCreate('dword bV5Size;long bV5Width;long bV5Height;word bV5Planes;word bV5BitCount;dword bV5Compression;' & _ ;http://msdn.microsoft.com/en-us/library/…1(v=vs.85).aspx
'dword bV5SizeImage;long bV5XPelsPerMeter;long bV5YPelsPerMeter;dword bV5ClrUsed;dword bV5ClrImportant;' & _
'dword bV5RedMask;dword bV5GreenMask;dword bV5BlueMask;dword bV5AlphaMask;dword bV5CSType;' & _
'int bV5Endpoints[3];dword bV5GammaRed;dword bV5GammaGreen;dword bV5GammaBlue;dword bV5Intent;' & _
'dword bV5ProfileData;dword bV5ProfileSize;dword bV5Reserved')
DllStructSetData($tBIHDR, 'bV5Size', DllStructGetSize($tBIHDR))
DllStructSetData($tBIHDR, 'bV5Width', $aRet[2])
DllStructSetData($tBIHDR, 'bV5Height', $aRet[3])
DllStructSetData($tBIHDR, 'bV5Planes', 1)
DllStructSetData($tBIHDR, 'bV5BitCount', 32)
DllStructSetData($tBIHDR, 'bV5Compression', 0) ; $BI_BITFIELDS = 3, $BI_RGB = 0, $BI_RLE8 = 1, $BI_RLE4 = 2, $RGBA = 0x41424752
DllStructSetData($tBIHDR, 'bV5SizeImage', $aRet[3] * DllStructGetData($tData, 'Stride'))
DllStructSetData($tBIHDR, 'bV5AlphaMask', 0xFF000000)
DllStructSetData($tBIHDR, 'bV5RedMask', 0x00FF0000)
DllStructSetData($tBIHDR, 'bV5GreenMask', 0x0000FF00)
DllStructSetData($tBIHDR, 'bV5BlueMask', 0x000000FF)
DllStructSetData($tBIHDR, 'bV5CSType', 2) ; LCS_WINDOWS_COLOR_SPACE = 2
DllStructSetData($tBIHDR, 'bV5Intent', 4) ; $LCS_GM_IMA
$hResult = DllCall('gdi32.dll', 'ptr', 'CreateDIBSection', 'hwnd', 0, 'ptr', DllStructGetPtr($tBIHDR), 'uint', 0, 'ptr*', 0, 'ptr', 0, 'dword', 0)
If (Not @error) And ($hResult[0]) Then
DllCall('gdi32.dll', 'dword', 'SetBitmapBits', 'ptr', $hResult[0], 'dword', $aRet[2] * $aRet[3] * 4, 'ptr', DllStructGetData($tData, 'Scan0'))
$hResult = $hResult[0]
Else
$hResult = 0
EndIf
_GDIPlus_BitmapUnlockBits($hBitmap, $tData)
$tData = 0
$tBIHDR = 0
Return $hResult
EndFunc ;==>_WinAPI_BitmapCreateDIBFromBitmap;Code below was generated by: 'File to Base64 String' Code Generator v1.12 Build 2013-03-27
[/autoit] [autoit][/autoit] [autoit]Func _Background($bSaveBinary = False, $sSavePath = @ScriptDir)
[/autoit] [autoit][/autoit] [autoit]
Local $Background
$Background &= '/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wgARCAEAAQADASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAAAAECCP/EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhADEAAAAec5YWahFEWABRALKCFgVAAsFgUAEUFglEWFQUEKEFlgBUogFpAEFlCWFQUCAsoIUEAABQRYLKEBQShYRQBALAAKZtgUJYUgoSoAFgspYhZYFEKRYWUSwFhQAACFgUhYCwWWAAACwUAhZYVAWAAAAAhQAALKIFlhqIUCURqEUQpFEKRRmgBZYFgspAWAKQogWBUCgAlgsApJoXNhQQBYLKQCygCAWGs2CwVBUFgWWFILml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eTKoS5dL6SzFdxwcMXinfUEnr'
$Background &= 'G86ltb46g01fM7u5dOL3KyYID01ELYyLM/zxBP8AyK3J9TSQWgrTuIGSWEUZ/wAnLjmDtQ5lA60QIVliWNeEtaPPUwRY+05CNRZpG425V32EKzhnL0Jnh+o6ZjaOY4QY+DjEsUy/ca764gW7N9RO+2Axg+PMKsxxMFtcfmdD9LKF13+ILFH2SgTWXsluGSXMKyO4WlXOwzqGWeUotv5nLaAfCCwUGjcxXIZiq8kzYntF+ZioljC9js6jeqa6iILcbEzG1EbeWI7t0xKT0gMa4gVqtzsSFHiGBnp17xNlqKToK+2W4y8/iWhhfiXhbz1NmoZcQN5rfcbQtPmG8pfrDWjfc//Z'
Local $bString = Binary(_Base64Decode($Background))
If $bSaveBinary Then
Local $hFile = FileOpen($sSavePath & "\stressed_linen.jpg", 18)
FileWrite($hFile, $bString)
FileClose($hFile)
EndIf
Return $bString
EndFunc ;==>_BackgroundFunc _Base64Decode($sB64String)
[/autoit]
Local $a_Call = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "ptr", 0, "dword*", 0, "ptr", 0, "ptr", 0)
If @error Or Not $a_Call[0] Then Return SetError(1, 0, "")
Local $a = DllStructCreate("byte[" & $a_Call[5] & "]")
$a_Call = DllCall("Crypt32.dll", "bool", "CryptStringToBinaryA", "str", $sB64String, "dword", 0, "dword", 1, "struct*", $a, "dword*", $a_Call[5], "ptr", 0, "ptr", 0)
If @error Or Not $a_Call[0] Then Return SetError(2, 0, "")
Return DllStructGetData($a, 1)
EndFunc ;==>_Base64DecodeGruß,
UEZ -
es wird immer nocht eine Version 3.3.8 öder höher gefordert...
habe autoit-v3.3.10.2-setup installiert, oder ist der screeneditor gemeint, habe ich den SciTEAutoIt3 installiert, wird auch nicht erkannt, bzw deine scripte fordern immer noch eine höhere Version, warum???Ich führe das java update aus und möchte den Prozess anzeigen, das macht mein script aber nur wenn das update fertig, dann sprint er zur msgbox...
Kommentiere die Zeile aus und probiere es nochmals. Die Versionsstrings so miteinander zu vergleichen, war wohl nicht richtig.

Falls Funktionen bereits vorhanden sind, dann diese auch auskommentieren.
Ich hatte die Skripte mit 3.8.8.1 geschrieben...
Gruß,
UEZ -
Kannst ja die Prozente weglassen und anstelle einen Text reinschreiben.
Gruß,
UEZ -
Schaue hier mal rein, ob du was verwenden kannst: GDI+ Animated Loading / Waiting Screens
Gruß,
UEZ -
Deshalb habe ich noch die Exe mit hinzugefügt.
Das liegt daran, dass der Code nur ab Version 3.3.11.2+ läuft. In Version 3.3.10.x sind Bugs enthalten, wo einige Features nicht "sauber" funktionieren.
Einiges läuft anders auf Win8 (PrintWindow Funktion funktioniert nicht immer unter Win8) - das muss ich noch im Detail testen... Alternativ in der Liste mit der rechten Maustaste doppelt klicken.
Gruß,
UEZ -
Hmm, interessant, warum einige diese Probleme haben!
Ich habe die Zip Version hochgeladen -> siehe Beitrag 1.
Gruß,
UEZ -
Mit WinRAR v5.01 kann ich das Archiv extrahieren. Probiere es mal mit 7-Zip direkt: http://dl.7-zip.org/7z932.exe
Gruß,
UEZ