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

Beiträge von ZitterAal

  • Hermes Paketschein ausfüllen (Thema erneut, da Webseite geändert wurde)

    • ZitterAal
    • 30. Mai 2021 um 17:22
    Code
    #include <IE.au3>
    
    
    $Url = "https://www.myhermes.de/wps/portal/paket/Home/privatkunden/versenden/paket"
    
    
    $oIE = _IECreate($Url, 0, 1, 1, 1)
    
    
    ;WinWait("Paketschein erstellen - Internet Explorer",5)
    
    
    Sleep(500)
    
    
    WinSetState("Paketschein erstellen", "", @SW_MAXIMIZE)
    
    
    $oForm = _IEFormGetCollection($oIE, 0) ;****** WERT GEÄNDERT ********
    ;_IELinkClickByText($oForm,"+")
    $eLand = "Deutschland"
    
    If $eLand <> "Deutschland" Then
        $oSelect = _IEGetObjById($oForm, "parcelclass-cc")
        _IEFormElementOptionSelect($oSelect, $eLand, 1, "byText", 1)
        $oEvt = $oIE.document.createEvent("HTMLEvents")
        $oEvt.initEvent("change", True, False)
        $oSelect.dispatchEvent($oEvt)
        Sleep(1000)
        $oForm = _IEFormGetCollection($oIE, 1)
        For $formid In $oForm
            ConsoleWrite($formid.id & @CRLF) ;
        Next
        $oFirma = _IEGetObjById($oForm, "parcelclass-HP")
        _IEAction($oFirma, "click")
    EndIf
    
    $oFirma = _IEGetObjById($oForm, "senderAddressLastname")
    ClipPut('$aNACHNAME')
    _IEAction($oFirma, 'focus')
    _IEAction($oFirma, 'paste')
    
    $oFirma = _IEGetObjById($oForm, "senderAddressFirstname")
    ClipPut('$aVORNAME')
    _IEAction($oFirma, 'focus')
    _IEAction($oFirma, 'paste')
    
    ; ********** UND SO WEITER **************
    
    $oFirma = _IEGetObjById($oForm, "parcelclass-HP")
    _IEAction($oFirma, "click")
    ;$oFirma = _IEGetObjById($oIE,"send_business")
    ;_IEAction ($oFirma, "click")
    ;$oFirma = _IEGetObjById($oIE,"liabilityAccepted")
    ;_IEAction ($oFirma, "click")
    ;$oFirma = _IEGetObjById($oIE,"tocAccepted")
    ;_IEAction ($oFirma, "click")
    ;$button=_IEGetObjById($oForm,"increase0Amount")
    ;_IEAction($button,"click")
    
    
    
    
    
    
    $oIE = 0
    Exit
    Alles anzeigen
  • Hermes Paketschein ausfüllen

    • ZitterAal
    • 13. April 2020 um 17:25

    ClipPut($sReceiverStadt)
    _IEAction($oReceiverStadt,'focus')
    _IEAction($oReceiverStadt,'paste')

    ;_IEFormElementSetValue($oReceiverStadt, $sReceiverStadt) entfällt

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™