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

Beiträge von chip

  • _GUICtrlListView_SortItems sortiert nicht korrekt

    • chip
    • 15. September 2011 um 20:17

    Probier es mal so:

    Spoiler anzeigen
    [autoit]

    Func _ListViewDateiSort()
    _GUICtrlListView_RegisterSortCallBack($listview_dateiliste, false)
    _GUICtrlListView_SortItems($listview_dateiliste, GUICtrlGetState($listview_dateiliste))
    EndFunc

    [/autoit]
  • _IELoadWait bei JS-Fehler

    • chip
    • 15. September 2011 um 18:18

    Setz einfach bei _IELoadWait den Timeoutparameter runter. Standardmäßig ist der auf 5 Minuten.

  • Request an die AutoIT Spezialisten :-)

    • chip
    • 15. September 2011 um 17:46

    Sag mal ignorierst mein Beispiel oder verstehst es nur einfach nicht :D?

  • leere, übergeordnete ordner finden / unterordner eins nach oben verschieben

    • chip
    • 15. September 2011 um 13:15

    Oder du nimmst einfach direkt Mediamonkey und sparts dir das Scriptschreiben: klick mich

  • Simples 7-zip Installationsskript reagiert nicht

    • chip
    • 15. September 2011 um 10:49

    Hier, so ist es bei uns im Einsatz ganz ohne ControlClick weil bei so simplem Setup schlicht unnötige "Arbeit":

    Spoiler anzeigen
    [autoit]

    BlockInput(1)
    Opt("WinWaitDelay",100)
    Opt("WinTitleMatchMode",4)
    Opt("WinDetectHiddenText",1)
    Opt("MouseCoordMode",0)
    RunAs("XXXX","XXX","XXXX",0,"\\XXX.XXX.XXX.X\ProgrammeAutoit$\7-Zip v465\7z465.exe")
    WinWait("7-Zip 4.65 Setup ","Choose Install Locat")
    If Not WinActive("7-Zip 4.65 Setup ","Choose Install Locat") Then WinActivate("7-Zip 4.65 Setup ","Choose Install Locat")
    WinWaitActive("7-Zip 4.65 Setup ","Choose Install Locat")
    sleep(100)
    Send("{ENTER}")
    WinWait("7-Zip 4.65 Setup ","Completing the 7-Zip")
    If Not WinActive("7-Zip 4.65 Setup ","Completing the 7-Zip") Then WinActivate("7-Zip 4.65 Setup ","Completing the 7-Zip")
    WinWaitActive("7-Zip 4.65 Setup ","Completing the 7-Zip")
    sleep(100)
    Send("{ENTER}")
    BlockInput(0)

    [/autoit]
  • Request an die AutoIT Spezialisten :-)

    • chip
    • 15. September 2011 um 09:36

    Könnte so gehen, wobei sich das ganze für mich wie eine anhört als würde das ganze mit Javascritp erzeugt von daher ist es fraglich ob es so geht:

    Spoiler anzeigen
    [autoit]

    #include <IE.au3>
    $oIE = _IECreate("Deine webseite")

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

    $sMyString = "wallpaper"
    $oLinks = _IELinkGetCollection($oIE)
    For $oLink in $oLinks
    $sLinkText = _IEPropertyGet($oLink, "innerText")
    If StringInStr($sLinkText, "Warnung quittieren") Then
    _IEAction($oLink, "click")
    EndIf
    Next

    [/autoit]
  • Win 8 Metro UI deaktivieren

    • chip
    • 15. September 2011 um 08:32

    Moin,

    hier zwei Wege um die nervige Metro UI im Win 8 Developer Preview zu deaktivieren: http://technikblog.rachfahl.de/losungen/metro…w-deaktivieren/

    Wenn man sich nach dem umstellen des Registry-Eintrages dan auch nochmal ab und wieder anmeldet ist dann auch alles komplett wie Win 7. Vermute aber das dies noch ein Bug im Developer Preview ist, da man dann wirklich ein normalens Win 7 vor sich hat. Sprich z.b. der Win 7 Taskmanager oder auch keine Ribbons mehr in Ordnern usw.

  • Simples 7-zip Installationsskript reagiert nicht

    • chip
    • 14. September 2011 um 23:18
    [autoit]

    WinWait

    [/autoit]

    Kann dir morgen auch mal mein 7-zip Installationsscript Posten. Das hab ich allerdings auf der Arbeit liegen, deshalb erst morgen.

  • CAN-Bus ansprechen

    • chip
    • 14. September 2011 um 15:47

    Bei den CAN-USB-Adaptern sind zwar dlls und auch Beispielcode dabei, aber mit dlls kenn ich mich nicht wirklich aus im Zusammenhang mit Autoit. z.b.: http://www.systec-electronic.com/html/index.pl/…t_usb_canmodul1

  • Progress färben und Icons woher?

    • chip
    • 13. September 2011 um 14:07

    Google einfach nach "copyrightfreie Icons" da findest genug Seiten :).

  • CAN-Bus ansprechen

    • chip
    • 13. September 2011 um 13:38

    Hi,

    kennt jemand ein Beispielscript oder vielleicht sogar UDF um mit Autoit den CAN-Bus anzusprechen?

    Erklärung CAN-Bus: http://de.wikipedia.org/wiki/Controller_Area_Network

    mfg

  • Divx Plus Setup

    • chip
    • 13. September 2011 um 09:46

    Du kannst bei WinExists, WinActivate usw. als zweiten Paramter einen Text übergeben welcher in dem Fenster steht, siehe näheres dazu in der Hilfe. Dann kannst die Fenster unterscheiden.

  • Suche Lösung: Grafiktyp erkennen und ggf Umwandeln in 8-Bit Grayscale

    • chip
    • 13. September 2011 um 09:40

    Darum habe ich ja auch direkt auf den Post verlinkt und nicht auf den ganzen Thread ;). Weil in dem Post wird es ohne FreeImage.dll und rein mit GDIPlus gemacht.

    Spoiler anzeigen
    [autoit]

    #Include <GDIPlus.au3>

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

    _GDIPlus_Startup()

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

    $img = FileOpenDialog("Select an image", @ScriptDir & "\", "Images (*.jpg;*.bmp;*.png;*.gif)", 1)

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

    $hImage1 = _GDIPlus_ImageLoadFromFile($img)
    $hImage2 = _GDIPlus_ImageGreyscale($hImage1)
    $ext = StringMid($img, StringLen($img) -2)
    $sCLSID = _GDIPlus_EncodersGetCLSID ($ext)
    _GDIPlus_ImageSaveToFileEx($hImage2, StringMid($img, 1, StringLen($img) - 4) & "_grey." & $ext, $sCLSID)
    $iwx = _GDIPlus_ImageGetWidth($hImage2)
    $iwy = _GDIPlus_ImageGetHeight($hImage2)
    $hGUI = GUICreate("Convert image to greyscale by Siao", $iwx, $iwy)
    GUISetState()

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

    $hGraphic = _GDIPlus_GraphicsCreateFromHWND ($hGUI)
    _GDIPlus_GraphicsDrawImageRect($hGraphic, $hImage2, 0, 0, $iwx, $iwy)

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

    While GUIGetMsg() <> -3 * Sleep(50)
    WEnd

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

    _GDIPlus_ImageDispose($hImage1)
    _GDIPlus_ImageDispose($hImage2)

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

    _GDIPlus_ShutDown()
    Exit

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

    ;; _GDIPlus_ImageGreyscale()
    ;; Creates a greyscale copy of Image object and returns its handle. To destroy it, use _GDIPlus_ImageDispose() or _GDIPlus_BitmapDispose()
    Func _GDIPlus_ImageGreyscale(Const ByRef $hImage)
    Local $tColorMatrix, $x, $hImgAttrib, $iW = _GDIPlus_ImageGetWidth($hImage), $iH = _GDIPlus_ImageGetHeight($hImage), $hGraphics, $hGraphics2, $hBitmap
    ;;create color matrix data
    $tColorMatrix = DllStructCreate("float[5];float[5];float[5];float[5];float[5]")
    ;greyscale values:
    $x = DllStructSetData($tColorMatrix, 1, 0.30, 1) * DllStructSetData($tColorMatrix, 1, 0.30, 2) * DllStructSetData($tColorMatrix, 1, 0.30, 3) * _
    DllStructSetData($tColorMatrix, 2, 0.59, 1) * DllStructSetData($tColorMatrix, 2, 0.59, 2) * DllStructSetData($tColorMatrix, 2, 0.59, 3) * _
    DllStructSetData($tColorMatrix, 3, 0.11, 1) * DllStructSetData($tColorMatrix, 3, 0.11, 2) * DllStructSetData($tColorMatrix, 3, 0.11, 3) * _
    DllStructSetData($tColorMatrix, 4, 1.00, 4) * DllStructSetData($tColorMatrix, 5, 1.00, 5)
    ;;create an image attributes object and update its color matrix
    $hImgAttrib = _GDIPlus_ImageAttributesCreate()
    _GDIPlus_ImageAttributesSetColorMatrix($hImgAttrib, 1, DllStructGetPtr($tColorMatrix))
    ;;copy image
    $hGraphics = _GDIPlus_ImageGetGraphicsContext($hImage)
    $hBitmap = _GDIPlus_BitmapCreateFromGraphics($iW, $iH, $hGraphics)
    $hGraphics2 = _GDIPlus_ImageGetGraphicsContext($hBitmap)
    ;;draw original into copy with attributes
    _GDIPlus_GraphicsDrawImageRectRectEx($hGraphics2, $hImage, 0, 0, $iW, $iH, 0, 0, $iW, $iH, 2, $hImgAttrib)
    ;;clean up
    _GDIPlus_GraphicsDispose($hGraphics)
    _GDIPlus_GraphicsDispose($hGraphics2)
    _GDIPlus_ImageAttributesDispose($hImgAttrib)

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

    Return $hBitmap
    EndFunc

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

    ;;;;; other GDIPlus wrappers ;;;;;

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

    #cs
    _GDIPlus_ImageAttributesSetColorMatrix()
    Sets ColorMatrix of ImageAttributes object
    Parameters:
    $hImgAttrib = ImageAttributes object
    $iColorAdjustType = can be:
    ColorAdjustTypeDefault = 0
    ColorAdjustTypeBitmap = 1
    ColorAdjustTypeBrush = 2
    ColorAdjustTypePen = 3
    ColorAdjustTypeText = 4
    ColorAdjustTypeCount = 5
    ColorAdjustTypeAny (Reserved) = 6
    $pColorMatrix = pointer to ColorMatrix structure
    $pGrayMatrix = pointer to GreyMatrix structure
    $iColorMatrixFlags = can be:
    ColorMatrixFlagsDefault = 0
    ColorMatrixFlagsSkipGrays = 1
    ColorMatrixFlagsAltGray = 2
    Return value: True/False
    #ce
    Func _GDIPlus_ImageAttributesSetColorMatrix($hImgAttrib, $iColorAdjustType, $pColorMatrix = 0, $pGrayMatrix = 0, $iColorMatrixFlags = 0)
    Local $fEnable = 1, $aResult = DllCall($ghGDIPDll, "int", "GdipSetImageAttributesColorMatrix", "ptr",$hImgAttrib, "int",$iColorAdjustType, _
    "int",$fEnable, "ptr",$pColorMatrix, "ptr",$pGrayMatrix, "int",$iColorMatrixFlags)
    Return SetError($aResult[0], 0, $aResult[0] = 0)
    EndFunc

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

    ;;Creates ImageAttributes object
    Func _GDIPlus_ImageAttributesCreate()
    Local $aResult = DllCall($ghGDIPDll, "int", "GdipCreateImageAttributes", "ptr*", 0)
    Return SetError($aResult[0], 0, $aResult[1])
    EndFunc

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

    ;;Deletes ImageAttributes object
    Func _GDIPlus_ImageAttributesDispose($hImgAttrib)
    Local $aResult = DllCall($ghGDIPDll, "int", "GdipDisposeImageAttributes", "ptr", $hImgAttrib)
    Return SetError($aResult[0], 0, $aResult[0] = 0)
    EndFunc

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

    ;; _GDIPlus_GraphicsDrawImageRectRectEx()
    ;; Same as _GDIPlus_GraphicsDrawImageRectRect(), but adds 1 optional parameter - $hImgAttrib (handle to ImageAttributes object)
    Func _GDIPlus_GraphicsDrawImageRectRectEx($hGraphics, $hImage, $iSrcX, $iSrcY, $iSrcWidth, $iSrcHeight, $iDstX, $iDstY, $iDstWidth, $iDstHeight, $iUnit = 2, $hImgAttrib = 0)
    Local $aResult = DllCall($ghGDIPDll, "int", "GdipDrawImageRectRectI", "hwnd", $hGraphics, "hwnd", $hImage, "int", $iDstX, "int", _
    $iDstY, "int", $iDstWidth, "int", $iDstHeight, "int", $iSrcX, "int", $iSrcY, "int", $iSrcWidth, "int", _
    $iSrcHeight, "int", $iUnit, "ptr", $hImgAttrib, "int", 0, "int", 0)
    Return SetError($aResult[0], 0, $aResult[0] = 0)
    EndFunc

    [/autoit]
  • _INetSmtpMailCom funktioniert nicht mehr

    • chip
    • 12. September 2011 um 18:05

    Aktiver mal unter win 7 den telnet client und gib dann mal in der cmd das ein:

    Code
    telnet smtp.web.de 25

    verbindet er sich dann mit dem smtp oder kommt ein Fehler?

  • Fragen zum Einstieg

    • chip
    • 12. September 2011 um 15:45

    Hier:

    [autoit]

    ShellExecute("D:\Programme\Mozilla Firefox Beta\firefox.exe", "-no-remote -p Beta")
    WinWaitActive("firefox")

    [/autoit]

    oder so:

    [autoit]

    _FFStart("about:blank", "Beta")
    WinWaitActive("firefox")

    [/autoit]
  • Zeit berechnung für download

    • chip
    • 12. September 2011 um 11:30

    Das geht nur wenn es der Server von den es runter lädst unterstützt.

  • Zeit berechnung für download

    • chip
    • 12. September 2011 um 11:21

    Aso, geht recht einfach:

    (Gesamtgröße des Downloads - bereits herruntergeladene Daten) / aktuelle Downloadsgeschwindigkeit = Verbleiibende Downloadszeit in Sekunden

    Edit: [ gelöst ] Downloadgeschwindigkeit berechnen

  • Zeit berechnung für download

    • chip
    • 12. September 2011 um 11:02

    Und die Frage ist nun genau was?

  • Suche Lösung: Grafiktyp erkennen und ggf Umwandeln in 8-Bit Grayscale

    • chip
    • 12. September 2011 um 09:48

    Evtl. hilft dir das Script weiter: http://www.autoitscript.com/forum/topic/10…post__p__765093

  • _INetSmtpMailCom funktioniert nicht mehr

    • chip
    • 12. September 2011 um 09:44

    Firewall mal abgeschaltet und geschaut ob es dann geht?

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™