Brauche mal profie hilfe bei der Umsetzung einiger ideen

  • Hallo Brauche mal Profie Hilfe

    Im script: möchte ich das der name des fensters ( Marcel Siefert NL - Microsoft Word ) selbst bestimmt werden kann
    der gewählte name soll fürs ganze scrit gelten ( also alle " Marcel Siefert NL - Microsoft Word" im script.
    also so das man es nur einmal am anfang angeben muss.

    Des weiteren soll am ende die anzahl Wiederholungen ( Jetzt 12 ) ebenfals bestimmt werden können
    über die eingabe in einem text feld.

    Kann mir das jemand ein bauen?

    Script:

    $passwort = InputBox( "login", "passwordt")

    PHP


    If $passwort = "xxxxx" Then
    MsgBox( 0, "login", "Richtigt")

    Else

    if MsgBox ( 0, "login", "VERSAGT") Then = $passwort = InputBox( "login", "passwordt")
    EndIf

    Global $Wieoft=0
    Do
    WinWaitActive("QWS3270")
    send ("2")
    Send("{ENTER}")
    Sleep (1000)
    send ("01")
    Send("{ENTER}")
    Sleep (1000)
    Send("{F7}")
    Sleep (1000)
    ; Namen
    Send ("{left 74}")
    Sleep (1000)
    Send ("{up 14}")
    Send("{LSHIFT down}")
    Send("{RIGHT 30}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")
    Send ("{Tab}")

    ; Name sollte eingefügt sein
    ;-------------------------------------------------------------------
    ; Adresse

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    Send("{left 74}")
    Sleep (1000)
    Send("{up 13}")
    Send("{LSHIFT down}")
    Send("{RIGHT 28}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")
    Send ("{Tab}")

    ; Adresse sollte eingefügt sein

    ; ---------------------------------------------------------------------


    ; Postleitzahl

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    Send ("{left 74}")
    Sleep (1000)
    Send ("{up 11}")
    Sleep (1000)
    Send ("{RIGHT 21}")
    Send("{LSHIFT down}")
    Send("{RIGHT 7}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")

    ; Plz sollte eingefügt sein

    ; ---------------------------------------------------------------------

    ; Ort


    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    send ("{left 74}")
    Sleep (1000)
    Send ("{up 11}")
    Sleep (1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 12}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")


    ; Ort sollte eingefügt sein

    ; ---------------------------------------------------------------------

    ; Land

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    send ("{left 74}")
    Sleep (1000)
    Send ("{up 11}")
    Sleep (1000)
    Send ("{RIGHT 32}")
    Send("{LSHIFT down}")
    Send("{RIGHT 7}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")


    ; Land sollte eingefügt sein

    ; ---------------------------------------------------------------------

    ; Trackingnummer


    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    send ("{left 74}")
    Sleep (1000)
    Send ("{up 18}")
    Sleep (1000)
    Send ("{RIGHT 9}")
    Send("{LSHIFT down}")
    Send("{RIGHT 19}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")


    ; Trackingnummer sollte eingefügt sein

    ; ---------------------------------------------------------------------

    ; Empfänger daten

    ; ---------------------------------------------------------------------


    ; Empfänger name


    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    send ("{left 34}")
    Sleep (1000)
    Send ("{up 14}")
    Sleep (1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 28}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")
    ;Empfängername sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Empfänger strasse
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    send ("{left 34}")
    Sleep (1000)
    Send ("{up 13}")
    Sleep (1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 28}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")
    Send ("{Tab}")
    ;Empfängerstrasse sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Empfänger plz
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    send ("{left 12}")
    Sleep (1000)
    Send ("{up 11}")
    Sleep (1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 7}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")


    ;Empfänger PLZ sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; empf ort
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    send ("{left 34}")
    Sleep (1000)
    Send ("{up 11}")
    Sleep (1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 15}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")
    ; empf ort sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Empfänger land
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    send ("{left}")
    Sleep (1000)
    Send ("{up 11}")
    Sleep (1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 3}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")
    ; empf land sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Kundennummer
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep (1000)
    send ("{left 54}")
    Sleep (1000)
    Send ("{up 115}")
    Sleep (1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 3}")
    Send("{LSHIFT up}")
    Send ("^c")
    WinActivate ("Marcel Siefert NL - Microsoft Word")
    Send ("^v")
    Send ("{Tab}")
    Send ("{Tab}")
    Send ("{Tab}")
    Send ("{Tab}")
    Send ("{Tab}")
    Send ("{Tab}")
    Send ("{Tab}")
    Send ("{enter}")
    $Wieoft+=1
    Until $Wieoft=12

  • bitte schön:

    Spoiler anzeigen
    [autoit]

    Global $Fenstername = "Marcel Siefert NL - Microsoft Word"
    Global $Wieoft = 12

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

    If $passwort = "xxxxx" Then
    MsgBox(0, "login", "Richtigt")

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

    Else

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

    If MsgBox(0, "login", "VERSAGT") Then = $passwort = InputBox("login", "passwordt")
    EndIf

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

    For $i = 1 To $Wieoft
    WinWaitActive("QWS3270")
    Send("2")
    Send("{ENTER}")
    Sleep(1000)
    Send("01")
    Send("{ENTER}")
    Sleep(1000)
    Send("{F7}")
    Sleep(1000)
    ; Namen
    Send("{left 74}")
    Sleep(1000)
    Send("{up 14}")
    Send("{LSHIFT down}")
    Send("{RIGHT 30}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    Send("{Tab}")

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

    ; Name sollte eingefügt sein
    ;-------------------------------------------------------------------
    ; Adresse

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 13}")
    Send("{LSHIFT down}")
    Send("{RIGHT 28}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    Send("{Tab}")

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

    ; Adresse sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Postleitzahl

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{RIGHT 21}")
    Send("{LSHIFT down}")
    Send("{RIGHT 7}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ; Plz sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Ort

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 12}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ; Ort sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Land

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{RIGHT 32}")
    Send("{LSHIFT down}")
    Send("{RIGHT 7}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ; Land sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Trackingnummer

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 18}")
    Sleep(1000)
    Send("{RIGHT 9}")
    Send("{LSHIFT down}")
    Send("{RIGHT 19}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ; Trackingnummer sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Empfänger daten

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

    ; ---------------------------------------------------------------------

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

    ; Empfänger name

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 34}")
    Sleep(1000)
    Send("{up 14}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 28}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    ;Empfängername sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Empfänger strasse
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 34}")
    Sleep(1000)
    Send("{up 13}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 28}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    Send("{Tab}")
    ;Empfängerstrasse sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Empfänger plz
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 12}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 7}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ;Empfänger PLZ sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; empf ort
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 34}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 15}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    ; empf ort sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Empfänger land
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 3}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    ; empf land sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Kundennummer
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 54}")
    Sleep(1000)
    Send("{up 115}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 3}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{enter}")
    Next

    [/autoit]

    MfG Schnuffel

    "Sarkasmus ist die niedrigste Form des Witzes, aber die höchste Form der Intelligenz."
    Val McDermid

    ein paar Infos ...

    Wer mehr als "nur" Hilfe benötigt, kann sich gern im Forum "Programmieranfragen" an uns wenden. Wir helfen in allen Fällen, die die Forenregeln zulassen.

    Für schnelle Hilfe benötigen wir ein ! lauffähiges ! Script, dass wir als Demonstration des Problems testen können. Wer von uns erwartet ein Teilscript erstmal lauffähig zu bekommen, der hat
    1. keine wirkliche Not
    2. keinen Respekt vor Menschen die ihm in ihrer Freizeit Ihre Hilfe anbieten
    3. oder ist einfach nur faul und meint wir coden das für ihn

    In solchen Fällen erlaube ich mir, die Anfrage einfach zu ignorieren. ;)

  • Hallo

    ich danke dir.

    würde es auch gehen wenn ich


    $Test = InputBox ("bestimmung Fenstername", "Name des Dok")

    Benutze und anstatt / WinActivate($Fenstername) /

    WinActivate($test)


    Somit sollte der name der end datei doch frei wählbar sein oder?

    Gruß

    Adamkaller

  • Ich würde es so machen:

    [autoit]

    #include <Array.au3>
    #include <ComboConstants.au3>
    Opt("GUIOnEventMode", 1)
    $var = WinList()
    #region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Fensterauswahl", 423, 133, 192, 124)
    $Combo1 = GUICtrlCreateCombo("Bitte Auswählen...", 16, 16, 377, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
    For $i = 1 To $var[0][0]
    ; Listet nur die sichtbaren Fenster auf, die einen Titel haben
    If $var[$i][0] <> "" And IsVisible($var[$i][1]) Then
    GUICtrlSetData($Combo1, $var[$i][0]&"|")
    EndIf
    Next
    $Button1 = GUICtrlCreateButton("Ok", 112, 80, 75, 25)
    GUICtrlSetOnEvent(-1, "_output")
    $Button2 = GUICtrlCreateButton("Abbrechen", 192, 80, 75, 25)
    GUICtrlSetOnEvent(-1, "_exit")
    GUISetState(@SW_SHOW)
    #endregion ### END Koda GUI section ###

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

    While 1
    Sleep(200)
    WEnd
    Func _output()
    MsgBox(0, "Details", "Ausgewähltes Fenster:" & @LF & GUICtrlRead($Combo1))
    EndFunc ;==>_output
    Func _exit()
    Exit
    EndFunc ;==>_exit
    Func IsVisible($handle)
    If BitAND(WinGetState($handle), 2) Then
    Return 1
    Else
    Return 0
    EndIf

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

    EndFunc ;==>IsVisible

    [/autoit]
  • vielleicht so:

    Spoiler anzeigen
    [autoit]


    Global $Wieoft = 12
    Global $Fenstername
    Global $FensternamePfad = FileOpenDialog('Bitte die Datei auswählen:', @WindowsDir & "\", "Word-Dateien (*.doc;*.docx)", 1); beschränkt die Auswahl auf *.doc & *.docx Dateien
    $result=StringRegExp($FensternamePfad, "(\w*\.\w*)", 3)
    If IsArray($result) Then
    $Fenstername = $result[0]
    Else
    Exit
    EndIf

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

    If InputBox("login", "password") <> "xxxxx" Then Exit MsgBox(0, "login", "VERSAGT"); Passwortabfrage

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

    If WinExists($Fenstername) = 0 Then ShellExecute($FensternamePfad); Datei starten, wenn noch nicht vorhanden
    WinWait($fenstername); warten, bis Datei gestartet

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

    For $i = 1 To $Wieoft
    WinWaitActive("QWS3270")
    Send("2")
    Send("{ENTER}")
    Sleep(1000)
    Send("01")
    Send("{ENTER}")
    Sleep(1000)
    Send("{F7}")
    Sleep(1000)
    ; Namen
    Send("{left 74}")
    Sleep(1000)
    Send("{up 14}")
    Send("{LSHIFT down}")
    Send("{RIGHT 30}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    Send("{Tab}")

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

    ; Name sollte eingefügt sein
    ;-------------------------------------------------------------------
    ; Adresse

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 13}")
    Send("{LSHIFT down}")
    Send("{RIGHT 28}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    Send("{Tab}")

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

    ; Adresse sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Postleitzahl

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{RIGHT 21}")
    Send("{LSHIFT down}")
    Send("{RIGHT 7}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ; Plz sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Ort

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 12}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ; Ort sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Land

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{RIGHT 32}")
    Send("{LSHIFT down}")
    Send("{RIGHT 7}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ; Land sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Trackingnummer

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 74}")
    Sleep(1000)
    Send("{up 18}")
    Sleep(1000)
    Send("{RIGHT 9}")
    Send("{LSHIFT down}")
    Send("{RIGHT 19}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ; Trackingnummer sollte eingefügt sein

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

    ; ---------------------------------------------------------------------

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

    ; Empfänger daten

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

    ; ---------------------------------------------------------------------

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

    ; Empfänger name

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

    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 34}")
    Sleep(1000)
    Send("{up 14}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 28}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    ;Empfängername sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Empfänger strasse
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 34}")
    Sleep(1000)
    Send("{up 13}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 28}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    Send("{Tab}")
    ;Empfängerstrasse sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Empfänger plz
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 12}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 7}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")

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

    ;Empfänger PLZ sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; empf ort
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 34}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 15}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    ; empf ort sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Empfänger land
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left}")
    Sleep(1000)
    Send("{up 11}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 3}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    ; empf land sollte eingefügt sein
    ; ---------------------------------------------------------------------
    ; Kundennummer
    WinWaitActive("QWS3270")
    Send("{ENTER}")
    Sleep(1000)
    Send("{left 54}")
    Sleep(1000)
    Send("{up 115}")
    Sleep(1000)
    Send("{LSHIFT down}")
    Send("{RIGHT 3}")
    Send("{LSHIFT up}")
    Send("^c")
    WinActivate($Fenstername)
    Send("^v")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{Tab}")
    Send("{enter}")
    Next

    [/autoit]

    MfG Schnuffel

    "Sarkasmus ist die niedrigste Form des Witzes, aber die höchste Form der Intelligenz."
    Val McDermid

    ein paar Infos ...

    Wer mehr als "nur" Hilfe benötigt, kann sich gern im Forum "Programmieranfragen" an uns wenden. Wir helfen in allen Fällen, die die Forenregeln zulassen.

    Für schnelle Hilfe benötigen wir ein ! lauffähiges ! Script, dass wir als Demonstration des Problems testen können. Wer von uns erwartet ein Teilscript erstmal lauffähig zu bekommen, der hat
    1. keine wirkliche Not
    2. keinen Respekt vor Menschen die ihm in ihrer Freizeit Ihre Hilfe anbieten
    3. oder ist einfach nur faul und meint wir coden das für ihn

    In solchen Fällen erlaube ich mir, die Anfrage einfach zu ignorieren. ;)

  • ich kann es erst Montag testen aber ich danke euch schon mal für eure Anregungen

    Gruß

    Adamkaller