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. name22

Beiträge von name22

  • another Spam Mail

    • name22
    • 28. April 2010 um 22:02

    Ziemlich viele Rechtschreibfehler in dieser "seriösen" Mail. :rofl:
    2-3 Stunden an 5 Tagen die Woche arbeiten und dafür 1230€ Netto bekommen. 8|

    Zitat

    Computer-Grundkenntnisse (Email, Word, Drucken)

    :huh:

  • Ip Scanner

    • name22
    • 27. April 2010 um 22:28

    Einfach die Ergebnisse in einem Array speichern und dieses mit der Methode aus meinem Beispiel filtern. Das Array in eine txt oder listview zu bringen wirst du ja wohl noch schaffen. :thumbup:

  • Ip Scanner

    • name22
    • 27. April 2010 um 22:13
    Zitat

    aber noch einen letzten tipp oder beispiel?
    wie ich in der listview und in einem text file keine doppelten einträge habe?


    Ich hab dir doch oben eins geschrieben. ?(

  • Ip Scanner

    • name22
    • 27. April 2010 um 22:01

    Ein Beispiel für das Entfernen doppelter Einträge?

    Spoiler anzeigen
    [autoit]

    #include <Array.au3>

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

    Dim $aTest[5]
    $aTest[0] = "Test1"
    $aTest[1] = "Test2"
    $aTest[2] = "Test3"
    $aTest[3] = "Test4"
    $aTest[4] = "Test1"

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

    _ArrayDisplay($aTest, "Vorher")

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

    Do
    $bUnique = True
    For $i = 0 To UBound($aTest) - 1
    For $j = 0 To UBound($aTest) - 1
    If $i <> $j And $aTest[$i] = $aTest[$j] Then
    _ArrayDelete($aTest, $j)
    $bUnique = False
    ExitLoop 2
    EndIf
    Next
    Next
    Until $bUnique = True

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

    _ArrayDisplay($aTest, "Nachher 1")

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

    Dim $aTest[5]
    $aTest[0] = "Test1"
    $aTest[1] = "Test2"
    $aTest[2] = "Test3"
    $aTest[3] = "Test4"
    $aTest[4] = "Test1"

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

    $aTest = _ArrayUnique($aTest)

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

    _ArrayDisplay($aTest, "Nachher 2")

    [/autoit]
  • Ip Scanner

    • name22
    • 27. April 2010 um 21:44

    Vielleicht mit einer Kombination von 2 For Schleifen.
    Oder du nutzt einfach den _ArrayUnique Befehl.

  • Programm schreiben zum aufnehmen von videos??

    • name22
    • 27. April 2010 um 19:51

    @Sprenger
    1. Hab ich schon den Link zu der AVI Writer UDF gepostet.
    2. Würde ich das ganze niemals in eine Datei speichern, da es einfach viel Zeit in Anspruch nimmt.

  • Programmier-/Skriptsprachen außer AutoIt

    • name22
    • 26. April 2010 um 21:58

    Vielleicht könntest du dich mal für eine Rechtschreibung entscheiden...
    1.Version: Programimier
    2.Version: Programmier (korrekt)
    3.Version: Programier

  • Programmier-/Skriptsprachen außer AutoIt

    • name22
    • 26. April 2010 um 21:51
    Zitat

    Programimiersprachen außer AutoIt


    :rolleyes:
    Kein Komentar.... :D

  • Png Im png drehen

    • name22
    • 25. April 2010 um 22:18
    Zitat

    kurze frage kann man auch das fenster weg machen ? wenn ja wie ?


    Als Stil $WS_POPUP ;).

  • Programm schreiben zum aufnehmen von videos??

    • name22
    • 25. April 2010 um 21:01
    Zitat

    wenn ja wie lautet der befehl?


    Glaubst du es gibt einen fertigen Befehl der dir ein Video vom Desktop aufnimmt? :D
    Das hier kann eine avi Datei aus Bitmaps zusammenbasteln.
    Du musst also nur noch ScreenShots in regelmäßigen Abständen machen und diese dann in eine avi packen.

  • Figur Mit Pfeiltasten steuern

    • name22
    • 25. April 2010 um 20:24
    Zitat

    also wie kann ich bilder sich bewegen lassen oder geht das net??


    ....... :huh:
    Doch, siehe z.B. Doodle Jump. :P
    Zeichne statt einem Kreis o.Ä. einfach das mit _GDIPlus_ImageLoadFromFile geladene Bild. :rolleyes:

  • Png Im png drehen

    • name22
    • 25. April 2010 um 20:21

    Dann lad doch einfach mal beide Bilder hoch, so kann man besser testen. ;)
    Hier mal ein Beispiel für das drehen eines PNGs in einem anderen PNG.

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #include <GDIPlus.au3>

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

    Opt("GUIOnEventMode", 1)

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

    $hWnd = GUICreate("Test", 400, 400)
    GUISetState()

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

    _GDIPlus_Startup()

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

    $hGraphic = _GDIPlus_GraphicsCreateFromHWND($hWnd)
    $hBitmap = _GDIPlus_BitmapCreateFromGraphics(400, 400, $hGraphic)
    $hBuffer = _GDIPlus_ImageGetGraphicsContext($hBitmap)
    _GDIPlus_GraphicsSetSmoothingMode($hBuffer, 2)

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

    $hImageBG = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\BG.png")
    $hImage = _GDIPlus_ImageLoadFromFile(@ScriptDir & "\Image.png")

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

    $iX = 50
    $iY = 50
    $iWidth = 100
    $iHeight = 100
    $iAngle = 0
    $iRotationSpeed = 2

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

    GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit")

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

    While Sleep(20)
    $iAngle += $iRotationSpeed
    _GDIPlus_GraphicsClear($hBuffer, 0xFFFFFFFF)
    _GDIPlus_GraphicsDrawImageRect($hBuffer, $hImageBG, 0, 0, 400, 400)

    _GDIPlus_GraphicsTranslateTransform($hBuffer, $iX + $iWidth / 2, $iY + $iHeight / 2)
    _GDIPlus_GraphicsRotateTransform($hBuffer, $iAngle)

    _GDIPlus_GraphicsDrawImageRect($hBuffer, $hImage, -$iWidth / 2, -$iHeight/ 2, $iWidth, $iHeight)

    _GDIPlus_GraphicsResetTransform($hBuffer)
    _GDIPlus_GraphicsDrawImageRect($hGraphic, $hBitmap, 0, 0, 400, 400)
    WEnd

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

    Func _Exit()
    _GDIPlus_GraphicsDispose($hGraphic)
    _GDIPlus_GraphicsDispose($hBuffer)
    _GDIPlus_BitmapDispose($hBitmap)
    _GDIPlus_ImageDispose($hImageBG)
    _GDIPlus_ImageDispose($hImage)
    _GDIPlus_Shutdown()
    Exit
    EndFunc

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

    ; #FUNCTION# ====================================================================================================================
    ; Name...........: _GDIPlus_GraphicsRotateTransform
    ; Description ...: Updates the world transformation matrix of a Graphics object with the product of itself and a rotation matrix
    ; Syntax.........: _GDIPlus_GraphicsRotateTransform($hGraphics, $nAngle[, $iOrder = 0])
    ; Parameters ....: $hGraphics - Pointer to a Graphics object
    ; $nAngle - The angle, in degrees, of rotation
    ; $iOrder - Order of matrices multiplication:
    ; |0 - The rotation matrix is on the left
    ; |1 - The rotation matrix is on the right
    ; Return values .: Success - True
    ; Failure - False and either:
    ; |@error and @extended are set if DllCall failed
    ; |$GDIP_STATUS contains a non zero value specifying the error code
    ; Remarks .......: None
    ; Related .......: _GDIPlus_GraphicsMultiplyTransform
    ; Link ..........; @@MsdnLink@@ GdipRotateWorldTransform
    ; Example .......; No
    ; ===============================================================================================================================
    Func _GDIPlus_GraphicsRotateTransform($hGraphics, $nAngle, $iOrder = 0)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipRotateWorldTransform", "hwnd", $hGraphics, "float", $nAngle, "int", $iOrder)

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

    If @error Then Return SetError(@error, @extended, False)
    $GDIP_STATUS = $aResult[0]
    Return $aResult[0] = 0
    EndFunc ;==>_GDIPlus_GraphicsRotateTransform

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

    ; #FUNCTION# ====================================================================================================================
    ; Name...........: _GDIPlus_GraphicsResetTransform
    ; Description ...: Sets the world transformation matrix of a Graphics object to the identity matrix
    ; Syntax.........: _GDIPlus_GraphicsResetTransform($hGraphics)
    ; Parameters ....: $hGraphics - Pointer to a Graphics object
    ; Return values .: Success - True
    ; Failure - False and either:
    ; |@error and @extended are set if DllCall failed
    ; |$GDIP_STATUS contains a non zero value specifying the error code
    ; Remarks .......: None
    ; Related .......: None
    ; Link ..........; @@MsdnLink@@ GdipResetWorldTransform
    ; Example .......; No
    ; ===============================================================================================================================
    Func _GDIPlus_GraphicsResetTransform($hGraphics)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipResetWorldTransform", "hwnd", $hGraphics)

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

    If @error Then Return SetError(@error, @extended, False)
    $GDIP_STATUS = $aResult[0]
    Return $aResult[0] = 0
    EndFunc ;==>_GDIPlus_GraphicsResetTransform

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

    ; #FUNCTION# ====================================================================================================================
    ; Name...........: _GDIPlus_GraphicsTranslateTransform
    ; Description ...: Updates a Graphics object's world transformation matrix with the product of itself and a translation matrix
    ; Syntax.........: _GDIPlus_GraphicsTranslateTransform($hGraphics, $nDX, $nDY[, $iOrder = 0])
    ; Parameters ....: $hGraphics - Pointer to a Graphics object
    ; $nDX - Horizontal component of the translation
    ; $nDY - Vertical component of the translation
    ; $iOrder - Order of matrices multiplication:
    ; |0 - The translation matrix is on the left
    ; |1 - The translation matrix is on the right
    ; Return values .: Success - True
    ; Failure - False and either:
    ; |@error and @extended are set if DllCall failed
    ; |$GDIP_STATUS contains a non zero value specifying the error code
    ; Remarks .......: None
    ; Related .......: None
    ; Link ..........; @@MsdnLink@@ GdipTranslateWorldTransform
    ; Example .......; No
    ; ===============================================================================================================================
    Func _GDIPlus_GraphicsTranslateTransform($hGraphics, $nDX, $nDY, $iOrder = 0)
    Local $aResult = DllCall($ghGDIPDll, "uint", "GdipTranslateWorldTransform", "hwnd", $hGraphics, "float", $nDX, "float", $nDY, "int", $iOrder)

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

    If @error Then Return SetError(@error, @extended, False)
    $GDIP_STATUS = $aResult[0]
    Return $aResult[0] = 0
    EndFunc ;==>_GDIPlus_GraphicsTranslateTransform

    [/autoit]


    Benötigte Bilder sind im Anhang. ;)

    Bilder

    • BG.png
      • 3,12 kB
      • 300 × 300
    • Image.png
      • 62,58 kB
      • 300 × 300
  • Happy B-Day

    • name22
    • 25. April 2010 um 01:32

    Herzlichen Glückwunsch zum 18ten tince. :thumbup:
    [Blockierte Grafik: http://www.ms-office-forum.net/forum/images/smilies/birthday.gif]

  • Schleifen Problem

    • name22
    • 25. April 2010 um 01:11
    Zitat

    Geschwindigkeit der Endlosschleife ändern oder sowas?


    Wie bitte? Wie sollte das gehen? Du kannst nur versuchen alles was in der Schleife steht auf Geschwindigkeit zu trimmen. ;)
    Ohne Script kann man dir dabei allerdings schlecht helfen...

    Abgesehen davon würde ich das über Prozesse machen oder Fenstertitel. :S

  • Möchte maus pos ablesen wie ?

    • name22
    • 25. April 2010 um 00:58

    Das hört sich einfach sehr nach Bot o.Ä. an. ;)

  • KeAnu Projekt - AutoIT Games

    • name22
    • 25. April 2010 um 00:45

    Jetzt ist die "Engine" die ich für Pacman geschrieben habe so genau und erweiterbar, dass sie eigentlich viel zu schade für so ein einfach gestricktes Spiel ist. :D
    Vielleicht mach ich auch was anderes... Es wird in jedem Fall ein cooles Spiel. ^^

  • KeAnu Projekt - AutoIT Games

    • name22
    • 24. April 2010 um 22:44

    Sieht schonmal echt cool aus! :thumbup:
    Ich arbeite gerade an meinem Pacman Spiel, kann ich das dann auch bei euch posten?

  • wie mache ich dass wenn ich wiederh. drück das fenster sich "Wiederholt."

    • name22
    • 24. April 2010 um 22:06

    Das lässt sich zwar noch effizienter gestalten, aber so hast du dir das vorgestellt oder?

    Spoiler anzeigen
    [autoit]

    #include <GUIConstantsEx.au3>
    #include <WindowsConstants.au3>
    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    $gui = GUICreate("Passwort Creator", 600, 250, 300, 25)
    $1 = GUICtrlCreateButton("3 Stelliges Kennwort", 8, 8, 120, 25, $WS_GROUP)
    $2 = GUICtrlCreateButton("4 Stelliges Kennwort", 140, 8, 120, 25, $WS_GROUP)
    $3 = GUICtrlCreateButton("5 Stelliges Kennwort", 268, 8, 120, 25, $WS_GROUP)
    $4 = GUICtrlCreateButton("6 Stelliges Kennwort", 400, 8, 120, 25, $WS_GROUP)
    $5 = GUICtrlCreateButton("Zufällige Zahl generieren", 8, 50, 200, 25, $WS_GROUP)
    $6 = GUICtrlCreateButton("Züfälliges Datum generieren", 250, 50, 200, 25, $WS_GROUP)
    GUISetState(@SW_SHOW)

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

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

    Case $1
    Do
    $Msg = MsgBox(5, "Zahl", "Dein Kennwort lautet: " & Random(100, 999, 1))
    Until $Msg = 2
    Case $2
    Do
    $Msg = MsgBox(5, "Zahl", "Dein Kennwort lautet: " & Random(1000, 9999, 1))
    Until $Msg = 2
    Case $3
    Do
    $Msg = MsgBox(5, "Zahl", "Dein Kennwort lautet: " & Random(10000, 99999, 1))
    Until $Msg = 2
    Case $4
    Do
    $Msg = MsgBox(5, "Zahl", "Dein Kennwort lautet: " & Random(100000, 999999, 1))
    Until $Msg = 2
    Case $5
    Do
    $Msg = MsgBox(5, "Dein Passwort", "Deine Zufällige Zahl: " & Random(0, 999999, 1))
    Until $Msg = 2
    Case $6
    Do
    $Msg = MsgBox("5", "Dein Datum", "Dein Zufälliges Datum: " & Random(1, 30, 1) & Random(0, 0, 1) & Random(1, 9, 1) & Random(2010, 2011, 1))
    Until $Msg = 2
    EndSwitch
    WEnd

    [/autoit]
  • Image (GDI+)-Semitransparens ändern!

    • name22
    • 24. April 2010 um 21:36

    Ich habe dir hier mal ein kleines Beispiel zu ColorMatrix gebastelt. :thumbup:

    Spoiler anzeigen
    [autoit]

    #include "GDIP.au3"
    #include <GUIConstants.au3>

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

    $hWnd = GUICreate("Example by name22", 400, 400)
    GUISetState()

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

    _GDIPlus_Startup()

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

    $hGraphic = _GDIPlus_GraphicsCreateFromHWND($hWnd)

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

    $hImage = _GDIPlus_ImageLoadFromFile(FileOpenDialog("Bild auswählen", @ScriptDir, "Bilder (*.jpg;*.jpeg;*.png;*.bmp;*.gif)"))
    $iWidth = _GDIPlus_ImageGetWidth($hImage)
    $iHeight = _GDIPlus_ImageGetHeight($hImage)

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

    $hIA = _GDIPlus_ImageAttributesCreate()

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

    $tMatrix = _GDIPlus_ColorMatrixCreateTranslate(0, 0, 0, -0.5) ;Werte von -1 bis 1 (!)
    $pMatrix = DllStructGetPtr($tMatrix)

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

    _GDIPlus_ImageAttributesSetColorMatrix($hIA, 0, True, $pMatrix)

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

    _GDIPlus_GraphicsDrawImageRect($hGraphic, $hImage, 0, 0, 400, 200) ;Zeichnet das Originalbild
    _GDIPlus_GraphicsDrawImageRectRectIA($hGraphic, $hImage, 0, 0, $iWidth, $iHeight, 0, 200, 400, 200, $hIA) ;Zeichnet das Bild mit veränderten Attributen

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

    ;Aufräumen...
    _GDIPlus_ImageAttributesDispose($hIA)
    _GDIPlus_GraphicsDispose($hGraphic)
    _GDIPlus_ImageDispose($hImage)
    _GDIPlus_Shutdown()

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

    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE

    [/autoit]


    Du benötigst dafür allerdings die GDIP.au3 (Alles zusammen im Anhang). ;)

    Dateien

    ColorMatrix Example + GDIP.zip 95,65 kB – 151 Downloads
  • Bild Position eintragen und auslesen

    • name22
    • 24. April 2010 um 14:31
    Zitat

    Keiner ne antwort ?


    Ne, keiner Lust :P.
    Meinst du das so?:

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

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

    $iX = 5
    $iY = 5
    $iWidth = 100
    $iHeight = 50

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

    $hWnd = GUICreate("Beispiel", 400, 400)
    $cPic = GUICtrlCreatePic(@ScriptDir & "\Test.jpg", $iX, $iY, $iWidth, $iHeight)
    GUISetState()

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

    While 1
    Switch GUIGetMsg()
    Case $GUI_EVENT_CLOSE
    Exit
    Case $cPic
    MsgBox(0, "", "X=" & $iX & " Y=" & $iY & " Breite=" & $iWidth & " Höhe=" & $iHeight)
    EndSwitch
    WEnd

    [/autoit]


    Es ist schwer zu verstehen was du eigentlich willst. :rolleyes:

    Bilder

    • Test.jpg
      • 13,33 kB
      • 240 × 131

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™