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

  • 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 – 704 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.

  • Revision 2015

    • UEZ
    • 6. April 2015 um 13:08

    Hier meine Impressionen:

    + schön wieder mit Andy zusammen auf die Party zu fahren :)
    + mehr weibliche Teilnehmer als sonst, die nicht wie die "Lappen" aussahen, wobei ich sagen muss, dass die "Lappen" wie Mathe / Physik Studenten aussehen ;)
    - viele Kleinkinder mit Hörschutz (wtf)
    - die meisten Beiträge waren so schlecht, dass ich mit GDI+ auch hätte teilnehmen können (nur eine Handvoll waren sehr gut)
    - ultra schlechte DJ "Musik" -> kann man echt mit Baustellen Lärm vergleichen
    - weniger Teilnehmer (gefühlt)
    - AutoIt ist nicht besonders bekannt und hat eher ein Botter Image (der Eine am Eingang hat sich gewundert, ob auch jetzt AutoIt Entwickler auf die Party kommen)

    [Blockierte Grafik: http://2015.revision-party.net/media/photowall/photobooth_display/thumbs/big_Capture02245.jpg]

  • Forum Problemsammlung

    • UEZ
    • 1. April 2015 um 18:47

    Meine 2 Punkte:

    • Nachrichten mit wesentlich mehr als 10.000 Zeichen
    • Anhänge im .7z und .au3 Format erlauben

    Edit1: Ok, Punkt 2 scheint gefixt zu sein.
    Edit2: PN's mit mehr als 10.000 Zeichen geht jetzt. Wo ist jetzt das Limit?

  • _GDIPlus_GraphicsDrawString() wird nicht angezeigt

    • UEZ
    • 1. April 2015 um 18:44

    Benutze mal


    _GDIPlus_GraphicsDrawStringEx()


    anstelle.

    Edit: habe den Code ausgeführt und kann den Text unter Win 8.1 / Win10 build 9841 sehen!

  • _ScreenCapture_Capture in Zwischenablage

    • UEZ
    • 24. März 2015 um 22:22

    Als Anfänger wagst du dich gleich an was "kompliziertes" heran.

    Ich lerne gerade ASM und lerne auch nur die Basics erst mal.

    Fange doch klein an und steigere dich.

  • _ScreenCapture_Capture in Zwischenablage

    • UEZ
    • 24. März 2015 um 15:12

    Wenn du

    [autoit]

    _ScreenCapture_Capture("", $X, $Y, $x1,$y1)

    [/autoit]

    ohne Dateiname aufrufst, bekommst du ein GDI (kein GDI+) Handle zurück. D.h. die Bitmap liegt im Speicher als Rohformat vor.

    Bezgl. der Lupe einfach mal danach suchen.

  • Revision 2015

    • UEZ
    • 22. März 2015 um 23:33

    Und wer plant mit bzw. selbst zu dorthin zu fahren?

  • _SplashTextOnEx UDF build 2015-05-10

    • UEZ
    • 19. März 2015 um 18:44
    Zitat von autoiter

    Ich könnte schwören, vor Kurzem war UEZ noch im fünften Lehrjahr.. Ist das schon so lange her? :D

    Eigentlich möchte ich mich aber auch nur bedanken. Sehr geil!

    Ich habe ein Lehrjahr übersprungen, aber ein Abschluss ist nicht in Reichweite. ;)

  • Revision 2015

    • UEZ
    • 18. März 2015 um 20:19

    Übrigens kostet der Eintritt 50 €uro. Zu den Fahrtkosten kann ich noch nichts sagen.

  • _SplashTextOnEx UDF build 2015-05-10

    • UEZ
    • 15. März 2015 um 15:58

    Entweder auf 3.3.12.0 aktualisieren oder die Konstante mit 3 ersetzen.

    [autoit]

    Global Const $GDIP_TextRenderingHintAntialiasGridFit = 3

    [/autoit]

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™