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

  • CoSiNUs brOTHerS inTRO build 2015-04-20

    • UEZ
    • 14. April 2015 um 10:27

    Ist komisch, da ich auch die 3.3.12.0 verwende und der Code der Gleiche ist. Du könntest den Code mit der neusten Beta probieren.
    Ansonsten keine Ahnung, warum es bei dir nicht läuft.

    I.d.R. rasiere ich mich nicht täglich ;)

  • CoSiNUs brOTHerS inTRO build 2015-04-20

    • UEZ
    • 14. April 2015 um 08:34

    Welche AutoIt Version benutzt du?

    Funzt bei dir die Exe Version (siehe Anhang)?

    Dateien

    Waving Image.7z 382,22 kB – 555 Downloads
  • Bilder trapezförmig skalieren und mit Text versehen

    • UEZ
    • 12. April 2015 um 10:56

    Das geht auch. D.h. anstelle die Grafik zu löschen, muss du das vorige Bild in die Grafik kopieren.

  • SSE Shuffle Explorer V2

    • UEZ
    • 11. April 2015 um 21:48

    Vielen Dank Eukalyptus! :thumbup:

    Die Shuffle Befehle sind mir noch ein Rätsel. Ein Bild sagt mehr als 1000 Worte!

    Wird wohl für meine ASM Kurse sehr nützlich sein.

  • CoSiNUs brOTHerS inTRO build 2015-04-20

    • UEZ
    • 11. April 2015 um 18:38
    Zitat von minx

    Wolltest du sowas ähnliches: http://www.openprocessing.org/sketch/133247

    Nee, das sich die Textur dreht, ist eigentlich nicht beabsichtigt gewesen. Eigentlich sollte sich nichts drehen und die Textur sollte nach unten bzw. oben sich wie ein Gummiband ziehen.

    Ich suche mal nach dem Effekt.

  • CoSiNUs brOTHerS inTRO build 2015-04-20

    • UEZ
    • 11. April 2015 um 17:47

    Ich habe aus dem Effekt ein kleines Intro mit einem C64 SID Chip Sound gebastelt.

    Den Source Code hier zu posten macht keinen Sinn, da der Code nun aus 3 Teilen besteht. D.h. nur als Download inkl. kompilierter Exe!

    Sollte einigermaßen flüssig laufen.

    Ich hoffe, es gefällt euch.

    PS: wenn die CPU zu "schwach" ist, läuft das Timing für die Effekte nicht richtig -> DllCall("user32.dll", "int", "SetTimer", "hwnd", $hGUI, "int", 0, "int", 30, "int", 0)) die 30 auf 40 oder höher setzen! Oder den Wert für $iStripes reduzieren, z.B. $iStripes = 200 setzen.


    Auf meiner Kiste (Notebook / i5 CPU, Win8.1 x64) läuft das Intro mit ca. 30 FPS! KEIN WinXP SUPPORT!


    Chip Sound Player von wakillon: autoitscript.com/forum/topic/169098-chiptunes-players/ (sehr empfehlenswert für Chip Sound Liebhaber)


    Screenshot:
    CoSiNUs brOTHerS inTRO.png


    Video:

    Externer Inhalt vimeo.com
    Inhalte von externen Seiten werden ohne deine Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklärst du dich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.

    Dateien

    CoSiNUs brOTHerS inTRO build 2015-04-20.7z 503,09 kB – 680 Downloads
  • RANDOM

    • UEZ
    • 11. April 2015 um 12:48

    Was willst du denn mit dem Skript erreichen?

  • Bilder trapezförmig skalieren und mit Text versehen

    • UEZ
    • 10. April 2015 um 19:02

    Probiere es mal damit:

    [autoit]

    #include <GDIPlus.au3>
    #include <GUIConstantsEx.au3>

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

    Global $sImageFile = FileOpenDialog("Select an image", "", "Images (*.jpg;*.png;*.bmp)")
    If @error Then Exit MsgBox(0, "Information", "Nothing selected - stopping script!", 30)
    _GDIPlus_Startup()
    Global $hBitmap = _GDIPlus_BitmapCreateFromFile($sImageFile)
    DrawTextOnBitmap($hBitmap, "This is a GDI+ demo", 50)
    Global Const $iW = _GDIPlus_ImageGetWidth($hBitmap), $iH = _GDIPlus_ImageGetHeight($hBitmap)
    Global Const $hGUI = GUICreate("GDI+ Test", $iW, $iH)
    GUISetBkColor(0)
    GUISetState()
    Global Const $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hGUI)
    Global Const $hBmp = _GDIPlus_BitmapCreateFromGraphics($iW, $iH, $hGraphics)
    Global Const $hCtxt = _GDIPlus_ImageGetGraphicsContext($hBmp)
    _GDIPlus_GraphicsSetPixelOffsetMode($hCtxt, 2)
    Global $fPosX = 0, $fPosY = 0, $iSpeed = $iH / 20
    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $iSpeed = ' & $iSpeed & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
    AdlibRegister("Anim", 20)

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

    Do
    Switch GUIGetMsg()
    Case $GUI_EVENT_CLOSE
    AdlibUnRegister("Anim")
    _GDIPlus_GraphicsDispose($hGraphics)
    _GDIPlus_GraphicsDispose($hCtxt)
    _GDIPlus_BitmapDispose($hBitmap)
    _GDIPlus_BitmapDispose($hBmp)
    _GDIPlus_Shutdown()
    GUIDelete()
    Exit
    EndSwitch
    Until False

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

    Func Anim()
    _GDIPlus_GraphicsClear($hCtxt)
    _GDIPlus_DrawImagePoints($hCtxt, $hBitmap, 0, 0, $iW, 0, $fPosX, $fPosY)
    _GDIPlus_GraphicsDrawImageRect($hGraphics, $hBmp, 0, 0, $iW, $iH)
    $fPosY += ($fPosY < $iH) ? $iSpeed : AdlibUnRegister("Anim")
    EndFunc

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

    Func DrawTextOnBitmap(ByRef $hBitmap, $sText, $fFontSize, $sFontTyp = "Impact", $iInnerColor = 0xFFFFFFFF, $iBorderColor = 0xFF000000)
    Local Const $iW = _GDIPlus_ImageGetWidth($hBitmap), $iH = _GDIPlus_ImageGetHeight($hBitmap)
    Local Const $hGfx = _GDIPlus_ImageGetGraphicsContext($hBitmap)
    _GDIPlus_GraphicsSetSmoothingMode($hGfx, 4)
    _GDIPlus_GraphicsSetTextRenderingHint($hGfx, 3)
    _GDIPlus_GraphicsSetPixelOffsetMode($hGfx, 2)
    Local Const $hBrush_Inner = _GDIPlus_BrushCreateSolid($iInnerColor), $hPen_Border = _GDIPlus_PenCreate($iBorderColor, 1.5)
    Local Const $hPath = _GDIPlus_PathCreate(), $hFamily = _GDIPlus_FontFamilyCreate($sFontTyp), $hFormat = _GDIPlus_StringFormatCreate()
    Local Const $tLayout = _GDIPlus_RectFCreate(0, 0, $iW, $iH)
    _GDIPlus_StringFormatSetAlign($hFormat, 1)
    _GDIPlus_StringFormatSetLineAlign($hFormat, 1)
    _GDIPlus_PathAddString($hPath, $sText, $tLayout, $hFamily, 0, $fFontSize, $hFormat)
    _GDIPlus_GraphicsFillPath($hGfx, $hPath, $hBrush_Inner)
    _GDIPlus_GraphicsDrawPath($hGfx, $hPath, $hPen_Border)
    _GDIPlus_GraphicsDispose($hGfx)
    _GDIPlus_BrushDispose($hBrush_Inner)
    _GDIPlus_PenDispose($hPen_Border)
    _GDIPlus_PathDispose($hPath)
    _GDIPlus_FontFamilyDispose($hFamily)
    _GDIPlus_StringFormatDispose($hFormat)
    EndFunc

    [/autoit]
  • WMI in Autoit

    • UEZ
    • 10. April 2015 um 16:26

    Wenn du in der CMD Box nur wmic memphysical eingibst, dann bekommst du eine Tabelle zurück, die dir die WMI Klasse dafür zurück gibt.

    CreationClassName
    Win32_PhysicalMemoryArray


    Oder Google ist dein persönlicher Freund. ;)

  • WMI in Autoit

    • UEZ
    • 10. April 2015 um 16:20

    Ok, dann probiere es mal damit:

    [autoit]

    $sWMIService = "winmgmts:\\.\root\CIMV2"
    $objWMIService = ObjGet($sWMIService)
    If IsObj($objWMIService) Then
    $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_PhysicalMemoryArray")
    If IsObj($colItems) Then
    For $oItem In $colItems
    $MemoryDevices = $oItem.MemoryDevices
    msgbox(0,"Speicherbänke", "Speicherbänke Anzahl: " & $MemoryDevices)
    Next
    Else
    MsgBox(16, "Error", "Failed to get collection.")
    EndIf
    Else
    MsgBox(4096, "ERROR", "Failed to connect to WMI at: " & $sWMIService)
    EndIf

    [/autoit]
  • WMI in Autoit

    • UEZ
    • 10. April 2015 um 15:40

    Ich gehe davon aus, dass du die Speichergröße auslesen willst.

    Probiere es mal hiermit:

    [autoit]


    #include <WinAPIMisc.au3>

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

    $sWMIService = "winmgmts:\\.\root\CIMV2"
    $objWMIService = ObjGet($sWMIService)
    If IsObj($objWMIService) Then
    $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_COMPUTERSYSTEM")
    If IsObj($colItems) Then
    For $oItem In $colItems
    $rechnername = $oItem.Caption
    $speicher = $oItem.TotalPhysicalMemory
    msgbox(0,"",$rechnername & " / " & _WinAPI_StrFormatByteSize($speicher))
    Next
    Else
    MsgBox(16, "Error", "Failed to get collection.")
    EndIf
    Else
    MsgBox(4096, "ERROR", "Failed to connect to WMI at: " & $sWMIService)
    EndIf

    [/autoit]
  • Bilder trapezförmig skalieren und mit Text versehen

    • UEZ
    • 10. April 2015 um 07:26

    Den Ansatz hast du, haue rein, wie du es gerne hättest.

  • ISN AutoIt Studio

    • UEZ
    • 9. April 2015 um 21:24

    Ok, danke. Cooler wäre es, einen Button in die Leiste zu haben, anstatt über das Menu zu gehen.

    Was mir noch aufgefallen ist, dass die Up-Down Buttons, z.B. Font Größe, die Ansicht (Live) oder nach dem Loslassen der Maustaste nicht aktualisiert. Man muss Enter drücken, damit
    die Einstellungen übernommen werden. Auch hier wäre ein Live Ansicht cool.

  • komplexer Synthesizer (Bass.dll)

    • UEZ
    • 9. April 2015 um 21:08

    Sollte das hier sein.

    Dateien

    Synthesizer.7z 949,18 kB – 886 Downloads
  • ISN AutoIt Studio

    • UEZ
    • 9. April 2015 um 20:48

    Wie kann ich den GUI Editor öffnen? Irgendwie sehe ich das nicht.

  • ISN AutoIt Studio

    • UEZ
    • 9. April 2015 um 16:33

    Der Source Code Link auf deiner Seite scheint auf die alte Version zu zeigen.

  • Forum Problemsammlung

    • UEZ
    • 8. April 2015 um 16:51

    Keine Ahnung, ob's schon erwähnt wurde, aber die angepinnten Beiträge sind doppelt.

  • Bilder trapezförmig skalieren und mit Text versehen

    • UEZ
    • 8. April 2015 um 16:38

    Du kannst ja dies mal als Ansatz nehmen:

    Spoiler anzeigen
    [autoit]

    #include <GDIPlus.au3>
    #include <GUIConstantsEx.au3>

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

    Global $sImageFile = FileOpenDialog("Select an image", "", "Images (*.jpg;*.png;*.bmp)")
    If @error Then Exit MsgBox(0, "Information", "Nothing selected - stopping script!", 30)
    _GDIPlus_Startup()
    Global $hBitmap = _GDIPlus_BitmapCreateFromFile($sImageFile)
    DrawTextOnBitmap($hBitmap, "This is a GDI+ demo", 50)
    Global Const $iW = _GDIPlus_ImageGetWidth($hBitmap), $iH = _GDIPlus_ImageGetHeight($hBitmap)
    Global Const $hGUI = GUICreate("GDI+ Test", $iW, $iH)
    GUISetBkColor(0)
    GUISetState()
    Global Const $hGraphics = _GDIPlus_GraphicsCreateFromHWND($hGUI)
    Global Const $hBmp = _GDIPlus_BitmapCreateFromGraphics($iW, $iH, $hGraphics)
    Global Const $hCtxt = _GDIPlus_ImageGetGraphicsContext($hBmp)
    _GDIPlus_GraphicsSetPixelOffsetMode($hCtxt, 2)
    Global $fPosX = 0, $fPosY = 0
    AdlibRegister("Anim", 30)

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

    Do
    Switch GUIGetMsg()
    Case $GUI_EVENT_CLOSE
    AdlibUnRegister("Anim")
    _GDIPlus_GraphicsDispose($hGraphics)
    _GDIPlus_GraphicsDispose($hCtxt)
    _GDIPlus_BitmapDispose($hBitmap)
    _GDIPlus_BitmapDispose($hBmp)
    _GDIPlus_Shutdown()
    GUIDelete()
    Exit
    EndSwitch
    Until False

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

    Func Anim()
    _GDIPlus_GraphicsClear($hCtxt)
    _GDIPlus_DrawImagePoints($hCtxt, $hBitmap, 0, 0, $iW, 0, $fPosX, $fPosY)
    _GDIPlus_GraphicsDrawImageRect($hGraphics, $hBmp, 0, 0, $iW, $iH)
    Local Static $iX = 0, $fAmpl = 40
    $fPosY += ($fPosY <= $iH) ? 2 : 0
    If $fPosY <= $iH Then
    $fPosX = Cos($fPosY / 30) * $fAmpl
    $iX = $fPosY
    Else
    $fPosX = Cos($iX / 30) * $fAmpl
    $iX += 2
    $fAmpl -= $fAmpl > 0 ? 0.25 : 0
    If $fAmpl <= 0 Then AdlibUnRegister("Anim")
    EndIf
    EndFunc

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

    Func DrawTextOnBitmap(ByRef $hBitmap, $sText, $fFontSize, $sFontTyp = "Impact", $iInnerColor = 0xFFFFFFFF, $iBorderColor = 0xFF000000)
    Local Const $iW = _GDIPlus_ImageGetWidth($hBitmap), $iH = _GDIPlus_ImageGetHeight($hBitmap)
    Local Const $hGfx = _GDIPlus_ImageGetGraphicsContext($hBitmap)
    _GDIPlus_GraphicsSetSmoothingMode($hGfx, 4)
    _GDIPlus_GraphicsSetTextRenderingHint($hGfx, 3)
    _GDIPlus_GraphicsSetPixelOffsetMode($hGfx, 2)
    Local Const $hBrush_Inner = _GDIPlus_BrushCreateSolid($iInnerColor), $hPen_Border = _GDIPlus_PenCreate($iBorderColor, 1.5)
    Local Const $hPath = _GDIPlus_PathCreate(), $hFamily = _GDIPlus_FontFamilyCreate($sFontTyp), $hFormat = _GDIPlus_StringFormatCreate()
    Local Const $tLayout = _GDIPlus_RectFCreate(0, 0, $iW, $iH)
    _GDIPlus_StringFormatSetAlign($hFormat, 1)
    _GDIPlus_StringFormatSetLineAlign($hFormat, 1)
    _GDIPlus_PathAddString($hPath, $sText, $tLayout, $hFamily, 0, $fFontSize, $hFormat)
    _GDIPlus_GraphicsFillPath($hGfx, $hPath, $hBrush_Inner)
    _GDIPlus_GraphicsDrawPath($hGfx, $hPath, $hPen_Border)
    _GDIPlus_GraphicsDispose($hGfx)
    _GDIPlus_BrushDispose($hBrush_Inner)
    _GDIPlus_PenDispose($hPen_Border)
    _GDIPlus_PathDispose($hPath)
    _GDIPlus_FontFamilyDispose($hFamily)
    _GDIPlus_StringFormatDispose($hFormat)
    EndFunc

    [/autoit]
  • Bilder trapezförmig skalieren und mit Text versehen

    • UEZ
    • 7. April 2015 um 16:04

    Ein Trapez mit dem Bild geht leider nicht, aber ein Parallelogramm schon! -> _GDIPlus_DrawImagePoints

  • Bilder trapezförmig skalieren und mit Text versehen

    • UEZ
    • 7. April 2015 um 10:01

    Ich weiß zwar nicht, wo in dem Bild ein Trapez sein soll, aber das Ganze lässt sich ganz gut in GDI+ realisieren.

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™