1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. UEZ

Beiträge von UEZ

  • StringSplit String enthält Eingabezeichen (ENTER) somit funktioniert die Aufteilung nicht richtig

    • UEZ
    • 18. Dezember 2011 um 19:47

    Versuche es mal mit:

    [autoit]

    StringReplace(StringStripCR($date), @LF, "")

    [/autoit]

    Gruß,
    UEZ

  • Happy Birthday Sprenger120 !!!

    • UEZ
    • 9. Dezember 2011 um 10:36

    Auch von mir ein Happy Birthday und alles Gute! 2 Jahre noch, dann bist du 18 und danach fliegt die Zeit...

    Gruß,
    UEZ

  • Checksummen von Dateien erstellen

    • UEZ
    • 8. Dezember 2011 um 22:55

    Schaue mal hier: MD5,SHA1,CRC32,RC4,BASE64,XXTEA machine code version

    Gruß,
    UEZ

  • $variable - Inhalt ändern mit einer "0" - Null davor

    • UEZ
    • 7. Dezember 2011 um 13:37
    Zitat von TheLuBu

    $asdf = 08946353
    $asdf = 0 & $asdf

    Hast du das mal getestet? ;)

    Gruß,
    UEZ

  • $variable - Inhalt ändern mit einer "0" - Null davor

    • UEZ
    • 7. Dezember 2011 um 13:15
    [autoit]


    $tel = "08946353"
    $neu = "0" & $tel
    MsgBox(0, "Test", $neu)

    [/autoit]

    Gruß,
    UEZ

  • _WinAPI_SetWindowTitleIcon() v0.96 Build 2012-06-03 Beta

    • UEZ
    • 6. Dezember 2011 um 11:54

    Klappt es direkt, wenn du diese Zeilen in Beispiel 1 benutzt?

    [autoit]


    Global $hklm = "HKLM"
    If @AutoItX64 Then $hklm = "HKLM64"
    Global Const $sFile = RegRead($hklm & "\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") & "\Examples\GUI\Torus.png"

    [/autoit]

    Gruß,
    UEZ

  • _WinAPI_SetWindowTitleIcon() v0.96 Build 2012-06-03 Beta

    • UEZ
    • 6. Dezember 2011 um 10:34

    Hat jemand noch das gleiche Problem?

    Ich habe es unter Win7 x64 (Aero an) und WinXP x86 (Luna an) getestet und beide Beispiele funzen!

    Gruß,
    UEZ

  • _WinAPI_SetWindowTitleIcon() v0.96 Build 2012-06-03 Beta

    • UEZ
    • 6. Dezember 2011 um 00:50

    _WinAPI_SetWindowTitleIcon() ist eine Funktion, die entweder eine Bild Datei einliest oder ein Memory Bild Handle nimmt, das Bild herunter skaliert und es als Icon im Fenster Titel anzeigt!

    Der Inhalt kann nicht angezeigt werden, da er nicht mehr verfügbar ist.


    _WinAPI_SetWindowTitleIcon.au3

    Spoiler anzeigen
    [autoit]


    ;~ #AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
    #include-once
    #include <GDIPlus.au3>

    [/autoit] [autoit][/autoit] [autoit]

    _GDIPlus_Startup()
    OnAutoItExitRegister("__Exit__")

    [/autoit] [autoit][/autoit] [autoit]

    ;======================================================================================
    ; Function Name: _WinAPI_SetWindowTitleIcon
    ; Description: Loads an image, scales it to desired width or height and creates and icon handle
    ;
    ; Parameters: $sFile: image file to be loaded or bitmap handle
    ; $hWnd: GUI handle where the new icon should be displayed
    ; $iW: new image (icon) width. Default values is 32
    ; $iH: new image (icon) height. Default values is 32
    ;
    ; Requirement(s): GDIPlus.au3, _WinAPI_GetClassLongEx() and _WinAPI_SetClassLongEx()
    ; Return Value(s): Success: HICON handle, Error: 0 (see below)
    ; Error codes: 1: $sFile value is empty
    ; 2: $hWnd is not a windows handle
    ; 3: filename doesn't exist or $sFile is not a valid bitmap handle
    ; 4: unable to create image from file
    ; 5: unable to create thumbnail from image handle
    ; 6: unable to create HICON from bitmap handle
    ; 7: unable to set ClassLongEx from GUI handle
    ;
    ; Limitation: only x86 compatible currently
    ;
    ; Author(s): UEZ, Yashied for _WinAPI_GetClassLongEx() and _WinAPI_SetClassLongEx()
    ; Version: v0.96 Build 2012-06-03 Beta
    ;
    ; Remarks: When finished release icon with _WinAPI_DestroyIcon()
    ;=======================================================================================
    Func _WinAPI_SetWindowTitleIcon($sFile, $hWnd, $iW = 32, $iH = 32)
    If $sFile = "" Then Return SetError(1, 0, 0)
    If Not IsHWnd($hWnd) Then Return SetError(2, 0, 0)
    Local Const $GCL_HICON = -14, $GCL_HICONSM = -34
    Local $hImage
    If Not FileExists($sFile) Then
    If _GDIPlus_ImageGetType($sFile) = -1 Then Return SetError(3, @error, 0)
    $hImage = $sFile ;interpret $sFile as a bitmap handle
    Else
    $hImage = _GDIPlus_ImageLoadFromFile($sFile)
    If @error Then Return SetError(4, @error, 0)
    EndIf
    Local $aRes = DllCall($ghGDIPDll, "uint", "GdipGetImageThumbnail", "handle", $hImage, "uint", $iW, "uint", $iH, "int*", 0, "ptr", 0, "ptr", 0)
    If @error Then Return SetError(5, @error, 0)
    Local $hImageScaled = $aRes[4]
    $aRes = DllCall($ghGDIPDll, "uint", "GdipCreateHICONFromBitmap", "handle", $hImageScaled, "int*", 0)
    If @error Then
    _GDIPlus_ImageDispose($hImage)
    _GDIPlus_ImageDispose($hImageScaled)
    Return SetError(6, @error, 0)
    EndIf
    Local $hIconNew = $aRes[2]
    _WinAPI_SetClassLongEx($hWnd, $GCL_HICONSM, $hIconNew)
    If @error Then
    _GDIPlus_ImageDispose($hImage)
    _GDIPlus_ImageDispose($hImageScaled)
    Return SetError(7, @error, 0)
    EndIf
    _GDIPlus_ImageDispose($hImage)
    _GDIPlus_ImageDispose($hImageScaled)
    Return $hIconNew
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func __Exit__()
    _GDIPlus_Shutdown()
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    ; #FUNCTION# ====================================================================================================================
    ; Name...........: _WinAPI_SetClassLongEx
    ; Description....: Replaces the specified value into the specified window belongs.
    ; Syntax.........: _WinAPI_SetClassLongEx ( $hWnd, $iIndex, $iNewLong )
    ; Parameters.....: $hWnd - Handle to the window.
    ; $iIndex - The value to be replaced. This parameter can be one of the following values.
    ;
    ; $GCL_CBCLSEXTRA
    ; $GCL_CBWNDEXTRA
    ; $GCL_HBRBACKGROUND
    ; $GCL_HCURSOR
    ; $GCL_HICON
    ; $GCL_HICONSM
    ; $GCL_HMODULE
    ; $GCL_MENUNAME
    ; $GCL_STYLE
    ; $GCL_WNDPROC
    ;
    ; $iNewLong - The replacement value.
    ; Return values..: Success - The previous value.
    ; Failure - 0 and sets the @error flag to non-zero.
    ; Author.........: Yashied
    ; Modified.......:
    ; Remarks........: None
    ; Related........:
    ; Link...........: @@MsdnLink@@ SetClassLong
    ; Example........: Yes
    ; ===============================================================================================================================
    Func _WinAPI_SetClassLongEx($hWnd, $iIndex, $iNewLong)
    Local $Ret
    If @AutoItX64 Then
    $Ret = DllCall('user32.dll', 'ulong_ptr', 'SetClassLongPtrW', 'hwnd', $hWnd, 'int', $iIndex, 'long_ptr', $iNewLong)
    Else
    $Ret = DllCall('user32.dll', 'ulong', 'SetClassLongW', 'hwnd', $hWnd, 'int', $iIndex, 'long', $iNewLong)
    EndIf
    If (@error) Or (Not $Ret[0]) Then Return SetError(1, 0, 0)
    Return $Ret[0]
    EndFunc ;==>_WinAPI_SetClassLongEx
    #endregion

    [/autoit]

    Beispiel1 (lädt ein Bild):

    Spoiler anzeigen
    [autoit]


    #include <GDIPlus.au3>
    #include <WindowsConstants.au3>
    #include "_WinAPI_SetWindowTitleIcon.au3"

    [/autoit] [autoit][/autoit] [autoit]

    _GDIPlus_Startup()
    Global Const $sFile = StringReplace(@AutoItExe, "autoit3.exe", "Examples\GUI\Torus.png")

    [/autoit] [autoit][/autoit] [autoit]

    Global $hWnd = GUICreate("Display Windows Title Icon from file by UEZ 2011", -1, -1, -1, -1, BitOR($WS_CAPTION, $WS_SYSMENU), $WS_EX_DLGMODALFRAME)
    Global $hIcon_New = _WinAPI_SetWindowTitleIcon($sFile, $hWnd)
    GUISetState()

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    If GUIGetMsg("") = -3 Then
    _WinAPI_DestroyIcon($hIcon_New)
    _GDIPlus_Shutdown()
    GUIDelete($hWnd)
    ExitLoop
    EndIf
    WEnd

    [/autoit]

    Beispiel 2 (lädt ein Bild vom Speicher):

    Spoiler anzeigen
    [autoit]


    #include <GDIPlus.au3>
    #include <Memory.au3>
    #include <WindowsConstants.au3>
    #include "_WinAPI_SetWindowTitleIcon.au3"

    [/autoit] [autoit][/autoit] [autoit]

    _GDIPlus_Startup()
    Global $hWnd = GUICreate("Display Windows Title Icon from file by UEZ 2011", -1, -1, -1, -1, BitOR($WS_CAPTION, $WS_SYSMENU), $WS_EX_DLGMODALFRAME)
    Global $hMemImage = Load_BMP_From_Mem(_GIF())
    Global $hIcon_New = _WinAPI_SetWindowTitleIcon($hMemImage, $hWnd)
    GUISetState()

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    If GUIGetMsg("") = -3 Then
    _WinAPI_DestroyIcon($hIcon_New)
    _GDIPlus_Shutdown()
    GUIDelete($hWnd)
    Exit
    EndIf
    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    ;======================================================================================
    ; Function Name: Load_BMP_From_Mem
    ; 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
    ;
    ; Requirement(s): GDIPlus.au3, Memory.au3
    ; Return Value(s): Success: handle to bitmap or hbitmap, 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
    ; Version: v0.96 Build 2011-08-14 Beta
    ;=======================================================================================
    Func Load_BMP_From_Mem($bImage, $hHBITMAP = False)
    If Not IsBinary($bImage) Then Return SetError(1, 0, 0)
    Local $declared = True
    If Not $ghGDIPDll Then
    _GDIPlus_Startup()
    $declared = False
    EndIf
    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 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 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 = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap)
    _GDIPlus_BitmapDispose($hBitmap)
    If Not $declared Then _GDIPlus_Shutdown()
    Return $hHBmp
    EndIf
    If Not $declared Then _GDIPlus_Shutdown()
    Return $hBitmap
    EndFunc ;==>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MYnzrEFNPA1uZu9Ai48EAB93OC5zyViAaSgjk5cNytg4IcdzDAIHlR2iLb1QB4wUQkSVGIR50UvA8iohXLkMjAqSAcXCmAGO6DBAmVMrn5pkIsjAMETAZYuVwtQYGc8IjDGMMEEGpACalgAwikYgD5G4QkgsIEGpbgBEZMbAPVy2AgWSAeIRVyACczAAnwtgDxKAYQOsOHIeZDxjGes13RYAFdzMYQFJkDlGfghyAyoxB7McGQagKMS+mBAmJkM1HQYQQsI3usMZqCFKyNyacCyWAQbznEEM7hAyWSeQJuvoALNwAIKUNBCC6b85hvAgQ2J2MEO5LFkG0/AAipILXNOAQYLxBaRN1hEOxqgygWseQYNaEBQfZCCFHxIBW8otTwYPYAUGGITIIi1rGP9BplB6da4TkhAAAA7'
    Return Binary(_Base64Decode($GIF))
    EndFunc ;==>_GIF

    [/autoit] [autoit][/autoit] [autoit]

    Func _Base64Decode($input_string)
    Local $struct = DllStructCreate("int")
    Local $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $input_string, "int", 0, "int", 1, "ptr", 0, "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0)
    If @error Or Not $a_Call[0] Then Return SetError(1, 0, "")
    Local $a = DllStructCreate("byte[" & DllStructGetData($struct, 1) & "]")
    $a_Call = DllCall("Crypt32.dll", "int", "CryptStringToBinary", "str", $input_string, "int", 0, "int", 1, "ptr", DllStructGetPtr($a), "ptr", DllStructGetPtr($struct, 1), "ptr", 0, "ptr", 0)
    If @error Or Not $a_Call[0] Then Return SetError(2, 0, "")
    Return DllStructGetData($a, 1)
    EndFunc ;==>_Base64Decode

    [/autoit]

    To do:
    Wenn man eine GUI erstellt, sie mit einem neue Icon versieht, die GUI löscht und eine neue GUI erstellt und sie wiederum mit einem Icon versehen will, funzt das Ganze nicht mehr! ?(
    Sollte jetzt funzen.

    Läuft nur unter x86 Mode!

    Gruß,
    UEZ

    Dateien

    _WinAPI_SetWindowTitleIcon Example 1.au3 617 Byte – 553 Downloads _WinAPI_SetWindowTitleIcon Example 2.au3 8,13 kB – 558 Downloads
  • Pseudo Aero Look (Glas Effekt) für WindowsXP Build 2011-12-02

    • UEZ
    • 5. Dezember 2011 um 15:20
    Zitat von Andy


    Ich werde mich trotzdem mal am Wochenende hinsetzen, um den "Blur" von 25ms auf unter eine halbe Millisekunde zu drücken....bissl was geht immer....aber verratet das nicht meiner Frau^^

    Und wo ist die Version? :P Oder hat's deine Frau mitbekommen und dir eine Strafe verpasst? ;)

    Gruß,
    UEZ

  • ISN AutoIt Studio

    • UEZ
    • 5. Dezember 2011 um 11:11

    Entwickelt sich sehr gut! :thumbup:

    Wenn ich ein neues Projekt erstelle und z.B. einen relativ großen Source Code einfüge, dann dauert es ziemlich lange, bis er eingefügt ist.

    Ferner werden im rechten Fenster keine Funktionen und Variablen angezeigt, erst nachdem ich Tidy anschmeiße.

    Kann man in dem Editor jede gerade oder ungerade Zeilen anders einfärben?

    Kannst ja auch ins engl. Forum stellen...

    Gruß,
    UEZ

  • Happy Birthday pee, funkey und Co.

    • UEZ
    • 4. Dezember 2011 um 08:28

    Allen die heute Geburtstag haben ein herzliches

    [Blockierte Grafik: http://hi5sms.in/Download/Wallpapers/Happy-Birthday/Happy-Birthday-26.jpg] 
    und alles Gute!


    Gruß,
    UEZ

  • Pseudo Aero Look (Glas Effekt) für WindowsXP Build 2011-12-02

    • UEZ
    • 2. Dezember 2011 um 19:17

    Das Ding läuft auch unter Vista+, wenn Aero abgeschaltet ist (macht das Skript)!

    eukalyptus: gleiches gilt auch für deine beiden Skripte (BlackHole und Mauslupe)!

    Gruß,
    UEZ

  • Pseudo Aero Look (Glas Effekt) für WindowsXP Build 2011-12-02

    • UEZ
    • 1. Dezember 2011 um 11:07

    Klasse! Hast das Skript richtig gut optimiert :thumbup:

    Das mit ClientToScreen() ist ja optimal, um die Position unabhängig vom Theme zu bekommen! :D


    Wie gesagt, verwende ich WinXP nur noch sehr selten und der Aero Effekt ab Vista sieht echt klasse aus, zumal Win7 richtig stabil und schnell läuft.

    Diesen Effekt hätte man vor 4 Jahren gut gebrauchen können, aber heute ist das "nur" noch eine Demo.


    BlackHole und Mauslupe sind super Effekte :thumbup:


    Gruß,
    UEZ

  • Pseudo Aero Look (Glas Effekt) für WindowsXP Build 2011-12-02

    • UEZ
    • 30. November 2011 um 23:32

    Beim Testen von Windows Screenhooter unter WinXP ist mir aufgefallen, dass ich den Bildschirm hinter einer GUI herauslesen und darstellen kann.

    Da kam mir die Idee, ob sich unter WinXP ein Aero Effekt implementieren lässt!

    Heraus kam das Ding hier (optimierte Version von eukalyptus weiter unten!):

    Spoiler anzeigen
    [autoit]


    ;Pseudo Aero Look für WindowsXP Build 2011-12-02 by UEZ
    #include <GDIPlus.au3>
    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>

    [/autoit] [autoit][/autoit] [autoit]

    Opt("MustDeclareVars", 1)
    Opt("GUIOnEventMode", 1)

    [/autoit] [autoit][/autoit] [autoit]

    Global Const $hDwmApiDll = DllOpen("dwmapi.dll")
    Global $sChkAero = DllStructCreate("int;")
    DllCall($hDwmApiDll, "int", "DwmIsCompositionEnabled", "ptr", DllStructGetPtr($sChkAero))
    Global $aero = DllStructGetData($sChkAero, 1)
    If $aero Then DllCall($hDwmApiDll, "int", "DwmEnableComposition", "uint", False)
    Global $dy
    If @OSBuild < 6000 Then
    Global $aTheme = _WinAPI_GetCurrentThemeName()
    If Not @error Then
    $dy = -54
    Else
    $dy = -40
    EndIf
    Else
    $dy = -47
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    _GDIPlus_Startup()

    [/autoit] [autoit][/autoit] [autoit]

    Global Const $hFullScreen = WinGetHandle("[TITLE:Program Manager;CLASS:Progman]")
    Global Const $aFullScreen = WinGetPos($hFullScreen)

    [/autoit] [autoit][/autoit] [autoit]

    Global Const $fW = 4
    Global Const $fH = 32
    Global Const $iW = 640
    Global Const $iH = 400
    Global Const $hGUI = GUICreate("", $iW, $iH, -1, -1, $WS_POPUP, $WS_EX_OVERLAPPEDWINDOW + $WS_EX_TOPMOST)
    Global Const $idTitle = GUICtrlCreateLabel("Pseudo Aero Effect by UEZ", $fW + 16, $fh / 3, 150, 16)
    GUICtrlSetFont(-1, 9, 800, 0, "Arial", 4)
    GUICtrlSetBkColor(-1, -2)

    [/autoit] [autoit][/autoit] [autoit]

    ;~ Global Const $idLabel = GUICtrlCreateLabel(@LF & @LF & @LF & @TAB & "Done by UEZ 2011", $fW, $fH, $iW - 2 * $fW - 2, $iH - $fH - $fW)
    ;~ GUICtrlSetFont(-1, 30, 400, 0, "Arial", 4)
    ;~ GUICtrlSetBkColor(-1, -2)
    Global Const $idLabel_Min = GUICtrlCreateLabel("[_]", $iW - 50, $fH / 3, $fh / 2, $fh / 2)
    GUICtrlSetBkColor(-1, -2)
    Global Const $idLabel_Close = GUICtrlCreateLabel("[X]", $iW - 30, $fH / 3, $fh / 2, $fh / 2)
    GUICtrlSetBkColor(-1, -2)

    [/autoit] [autoit][/autoit] [autoit]

    WinSetTrans($hGUI, "", 0xFF)

    [/autoit] [autoit][/autoit] [autoit]

    Global Const $hGUI_Hidden = GUICreate("", $iW, $iH, 0, 0, Default, $WS_EX_MDICHILD + $WS_EX_LAYERED, $hGUI)
    GUISetState(@SW_HIDE, $hGUI_Hidden)
    GUISetState(@SW_SHOW, $hGUI)
    _SetGuiRoundCorners($hGUI, 16, True, False, True, False)

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    Global $hDev = _WinAPI_GetDC($hGUI)
    Global $hDC_Area = _WinAPI_CreateCompatibleDC($hDev)
    Global $hBitmap_Area = _WinAPI_CreateCompatibleBitmap($hDev, $aFullScreen[2], $aFullScreen[3])

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    Global Const $hDC_Zoom = _WinAPI_GetDC(0)
    Global Const $hGUI_ZoomDC = _WinAPI_GetDC($hGUI_Hidden)

    [/autoit] [autoit][/autoit] [autoit]

    Global Const $memDC = _WinAPI_CreateCompatibleDC($hGUI_ZoomDC)
    Global Const $memBmp = _WinAPI_CreateCompatibleBitmap($hGUI_ZoomDC, $iW, $iH)
    _WinAPI_SelectObject($memDC, $memBmp)

    [/autoit] [autoit][/autoit] [autoit]

    Global $aPos = WinGetPos($hGUI)
    _WinAPI_StretchBlt($hGUI_ZoomDC, 0, 0, $iW, $iH, $hDC_Zoom, $aPos[0], $aPos[1], $iW, $iH, $SRCCOPY)

    [/autoit] [autoit][/autoit] [autoit]

    _WinAPI_BitBlt($memDC, 0, 0, $iW, $iH, $hGUI_ZoomDC, 0, $dy, 0x00CC0020)

    [/autoit] [autoit][/autoit] [autoit]

    Global Const $hGraphic = _GDIPlus_GraphicsCreateFromHWND($hGUI)
    Global Const $hBitmap = _GDIPlus_BitmapCreateFromGraphics($iW, $iH, $hGraphic)
    Global Const $hContext = _GDIPlus_ImageGetGraphicsContext($hBitmap)

    [/autoit] [autoit][/autoit] [autoit]

    Global Const $GW_CHILD = 5
    Global Const $GW_HWNDNEXT = 2
    Global $hRegion = _GDIPlus_RegionCreateFromRect(_GDIPlus_RectFCreate(0, 0, $iW, $iH))
    Global $hChild = _WinAPI_GetWindow($hGUI, $GW_CHILD)
    Global $aRect, $msg

    [/autoit] [autoit][/autoit] [autoit]

    Do
    $aRect = ControlGetPos($hChild, "", 0)
    _GDIPlus_RegionCombineRect($hRegion, _GDIPlus_RectFCreate($aRect[0], $aRect[1], $aRect[2], $aRect[3]), 3)
    $hChild = _WinAPI_GetWindow($hChild, $GW_HWNDNEXT)
    Until Not $hChild
    _GDIPlus_GraphicsSetClipRegion($hGraphic, $hRegion)
    _GDIPlus_RegionDispose($hRegion)

    [/autoit] [autoit][/autoit] [autoit]

    Global $tRectF = _GDIPlus_RectFCreate(0, 0, $iW / 1.5, $iH / 1.5)
    Global $hBrush = _GDIPlus_LineBrushCreateFromRectWithAngle($tRectF, 0x80201010, 0xA0F0F0F0, -60, False, 1)

    [/autoit] [autoit][/autoit] [autoit]

    Global $hBmp = _GDIPlus_BitmapCreateFromHBITMAP($memBmp)
    Global $hBmp_Blur = _Blur($hBmp, $iW, $iH)
    _GDIPlus_GraphicsDrawImage($hContext, $hBmp_Blur, 0, 0)

    [/autoit] [autoit][/autoit] [autoit]

    _GDIPlus_GraphicsFillRect($hContext, 0, 0, $iW, $iH, $hBrush)
    _GDIPlus_GraphicsDrawImageRect($hGraphic, $hBitmap, 0, 0, $iW, $iH)
    _GDIPlus_BitmapDispose($hBmp)
    _GDIPlus_BitmapDispose($hBmp_Blur)

    [/autoit] [autoit][/autoit] [autoit]

    GUIRegisterMsg($WM_WINDOWPOSCHANGED, "WM_WINDOWPOSCHANGED")
    GUIRegisterMsg($WM_NCHITTEST, "WM_NCHITTEST")

    [/autoit] [autoit][/autoit] [autoit]

    Global $exit = False

    [/autoit] [autoit][/autoit] [autoit]

    GUISetOnEvent($GUI_EVENT_RESTORE, "Restored", $hGUI)
    GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit", $hGUI)
    GUICtrlSetOnEvent($idLabel_Close, "_Exit")
    GUICtrlSetOnEvent($idLabel_Min, "_MinWin")

    [/autoit] [autoit][/autoit] [autoit]

    While Sleep(30)
    ;~ Repaint()
    If $exit Then ExitLoop
    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    GUIRegisterMsg($WM_WINDOWPOSCHANGED, "")
    _WinAPI_DeleteDC($memDC)
    _WinAPI_DeleteObject($memBmp)
    _WinAPI_DeleteObject($hBitmap_Area)
    _WinAPI_ReleaseDC($hGUI, $hDev)
    _WinAPI_ReleaseDC($hGUI, $hGUI_ZoomDC)
    _WinAPI_ReleaseDC(0, $hDC_Zoom)
    _GDIPlus_BrushDispose($hBrush)
    _GDIPlus_BitmapDispose($hBitmap)
    _GDIPlus_GraphicsDispose($hContext)
    _GDIPlus_GraphicsDispose($hGraphic)
    _GDIPlus_Shutdown()
    GUIDelete()
    $tRectF = 0
    If $aero Then DllCall($hDwmApiDll, "int", "DwmEnableComposition", "uint", True)
    Exit

    [/autoit] [autoit][/autoit] [autoit]

    Func _Exit()
    $exit = True
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func _MinWin()
    GUISetState(@SW_MINIMIZE, $hGUI)
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func Restored()
    Repaint()
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func WM_WINDOWPOSCHANGED($hWnd, $iMsg, $StartWIndowPosaram, $lParam)
    Repaint()
    Return "GUI_RUNDEFMSG"
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func Repaint()
    $aPos = WinGetPos($hGUI)
    _WinAPI_StretchBlt($hGUI_ZoomDC, 0, 0, $iW, $iH, $hDC_Zoom, $aPos[0]+16, $aPos[1] + 3, $iW, $iH, $SRCCOPY)
    _WinAPI_BitBlt($memDC, 0, 0, $iW, $iH, $hGUI_ZoomDC, 0, $dy, 0x00CC0020)
    DllStructSetData($tRectF, "X", $aPos[0])
    DllStructSetData($tRectF, "Y", $aPos[1])
    $hBrush = _GDIPlus_LineBrushCreateFromRectWithAngle($tRectF, 0x80302020, 0xA0F0F0F0, -60, False, 1)
    $hBmp = _GDIPlus_BitmapCreateFromHBITMAP($memBmp)
    $hBmp_Blur = _Blur($hBmp, $iW, $iH)
    _GDIPlus_GraphicsDrawImage($hContext, $hBmp_Blur, 0, 0)
    _GDIPlus_GraphicsFillRect($hContext, 0, 0, $iW, $iH, $hBrush)
    _GDIPlus_GraphicsDrawImageRect($hGraphic, $hBitmap, 0, 0, $iW, $iH)
    _GDIPlus_BitmapDispose($hBmp)
    _GDIPlus_BitmapDispose($hBmp_Blur)
    _GDIPlus_BrushDispose($hBrush)
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func WM_NCHITTEST($hWndGUI, $MsgID, $WParam, $LParam)
    If ($hWndGUI = $hGui) And ($MsgID = $WM_NCHITTEST) Then Return $HTCAPTION
    EndFunc ;==>WM_NCHITTEST

    [/autoit] [autoit][/autoit] [autoit]

    Func _Blur($hBitmap, $iW, $iH, $fScale = 0.30, $qual = 6); by eukalyptus
    Local $hGraphics = _GDIPlus_GraphicsCreateFromHWND(_WinAPI_GetDesktopWindow())
    Local $hBmpSmall = _GDIPlus_BitmapCreateFromGraphics($iW, $iH, $hGraphics)
    Local $hGfxSmall = _GDIPlus_ImageGetGraphicsContext($hBmpSmall)
    DllCall($ghGDIPDll, "uint", "GdipSetPixelOffsetMode", "hwnd", $hGfxSmall, "int", 2)
    Local $hBmpBig = _GDIPlus_BitmapCreateFromGraphics($iW, $iH, $hGraphics)
    Local $hGfxBig = _GDIPlus_ImageGetGraphicsContext($hBmpBig)
    DllCall($ghGDIPDll, "uint", "GdipSetPixelOffsetMode", "hwnd", $hGfxBig, "int", 2)
    _GDIPlus_GraphicsScaleTransform($hGfxSmall, $fScale, $fScale)
    _GDIPlus_GraphicsSetInterpolationMode($hGfxSmall, $qual)

    [/autoit] [autoit][/autoit] [autoit]

    _GDIPlus_GraphicsScaleTransform($hGfxBig, 1 / $fScale, 1 / $fScale)
    _GDIPlus_GraphicsSetInterpolationMode($hGfxBig, $qual)

    [/autoit] [autoit][/autoit] [autoit]

    _GDIPlus_GraphicsDrawImageRect($hGfxSmall, $hBitmap, 0, 0, $iW, $iH)
    _GDIPlus_GraphicsDrawImageRect($hGfxBig, $hBmpSmall, 0, 0, $iW, $iH)

    [/autoit] [autoit][/autoit] [autoit]

    _GDIPlus_GraphicsDispose($hGraphics)
    _GDIPlus_BitmapDispose($hBmpSmall)
    _GDIPlus_GraphicsDispose($hGfxSmall)
    _GDIPlus_GraphicsDispose($hGfxBig)
    Return $hBmpBig
    EndFunc ;==>_Blur

    [/autoit] [autoit][/autoit] [autoit]

    Func _WinAPI_StretchBlt($hDestDC, $iXDest, $iYDest, $iWidthDest, $iHeightDest, $hSrcDC, $iXSrc, $iYSrc, $iWidthSrc, $iHeightSrc, $iRop)
    Local $Ret = DllCall("gdi32.dll", "int", "StretchBlt", "hwnd", $hDestDC, "int", $iXDest, "int", $iYDest, "int", $iWidthDest, "int", $iHeightDest, "hwnd", $hSrcDC, "int", $iXSrc, "int", $iYSrc, "int", $iWidthSrc, "int", $iHeightSrc, "dword", $iRop)
    If (@error) Or (Not $Ret[0]) Then Return SetError(1, 0, 0)
    Return 1
    EndFunc ;==>_WinAPI_StretchBlt

    [/autoit] [autoit][/autoit] [autoit]

    ; #FUNCTION# ====================================================================================================================
    ; Name...........: _WinAPI_GetCurrentThemeName
    ; Description....: Retrieves the name of the current visual styles, color scheme name, and size name.
    ; Syntax.........: _WinAPI_GetCurrentThemeName ( )
    ; Parameters.....: None
    ; Return values..: Success - The array that contains the following information:
    ;
    ; [0] - The theme path and file name.
    ; [1] - The color scheme name.
    ; [2] - The size name.
    ;
    ; Failure - 0 and sets the @error flag to non-zero, @extended flag may contain the system error code.
    ; Author.........: Yashied
    ; Modified.......:
    ; Remarks........: None
    ; Related........:
    ; Link...........: @@MsdnLink@@ GetCurrentThemeName
    ; Example........: Yes
    ; ===============================================================================================================================
    Func _WinAPI_GetCurrentThemeName()
    Local $Ret = DllCall('uxtheme.dll', 'uint', 'GetCurrentThemeName', 'wstr', '', 'int', 4096, 'wstr', '', 'int', 2048, 'wstr', '', 'int', 2048)
    If @error Then
    Return SetError(1, 0, 0)
    Else
    If $Ret[0] Then
    Return SetError(1, $Ret[0], 0)
    EndIf
    EndIf
    Local $Result[3]
    For $i = 0 To 2
    $Result[$i] = $Ret[$i * 2 + 1]
    Next
    Return $Result
    EndFunc ;==>_WinAPI_GetCurrentThemeName

    [/autoit] [autoit][/autoit] [autoit]

    Func _SetGuiRoundCorners($hGUI, $iEllipse, $iLeftUp = True, $iLeftDown = True, $iRightUp = True, $iRightDown = True)
    Local $hCornerRgn
    Local $aGuiSize = WinGetPos($hGUI)
    Local $hRgn = _WinAPI_CreateRoundRectRgn(0, 0, $aGuiSize[2], $aGuiSize[3], $iEllipse, $iEllipse)
    If $iLeftUp = False Then
    $hCornerRgn = _WinAPI_CreateRectRgn(0, 0, $aGuiSize[2] / 2, $aGuiSize[3] / 2)
    _WinAPI_CombineRgn($hRgn, $hRgn, $hCornerRgn, $RGN_OR)
    _WinAPI_DeleteObject($hCornerRgn)
    EndIf
    If $iLeftDown = False Then
    $hCornerRgn = _WinAPI_CreateRectRgn(0, $aGuiSize[3] / 2, $aGuiSize[2] / 2, $aGuiSize[3])
    _WinAPI_CombineRgn($hRgn, $hRgn, $hCornerRgn, $RGN_OR)
    _WinAPI_DeleteObject($hCornerRgn)
    EndIf
    If $iRightUp = False Then
    $hCornerRgn = _WinAPI_CreateRectRgn($aGuiSize[2] / 2, 0, $aGuiSize[2], $aGuiSize[3] / 2)
    _WinAPI_CombineRgn($hRgn, $hRgn, $hCornerRgn, $RGN_OR)
    _WinAPI_DeleteObject($hCornerRgn)
    EndIf
    If $iRightDown = False Then
    $hCornerRgn = _WinAPI_CreateRectRgn($aGuiSize[2] / 2, $aGuiSize[3] / 2, $aGuiSize[2] - 1, $aGuiSize[3] - 1)
    _WinAPI_CombineRgn($hRgn, $hRgn, $hCornerRgn, $RGN_OR)
    _WinAPI_DeleteObject($hCornerRgn)
    EndIf
    _WinAPI_SetWindowRgn($hGUI, $hRgn)
    EndFunc ;==>_SetGuiRoundCorners

    [/autoit] [autoit][/autoit] [autoit]

    #region additional GDI+ functions
    Func _GDIPlus_GraphicsScaleTransform($hGraphics, $nScaleX, $nScaleY, $iOrder = 0)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipScaleWorldTransform", "hwnd", $hGraphics, "float", $nScaleX, "float", $nScaleY, "int", $iOrder)
    If @error Then Return SetError(@error, @extended, False)
    Return $aResult[0] = 0
    EndFunc ;==>_GDIPlus_GraphicsScaleTransform

    [/autoit] [autoit][/autoit] [autoit]

    Func _GDIPlus_GraphicsSetInterpolationMode($hGraphics, $iInterpolationMode)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipSetInterpolationMode", "hwnd", $hGraphics, "int", $iInterpolationMode)
    If @error Then Return SetError(@error, @extended, False)
    Return $aResult[0] = 0
    EndFunc ;==>_GDIPlus_GraphicsSetInterpolationMode

    [/autoit] [autoit][/autoit] [autoit]

    Func _GDIPlus_LineBrushCreateFromRectWithAngle($tRectF, $iARGBClr1, $iARGBClr2, $nAngle, $fIsAngleScalable = True, $iWrapMode = 0)
    Local $pRectF, $aResult
    $pRectF = DllStructGetPtr($tRectF)
    $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateLineBrushFromRectWithAngle", "ptr", $pRectF, "uint", $iARGBClr1, "uint", $iARGBClr2, "float", $nAngle, "int", $fIsAngleScalable, "int", $iWrapMode, "int*", 0)
    If @error Then Return SetError(@error, @extended, 0)
    Return $aResult[7]
    EndFunc ;==>_GDIPlus_LineBrushCreateFromRectWithAngle

    [/autoit] [autoit][/autoit] [autoit]

    Func _GDIPlus_GraphicsSetClipRegion($hGraphics, $hRegion, $iCombineMode = 0)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipSetClipRegion", "hwnd", $hGraphics, "hwnd", $hRegion, "int", $iCombineMode)
    If @error Then Return SetError(@error, @extended, False)
    Return $aResult[0] = 0
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func _GDIPlus_RegionCreateFromRect($tRectF)
    Local $pRectF, $aResult
    $pRectF = DllStructGetPtr($tRectF)
    $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateRegionRect", "ptr", $pRectF, "int*", 0)
    If @error Then Return SetError(@error, @extended, 0)
    Return $aResult[2]
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func _GDIPlus_RegionCombineRect($hRegion, $tRectF, $iCombineMode = 2)
    Local $pRectF, $aResult
    $pRectF = DllStructGetPtr($tRectF)
    $aResult = DllCall($ghGDIPDll, "uint", "GdipCombineRegionRect", "hwnd", $hRegion, "ptr", $pRectF, "int", $iCombineMode)
    If @error Then Return SetError(@error, @extended, False)
    Return $aResult[0] = 0
    EndFunc

    [/autoit] [autoit][/autoit] [autoit]

    Func _GDIPlus_RegionDispose($hRegion)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipDeleteRegion", "hwnd", $hRegion)
    If @error Then Return SetError(@error, @extended, False)
    Return $aResult[0] = 0
    EndFunc
    #endregion

    [/autoit]

    Ich persönlich benutze WinXP zum Kompatibilitätstest, wenn ich Lust habe und somit ist dies wirklich nur als experimentell anzusehen!

    Einige Dinge, wie z.B. ständiges Update oder transparente Label fehlen noch. Wer Lust hat, kann ja herum basteln!

    Außerdem ist das Ganze etwas langsam. Wenn die klassische Ansicht aktiviert ist, muss der Parameter für _WinAPI_BitBlt($memDC, 0, 0, $iW, $iH, $hGUI_ZoomDC, 0, -52, 0x00CC0020) auf -38 angepasst werden, damit die Darstellung einigermaßen stimmt.

    Wenn jemand eine Möglichkeit kennt zwischen der klassischen Ansicht und Luna zu unterscheiden, dann her damit.

    Gruß,
    UEZ

    Dateien

    WinXP_Aero1.png 216,39 kB – 0 Downloads WinXP_Aero2.png 73,1 kB – 0 Downloads WinXP_Aero1_AVI.7z 228,8 kB – 294 Downloads WinXP_Aero2_AVI.7z 563,8 kB – 322 Downloads
  • GDI+ Bild einblenden

    • UEZ
    • 30. November 2011 um 11:11

    Vielleicht das hier: [UDF] (Teil)transparente Bilder-GUIs nach einem Rezept von Meister UEZ

    Das mit dem Meister darfst du nicht so ernst nehmen ;)

    Gruß,
    UEZ

  • GDI+ Bild einblenden

    • UEZ
    • 30. November 2011 um 09:28

    Schon mal im Forum gesucht?

    Gruß,
    UEZ

  • [Beispiel] - Fenster Sliden (hinein- hinausgeleiten) auf dem Desktop - optimiert für Multi-Monitorlösungen

    • UEZ
    • 29. November 2011 um 16:33

    Ich habe die V2 getestet. Wenn ich 2 Monitore nebeneinander habe, dann bleibt das Fenster in der Mitte wie im Screenshot, wenn die GUI auf dem rechten Fenster initiiert wurde.
    Wenn das Fenster in den linken Monitor verschoben wurde, dann ist das Verhalten wieder richtig.

    Gruß,
    UEZ

  • [Beispiel] - Fenster Sliden (hinein- hinausgeleiten) auf dem Desktop - optimiert für Multi-Monitorlösungen

    • UEZ
    • 28. November 2011 um 13:25

    Läuft bei mir mit 2 Monitoren genauso wie im Post #4.

    Ferner stört das geflimmere. Kannst ja nur dann updaten, wenn sich auch was verändert hat!

    gruß,
    UEZ

  • MBP - Mini-Backup-Programm

    • UEZ
    • 28. November 2011 um 13:14

    Kann es sein das leere Ordner nicht mitkopiert werden? Kann man den Timestamp vielleicht auch mitkopieren?

    Ferner ist eine Restdauer Anzeige in Sekunden nicht leicht zu interpretieren; hh:mm:ss wäre da besser. Vielleicht sogar eine "verstrichene Zeit" als Info.

    Wie wäre es mit einer Sicherung in ein Archive Format, wie z.B. ZIP?

    Gruß,
    UEZ

  • Der_Doc und BugFix haben Geburtstag

    • UEZ
    • 28. November 2011 um 10:37

    Happy Birthday euch beiden!

    Gruß,
    UEZ

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™