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

  • AutoIt Windows Screenshooter v1.87 Build 2026-09-01

    • UEZ
    • 29. Mai 2012 um 18:23
    Zitat von Tweaky

    Danke UEZ,
    das mit der Breite vom Webseitenscreenshot funktioniert.

    Hätte da noch 2 Verbesserungen.
    1. Das beenden mit der ESC-Taste sollte auch funktionieren, wenn man eine bestimmte Länge eingestellt hat.
    2. Wäre es möglich nach dem Webseitenscreenshot eine Art Autobeschneiden einzubauen. Es sollte der unnötigte gleichfarbige Rand rechts und links abgeschnitten werden. Geht dies mit den Pixel...-Funktionen?
    Dann wäre es nicht ganz so tragisch, wenn eine Breite von 1920 ausgewählt würde und die Webseite nur auf 1024 optimiert ist.

    Zu 1: verstehe nicht, was du meinst. Wo soll ESC funzen und welche Länge?
    Zu 2: ich überlege gerade eine Art Cropping einzubauen, wo du den Ausschnitt auswähltst und dieser dann ausgeschnitten und eingefügt wird. Ein Art Automatismus wird schwierig und zeitaufwändig werden.

    Gruß,
    UEZ

  • AutoIt Windows Screenshooter v1.87 Build 2026-09-01

    • UEZ
    • 29. Mai 2012 um 12:51

    ISI360: danke für dein Feedback! 8o

    Hast recht - die Variable $About_End wurde nur einmal initialisiert und nach Ablauf des Intros stand sie immer auf True, was immer beenden des Intros bedeutet.

    So, bist auch Chip Muzik Liebhaber... :rock: War schwer was zu finden, das klein und relativ gut klingt.

    Neue Version hochgeladen...

    Gruß,
    UEZ

  • AutoIt Windows Screenshooter v1.87 Build 2026-09-01

    • UEZ
    • 28. Mai 2012 um 22:07

    Ich denke, dass die Web Seiten eher 1024 Pixel optimiert sind. Ich habe den Code inzwischen aktualliesiert, so dass man die Breite aussuchen kann.

    Ich habe in Ward's Code noch nicht ganz durchgeblickt und wollte auch so viel wie möglich selbst schreiben.

    Nach meiner Meinung sind die Tage des WinXP lange gezählt...

    Ich lade gleich die aktuelle Version hoch.

    Edit: neue Version ist nun hochgeladen!

    Danke für dein Feedback.

    Gruß,
    UEZ

  • AutoIt Windows Screenshooter v1.87 Build 2026-09-01

    • UEZ
    • 28. Mai 2012 um 19:04

    Das liegt daran, dass die Breite eine feste Größe hat, nämlich 1024 Pixel. Auf irgend eine Breite muss ich mich festlegen und 1024 Pixel decken die meisten Bildschirme ab.

    Die Webseite wird ein einer GUI mit der oben genannten Größe und vorher gerenderten Höhe eingebettet gerendert und anschließend von der GUI ein Screenshoot erstellt.
    Die GUI liegt genau mit einem Pixel im sichtbaren Bereich, damit ein Screenshot erstellt werden kann, ohne das man die GUI sehen kann. Diese Methode geht leider nur mit Aero.
    Unter Win8 gibt der Code nur ein weißes Bitmap zurück, habe ich bereits gefixt -> nächstes Release.

    Ward's Code ist da viel eleganter und läucht auch ohne Aero.

    Soll ich ein Context Menu erstellen, wo man die Breite aussuchen kann?

    Gruß,
    UEZ

  • Fußball-Europameisterschaft (Tippspiel)

    • UEZ
    • 28. Mai 2012 um 00:17

    Nach dem WM- und Deutscher Meister Titel jetzt noch ein EM Titel würde sich in meiner Trophäensammlung echt gut machen. :rock:

    Gelle Pee? :P

    Gruß,
    UEZ

  • Happy Birthday SEuBo und anno2008

    • UEZ
    • 26. Mai 2012 um 11:48

    Happy Birthday euch beiden und alles Gute!


    Feiert schön.


    Gruß,
    UEZ

  • File to Base64 String Code Generator v1.20 Build 2020-06-05

    • UEZ
    • 24. Mai 2012 um 17:55

    Info: Update auf v1.09 Build 2012-05-18, falls jemand das Tool benutzt...

    Gruß,
    UEZ

  • Assembler UDF ?

    • UEZ
    • 20. Mai 2012 um 12:46
    Zitat von Marsi

    Zusammen mit _GDIPlus_GraphicsCreateFromHDC ergibt sich ein Buffer den sowohl GDI+ ($hGFX), GDI ($hDC) und ASM ($ptr) nutzen können. (Im Beispiel ist das in Zeile 100 bis 110. Da wird beim gleichen Bitmap mit GDI+, GDI und ASM gemalt)

    Bei Bitmaps die direkt in GDI+ geladen wurden weiß ich leider auch keinen eleganten Ausweg um an irgendwelche Daten zu kommen...

    Genau hier für suchen wir eine Lösung, denn z.B. mit

    [autoit]


    _GDIPlus_GraphicsCreateFromHWND()

    [/autoit]

    kannst du direkt in den Grafikspeicher zeichnen, so dass du das Ergebnis sofort siehst. In den oben erwähnten Verfahren musst du noch mit _WinAPI_BitBlt() das Ergebnis sichtbar machen, sprich die Bitmap aus dem Speicher in den Grafikspeicher kopieren.

    Die Frage ist nun, gibt es auch in ASM ein möglichkeit direkt den Grafikspeicherbereich zu benutzen!

    Gruß,
    UEZ

  • Assembler UDF ?

    • UEZ
    • 20. Mai 2012 um 01:18

    Klasse Sache - bin begeistert!

    Ich hoffe, dass es eine gute Sammlung an ASM Codes für GDI+ geben wird! :D

    Vielleicht kann ich auch was dazu beitragen!

    Gruß,
    UEZ

  • HILFE GESUCHT: Bild in Format X in Icon-Datei (*.ico) umwandeln/konvertieren/abspeichern

    • UEZ
    • 13. Mai 2012 um 22:15

    Du musst die Hex() Funktion anpassen, da in den älteren AutoIt Versionen die Hex() Länge Standard 8 ist.

    Beispiel:

    Spoiler anzeigen
    [autoit]


    #include <GDIPlus.au3>
    #include <WinAPI.au3>
    $file = FileOpenDialog("Ein Bild auswählen", "", "Bilder (*.jpg;*.bmp;*.png)")
    If @error Then Exit

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

    _GDIPlus_Startup ()
    $bild = Resize($file)
    $hIcon = _GDIPlus_BitmapCreateHICONFromBitmap($bild)
    _CreateIconFileFromHICON($hIcon, @ScriptDir & "\Test.ico")
    _WinAPI_DestroyIcon($hIcon)
    _GDIPlus_BitmapDispose($bild)
    Exit

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

    Func Resize($sFilename, $width = 64, $height = 64) ; code by UEZ 2011
    Local $hBitmap = _GDIPlus_BitmapCreateFromFile($sFilename)
    Local $iH = _GDIPlus_ImageGetHeight($hBitmap)
    Local $iW = _GDIPlus_ImageGetWidth($hBitmap)
    Local $hImage = _GDIPlus_BitmapCreateFromScan0($width, $height)
    Local $hContext = _GDIPlus_ImageGetGraphicsContext($hImage)
    If $iW < $width And $iH < $height Then
    $w = $width / 2 - $iW / 2
    $h = $height / 2 - $iH / 2
    _GDIPlus_GraphicsDrawImageRect($hContext, $hBitmap, $width / 2 - $iW / 2, $height / 2 - $iH / 2, $iW, $iH)
    Else
    If $iW > $iH Then
    $f = $iW / $width
    Else
    $f = $iH / $height
    EndIf
    $w = $iW / $f
    $h = $iH / $f
    _GDIPlus_GraphicsDrawImageRect($hContext, $hBitmap, $width / 2 - $w / 2, $height / 2 - $h / 2, $w, $h)
    EndIf
    _GDIPlus_GraphicsDispose($hContext)
    _GDIPlus_BitmapDispose($hBitmap)
    Return $hImage
    EndFunc

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

    Func _CreateIconFileFromHICON($hIcon, $sOutIcon) ;code by smashly
    Local $aInfo, $sIco, $sBmp, $hCDC, $tBI, $tBits, $iSz, $sBD, $FO

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

    ; Start of single Icon Header 3 x 2 bytes = 6 bytes: 0000 Reserved / 0100 Icon / 0100 Numer of icons, total length will be 22 bytes for a single icon when finished
    $sIco = "0x000001000100"

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

    ; Start of the Bitmap data header 1 x 4bytes: length of the header will be 40 bytes when finished. Will be appended to the end of the icon header when finished
    $sBmp = "28000000"

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

    ; Get info about the HICON, this is mainly to get the pointers to the Color/Mask bitmaps data
    $aInfo = _WinAPI_GetIconInfo($hIcon)

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

    ; Create a memory Compatable DC
    $hCDC = _WinAPI_CreateCompatibleDC(0)

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

    ; Create a BITMAPINFO Struct to store the Bitmap Info, it needs to be inilialized by setting the struct size.
    $tBI = DllStructCreate($tagBITMAPINFO)
    DllStructSetData($tBI, "Size", DllStructGetSize($tBI))

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

    ; Pass a bitmap data pointer to the BITMAPINFO struct so we can recieve the details of the color bitmap data, we use it to write the headers
    _WinAPI_GetDIBits($hCDC, $aInfo[5], 0, 0, 0, DllStructGetPtr($tBI), 0)

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

    ; Now we have some the basic info to add to the Icon & Bitmap header so we'll add that to the headers.
    $sIco &= Hex(DllStructGetData($tBI, "Width"), 2) & Hex(DllStructGetData($tBI, "Height"), 2) & "00000100" & _RB(Hex(DllStructGetData($tBI, "BitCount"), 4))
    $sBmp &= _RB(Hex(DllStructGetData($tBI, "Width"), 8)) & _RB(Hex(DllStructGetData($tBI, "Height") * 2, 8)) & "0100" & _RB(Hex(DllStructGetData($tBI, "BitCount"), 4)) & "00000000"

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

    ; Get the size of the Bitmap data from the BITMAPINFO Struct, we'll use this in the headers further on.
    $iSz = DllStructGetData($tBI, "SizeImage")

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

    ; Create a struct to store the Bitmap data Bits of the first bitmap, reset the BITMAPINFO struct
    $tBits = DllStructCreate("byte[" & DllStructGetData($tBI, "SizeImage") & "]")

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

    ; Get the color bitmap dib bits into the $tBits struct.
    DllCall('gdi32.dll', 'int', 'GetBitmapBits', 'ptr', $aInfo[5], 'int', $iSz, 'ptr', DllStructGetPtr($tBits))

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

    ; Get GetBitmapBits returns Bottom to Top dib, so I turn it to Top to Bottom dib ;)
    ; ATM I'm only assuming that GetBitmapBits returns a Bottom to Top dib, maybe the bitmap bits you use could be Top Down already?.
    For $i = DllStructGetData($tBI, "SizeImage") + 1 To 0 Step -(DllStructGetData($tBI, "SizeImage") / DllStructGetData($tBI, "Height"))
    $sBD &= StringTrimLeft(BinaryMid(DllStructGetData($tBits, 1), $i, (DllStructGetData($tBI, "SizeImage") / DllStructGetData($tBI, "Height"))), 2)
    Next

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

    ;Clear the BITMAPINFO & $tBits Struct as we'll use the same variables again for the mask bitmap data
    $tBits = 0
    $tBI = 0

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

    ; Create a BITMAPINFO Struct to store the Bitmap Info again, it needs to be inilialized by setting the struct size.
    $tBI = DllStructCreate($tagBITMAPINFO)
    DllStructSetData($tBI, "Size", DllStructGetSize($tBI))

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

    ; Pass a bitmap data pointer to the BITMAPINFO struct so we can recieve the details of the bitmask bitmap data
    _WinAPI_GetDIBits($hCDC, $aInfo[4], 0, 0, 0, DllStructGetPtr($tBI), 0)

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

    ; We've finished with the Compatable DC, delete it.
    _WinAPI_DeleteDC($hCDC)

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

    ; Add the size of the of the color + bitmask bitmap data as we need this for both the Icon & Bitmap header
    $iSz += DllStructGetData($tBI, "SizeImage")

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

    ; combine the bitmap data size with the bitmap header, I'm padding the rest of the 40 byte bitmap header with 0's., that's the Bitmap header done
    $sBmp &= _RB(Hex($iSz, 8)) & "00000000000000000000000000000000"

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

    ; Now add the size of the Bitmap data + bitmap header size and combine the icon header together with the bitmap header and color bitmap data
    $sIco &= _RB(Hex($iSz + 40, 8)) & _RB(Hex("22", 8)) & $sBmp & $sBD

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

    ; Create a struct to store the Bitmap dib Bits of the mask bitmap
    $tBits = DllStructCreate("byte[" & DllStructGetData($tBI, "SizeImage") & "]")

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

    ; Get the mask bitmap dib bits into the $tBits struct.
    DllCall('gdi32.dll', 'int', 'GetBitmapBits', 'ptr', $aInfo[4], 'int', DllStructGetData($tBI, "SizeImage"), 'ptr', DllStructGetPtr($tBits))

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

    ; Get GetBitmapBits returns Bottom to Top dib, so I turn it to a Top to Bottom dib and append the mask bitmap data to the icon
    For $i = DllStructGetData($tBI, "SizeImage") + 1 To 0 Step -(DllStructGetData($tBI, "SizeImage") / DllStructGetData($tBI, "Height"))
    $sIco &= StringTrimLeft(BinaryMid(DllStructGetData($tBits, 1), $i, (DllStructGetData($tBI, "SizeImage") / DllStructGetData($tBI, "Height"))), 2)
    Next

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

    ; Write the icon to a file.
    $FO = FileOpen($sOutIcon, 18)
    FileWrite($sOutIcon, Binary($sIco))
    FileClose($FO)

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

    ; Clear the structs
    $tBits = 0
    $tBI = 0
    EndFunc ;==>_CreateIconFileFromHICON

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

    Func _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight, $iStride = 0, $iPixelFormat = 0x0026200A, $pScan0 = 0)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipCreateBitmapFromScan0", "int", $iWidth, "int", $iHeight, "int", $iStride, "int", $iPixelFormat, "ptr", $pScan0, "int*", 0)
    If @error Then Return SetError(@error, @extended, 0)
    Return $aResult[6]
    EndFunc ;==>_GDIPlus_BitmapCreateFromScan0

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

    Func _GDIPlus_BitmapCreateHICONFromBitmap($hBitmap)
    Local $hIcon
    $hIcon = DllCall($ghGDIPDll, "int", "GdipCreateHICONFromBitmap", "hwnd", $hBitmap, "int*", 0)
    If @error Then Return SetError(@error, 0, -1)
    Return SetError($hIcon[0], 0, $hIcon[2])
    EndFunc ;==>_GDIPlus_BitmapCreateHICONFromBitmap

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

    ; Reverse Byte String
    Func _RB($sByte)
    Local $aX = StringRegExp($sByte, "(.{2})", 3), $sX = ''
    For $i = UBound($aX) - 1 To 0 Step -1
    $sX &= $aX[$i]
    Next
    Return $sX
    EndFunc ;==>_RB

    [/autoit]

    Gruß,
    UEZ

  • HILFE GESUCHT: Bild in Format X in Icon-Datei (*.ico) umwandeln/konvertieren/abspeichern

    • UEZ
    • 13. Mai 2012 um 15:52

    Schaue mal hier nach: http://www.autoitscript.com/forum/index.php?showtopic=101305

    Gruß,
    UEZ

  • AutoIt Windows Screenshooter v1.87 Build 2026-09-01

    • UEZ
    • 2. Mai 2012 um 21:37

    Könnt ihr bitte mal testen, ob der Image Editor "buggy" ist (markieren, Reckteck, Kreis, Pfeil zeichnen, Text positionieren bzw. rotieren, Gfx FX testen, etc.)?

    VIELEN DANK!

    Gruß,
    UEZ

  • Wer steigt auf Windows 8 um?

    • UEZ
    • 2. Mai 2012 um 17:31

    Danke für den Tipp - werde ich testen.

    Nichts desto trotz, wenn die Shell auch schneller ist als Win7 und kleiner, kann ich nicht sagen, bitte die Shell installieren, damit ihr mit dem Windows Screenshooter einigermaßen performante Videos machen könnt.

    Gruß,
    UEZ

  • Wer steigt auf Windows 8 um?

    • UEZ
    • 2. Mai 2012 um 16:19

    Ich habe Win8 (Consumer Preview) in Oracle VM VirtualBox installiert und mit dem Windows Screenshooter ein Video mit 5 FPS erstellt -> kein ruckeln der Maus, keine Hänger generell - krass. 8o

    Scheint richtig gut optimiert zu sein.

    Wenn man noch den Metro $hit abstellen kann, ist das Ding echt top!

    Gruß,
    UEZ

  • Bild in gui

    • UEZ
    • 1. Mai 2012 um 22:21

    Du kannst auch sogenannte "Binärstrings" verwenden und Daten, wie z.B. Bilder in dein Script (Exe) einbetten.

    Beispiele hier: File to Base64 String Code Generator v1.07 Build 2012-04-24 (Beispiele im Post #6)

    Gruß,
    UEZ

  • Grafik Engine Erstellen

    • UEZ
    • 26. April 2012 um 09:24

    Sieht gut aus!

    Was macht eigentlich der ASM Code genau?

    Gruß,
    UEZ

  • Ressourcen (Bilder, etc.) in Script einbinden

    • UEZ
    • 25. April 2012 um 21:40

    Die bessere Variante -> File to Base64 String Code Generator v1.07 Build 2012-04-24

    Gruß,
    UEZ

  • AutoIt Windows Screenshooter v1.87 Build 2026-09-01

    • UEZ
    • 19. April 2012 um 19:50

    Danke für dein Feedback! 8o

    Ich arbeite grundsätzlich auch auf Win7 x64 und ich bekomme keine Fehlermeldung! ?(

    Opt("MustDeclareVars", 1) sollte genau diese FM eigentlich vermeiden!


    Das mit dem Video ist leider AutoIt bedingt und ich habe alles versucht, um die max. Geschwindigkeit rauszuholen. Hier stößt AutoIt wohl an seine Grenzen!

    Kannst du das Skript bitte mal starten mit "Ausführen als Administrator" und die Invert Funktion nochmals testen?

    Neue Version hochgeladen.

    Gruß,
    UEZ

  • AutoIt Windows Screenshooter v1.87 Build 2026-09-01

    • UEZ
    • 19. April 2012 um 09:02

    Update auf v1.45 Build 2012-04-18.

    Ich habe ein kleines Bildbearbeitungstool eingebaut.

    Gruß,
    UEZ

  • Happy Birthday i2c

    • UEZ
    • 18. April 2012 um 09:22

    Herzlichen Glückwunsch zum Geburtstag und alles Gute!

    Feier schön...

    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™