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

  • Revision 2016 - "The return of EvilBot"

    • UEZ
    • 30. März 2016 um 12:31
    Zitat von eukalyptus

    Mit dem Schnurrbart kann ich aushelfen - es gibt tatsächlich ein altes Bild von mir mit AutoIt-Shirt und Schnurrbart aus Mülltütenplastik:

    Der Sultan aus Wien. ;) Apropos AutoIt T-Shirt: ist dir bei unseren T-Shirts was aufgefallen?

    Hier mit Dali Bart:
    big_Capture01663_fun2.png

  • Revision 2016 - "The return of EvilBot"

    • UEZ
    • 29. März 2016 um 13:55
    Zitat von Yaerox

    Bei UEZ fehlt mir aber der Schnurrbart auf dem Bild ;) Das Avatar ist einfach zu prägend...

    Die Augenringe passen dafür... :D

  • Revision 2016 - "The return of EvilBot"

    • UEZ
    • 28. März 2016 um 13:29

    Hier ein paar Gruppen Selfies von der Party :rock:
    big_Capture01404.jpgbig_Capture01405.jpgbig_Capture01662.jpg
    big_Capture01663.jpgbig_Capture01664.jpgbig_Capture01665.jpg

    Meine Meinung zu den Beiträgen: im Großen und Ganzen waren die Beiträge ok, aber zu viel "billige" Produktionen. Irgendwie fehlt der Nachwuchs oder die Ideen gehen aus. Die Highlights waren Fairlight und Cocoon. Eine ukrainische Invitation Demo fand ich auch noch sehr gelungen.

    Abgesehen von den Beiträgen, ist natürlich das Live Erlebnis / Atmosphäre nicht zu toppen! Vor allem als Gruppe mit AutoIt T-Shirts zusammen auf der Party zu sein! :rock::rock::rock:

    Wer ist wer?

    Demo Link: http://www.pouet.net/party.php?which=1550&when=2016

  • Icons extrahieren

    • UEZ
    • 22. März 2016 um 20:49

    Habe es noch nicht vollständig getestest:

    AutoIt
    #include <WinAPI.au3>
    #include <WinAPIGdi.au3>
    
    
    Local $sFile = "c:\Windows.old\windows\System32\wucltux.dll"
    Local $iIconIndex = -1
    Local $iIcons = _WinAPI_ExtractIconEx($sFile, $iIconIndex, 0, 0, 0)
    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $iIcons = ' & $iIcons & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
    
    
    Local $tIcons = DllStructCreate("ptr hIcons[" & $iIcons & "]")
    
    
    Local $tDim = DllStructCreate($tagBITMAP), $hHBitmap
    
    
    Local $iExtIcons = _WinAPI_PrivateExtractIcons($sFile, $iIconIndex, $iIcons, 0, 0, $tIcons)
    
    
    For $i = 1 To $iIcons
    	$hHBitmap = _WinAPI_Create32BitHBITMAP($tIcons.hIcons(($i)), 0)
    	DllCall('gdi32.dll', 'int', 'GetObject', 'int', $hHBitmap, 'int', DllStructGetSize($tDim), 'ptr', DllStructGetPtr($tDim))
    	ConsoleWrite($tDim.bmWidth & " x " & $tDim.bmHeight & @CRLF)
    	_WinAPI_DeleteObject($hHBitmap)
    	_WinAPI_DestroyIcon($tIcons.hIcons(($i)))
    Next
    
    
    
    
    ; #FUNCTION# ====================================================================================================================
    ; Name ..........: _WinAPI_PrivateExtractIcons
    ; Description ...: Creates an array of handles to icons that are extracted from a specified file.
    ; Syntax ........: _WinAPI_PrivateExtractIcons($sFile, $iIconIndex[, $iIcons = 1[, $iWidth = 0[, $iHeight = 0[, $tIcons = Null[,
    ;                  $tResourceIdent = Null[, $iFlags = $LR_LOADFROMFILE]]]]]])
    ; Parameters ....: $sFile               - The path and name of the file from which the icon(s) are to be extracted.
    ;                  $iIconIndex          - The zero-based index of the first icon to extract. For example, if this value is zero,
    ;										  the function extracts the first icon in the specified file.
    ;                  $iIcons              - [optional] The number of icons to extract from the file. This parameter is only valid
    ;													 when extracting from .exe and .dll files.
    ;                  $iWidth              - [optional] The horizontal icon size wanted. See Remarks.
    ;                  $iHeight             - [optional] The vertical icon size wanted. See Remarks.
    ;                  $tIcons              - [optional] A pointer to the returned array of icon handles.
    ;                  $tResourceIdent      - [optional] A pointer to a returned resource identifier for the icon that best fits the _
    ;													 current display device. The returned identifier is 0xFFFFFFFF if the identifier
    ;													 is not available for this format. The returned identifier is 0 if the identifier
    ;													 cannot otherwise be obtained.
    ;                  $iFlags              - [optional] Specifies flags that control this function. These flags are the LR_* flags used
    ;													 by the LoadImage function.
    ; Return values .: If the phicon parameter is NULL and this function succeeds, then the return value is the number of icons in the file.
    ;				   If the function fails then the return value is 0.
    ;				   If the phicon parameter is not NULL and the function succeeds, then the return value is the number of icons extracted.
    ;				   Otherwise, the return value is 0xFFFFFFFF if the file is not found.
    ; Author ........: UEZ
    ; Modified ......:
    ; Remarks .......: This function extracts from executable (.exe), DLL (.dll), icon (.ico), cursor (.cur), animated cursor (.ani), and bitmap (.bmp)
    ;				   files. Extractions from Windows 3.x 16-bit executables (.exe or .dll) are also supported.
    ;				   The $iWidth and $iHeight parameters specify the size of the icons to extract. Two sizes can be extracted by putting the first
    ;				   size in the LOWORD of the parameter and the second size in the HIWORD.
    ;				   For example, MAKELONG(24, 48) for both the $iWidth and $iHeight parameters would extract both 24 and 48 size icons.
    ;				   You must destroy all icons extracted by PrivateExtractIcons by calling the DestroyIcon function.
    ;				   This function was not included in the SDK headers and libraries until Windows XP Service Pack 1 (SP1) and Windows Server 2003.
    ;				   If you do not have a header file and import library for this function, you can call the function using LoadLibrary and
    ;				   GetProcAddress.
    ; Related .......:
    ; Link ..........: https://msdn.microsoft.com/en-us/library/windows/desktop/ms648075(v=vs.85).aspx
    ; Example .......: No
    ; ===============================================================================================================================
    Func _WinAPI_PrivateExtractIcons($sFile, $iIconIndex, $iIcons = 1, $iWidth = 0, $iHeight = 0, $tIcons = Null, $tResourceIdent = Null, $iFlags = $LR_LOADFROMFILE)
    	Local $aResult = DllCall("user32.dll",  "int", "PrivateExtractIcons", _
    											"str", $sFile, _
    											"int", $iIconIndex, _
    											"uint", $iWidth, _
    											"uint", $iHeight, _
    											"struct*", $tIcons, _
    											"struct*", $tResourceIdent, _
    											"uint", $iIcons, _
    											"uint", $iFlags)
    	If @error Or $aResult[0] = 0xFFFFFFFF Then Return SetError(1, 0, $aResult[0])
    	Return $aResult[0]
    EndFunc
    Alles anzeigen

    Edit: ist nicht dass, was du willst. Eukalyptus' Version sollte es machen! :thumbup::klatschen:

  • Icons extrahieren

    • UEZ
    • 22. März 2016 um 17:18

    Hier eine Lösung für ICO Dateien (ich weiß, dass es direkt nicht mit deinem Problem zu tun hat, vielleicht hilft's für's Finden von Lösungen).

    https://www.autoitscript.com/forum/topic/181164-how-to-load-an-image-from-ico-file/?do=findComment&comment=1301566

  • Icons extrahieren

    • UEZ
    • 21. März 2016 um 20:42

    256 = 0x100

    Wenn das Skript jeweils 2 Bytes für die Dimension speichert, dann kann das nur bis zu einer Größe von 0xFF x 0XFF (255 x 255) funktionieren. 256 hat 3 Bytes.

  • CSV Datei Zeilen zählen - extrem schnell - GNUWin32

    • UEZ
    • 19. März 2016 um 10:49
    Zitat von Andy

    Wenn Fileread() etwa 90% der Zeit braucht, nützt es dir nichts bei den verbleibenden 10% in Beschleunigung zu investieren!

    Ich meine mich erinnern zu können, dass das Lesen kein Ding war, eher das Suchen nach @LF. Aber mich wundern doch die 165ms ein wenig...

    Das mit der Block Größe ist richtig :thumbup: . So kann man den Ladevorgang doch erheblich beschleunigen. :klatschen:

  • CSV Datei Zeilen zählen - extrem schnell - GNUWin32

    • UEZ
    • 17. März 2016 um 16:27

    Es gibt auch die Built-in Funktion,

    AutoIt
    #include <File.au3>
    _FileCountLines()


    die ähnlich der AspirinJunkie's Version ist.

    Hier eine ASM Version:

    AutoIt
    #include <File.au3>
    $sTestFile = @ScriptDir & "\Test.csv"
    $fTimer = TimerInit()
    ConsoleWrite(_FileCountLines($sTestFile) & " / " & TimerDiff($fTimer) & @CRLF)
    
    
    $fTimer = TimerInit()
    $hFile = FileOpen($sTestFile)
    $iLines = _ASM_StringLFCharCount_Bin(FileRead($hFile))
    FileClose($hFile)
    ConsoleWrite($iLines & " / " & TimerDiff($fTimer) & @CRLF)
    
    
    
    
    Func _ASM_StringLFCharCount_Bin($sString)
    	Local $tCodeBuffer = DllStructCreate("byte ASM[27]") ;reserve memory for ASM opcode
    	$tCodeBuffer.ASM = "0x8B7424048B7C240831DBAC3C0074093C0A75F783C301EBF2891FC3" ;write opcodes into memory (struct) / length: 27
    	Local $tResult = DllStructCreate("dword AmountLF")
    	DllCall("user32.dll", "none", "CallWindowProcW", "ptr", DllStructGetPtr($tCodeBuffer), "str", $sString, "ptr", DllStructGetPtr($tResult), "int", 0, "int", 0)
    	Return $tResult.AmountLF
    EndFunc
    Alles anzeigen

    Benötigt für eine 230 mb große CSV Datei ca. 7600 ms, um die Zeilen zu zählen. Built-in ca. 8500 ms. -> kein richtiger Gewinn. Ich frage mich, wie die GNU Variante auf 165 ms kommt!

  • Check Ping Status v1.05 Build 2014-09-19 Beta

    • UEZ
    • 17. März 2016 um 15:45

    Ich habe die Links überarbeitet - sollte jetzt wieder funktionieren.

  • WLAN-Adapter wird deaktiviert

    • UEZ
    • 14. März 2016 um 21:51

    Im Akku Modus kann es sein, dass die Energie Optionen den WLAN Adapter nach 10 Minuten einfach abschalten, um Energie zu sparen.

  • SSE Shuffle Explorer V2

    • UEZ
    • 7. März 2016 um 20:01
    Zitat von Andy

    Jetzt weißt du endlich mal wie es mir geht, wenn ich GDI+ coden muss :P

    ^^

  • SSE Shuffle Explorer V2

    • UEZ
    • 7. März 2016 um 19:43

    Oh man, dieses Shuffle-Funktionen sind wie RegEx - da muss man erst mal durchblicken. :S

  • SSE Shuffle Explorer V2

    • UEZ
    • 7. März 2016 um 14:53

    Wenn ich "pshufb" klicke, kommt ein andere Sichtweise unten heraus.

  • Mehrere Variablen zusammensetzten mit Eval () - Fehler

    • UEZ
    • 7. März 2016 um 10:29

    Warum Eval? Benutze doch einfach nur das "&".

    AutoIt
    Local $fulldir = $DIR1 & $Counter & $DIR2
  • Grafik in .exe einbinden ohne Fileinstall

    • UEZ
    • 24. Februar 2016 um 11:03

    Load_BMP_from_Mem ist nun in GDIPlus.au3 integriert und heißt jetzt _GDIPlus_BitmapCreateFromMemory.

    Einige Beispiele findest du hier: https://www.autoitscript.com/forum/topic/13…ur-files-easily

  • GDI+ Backbuffer verstehen - Übersicht

    • UEZ
    • 24. Februar 2016 um 10:59

    In GDI+ kannst du i.d.R. nur auf den Graphic Handle zeichnen, wobei die Graphics der sichtbarer Bereich ist, also das was du in der GUI siehst.

    Den Graphic Handle kannst du nicht einfach abspeichern, so dass du zuerst in das Bild zeichnest und anschließend das gezeichnete Bild in den Graphic Handle kopierst.
    Somit kannst du einfach das Bild speichern und vermeidest das Flickern.

    Um in das Bild zu zeichnen, benötigst du ein Wrapper Handle -> _GDIPlus_ImageGetGraphicsContext.

    Der Unterschied zwischen Bitmap und Image ist, dass Bitmap eine Untermenge von der Klasse Image ist.

  • Alles gute Andy!

    • UEZ
    • 4. Februar 2016 um 10:58

    Booaah ey

    50 Jahre schon auf dem Buckel...

    Alles Gute zum 50. und Prost auf die nächsten 50 Jahre. :theke:

    Hau' rein "altes Haus". :party1::part:

    :rolleyes:

  • Some Graphical Examples using GDI+ Vol. II build 2016-05-07

    • UEZ
    • 26. Januar 2016 um 21:36

    Vielen Dank für dein Feedback.

    Ich würde sagen, dass einige Effekte ohne deine GDIPlusEx UDF nicht realisierbar wären bzw. nicht in der entsprechenden FPS!

    Hut ab [Blockierte Grafik: http://www.sammlerforen.net/images/smilies/hut.gif]


    Mir hat am besten der Flammen Effekt gefallen, wobei die Piratenflaggen auch nicht schlecht aussieht. ^^


    Ok, einige dieser Effekte hatte ich ja bereits separat veröffentlicht... Voll vergessen. :whistling:

  • schärferes Mittel als ProcessClose

    • UEZ
    • 25. Januar 2016 um 21:37
    Zitat von AutoMit

    Es müsste doch ein Systemtool geben, was wirklich jeden Prozess (Windows-Prozesse ausgenommen) beenden kann - oder?

    Dann könnte man jede AV Software / Firewall beenden und somit das System kompromittieren.

    Das Thema sollte hier nicht weitergeführt werden!

  • Some Graphical Examples using GDI+ Vol. II build 2016-05-07

    • UEZ
    • 25. Januar 2016 um 20:10

    Hier noch ein paar mehr (33) GDI+ Snippets.

    Vielen Dank an Eukalyptus für die Assembler Codes. :thumbup:

    Screenshots und Download hier: Some Graphical Examples using GDI+ Vol. II


    Sollte ab Win7 / AutoIt v3.3.14.2 ohne Probleme funzen.

    Viel Spaß beim Ausprobieren. ^^


    Probleme bitte hier melden.

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™