controlsend auf Java-Anwendung ohne Funktion

  • Hallo
    kann es sein das Controlsend nicht auf eine Java-Anwendung wirkt?

    Das Script läuit ohne Probleme durch aber ohne die entsprechenden Eintragungen.

    Das hier ist der Code:

    [autoit]


    Global $oExcel
    Global $Pfad
    Global $oWorkbook
    Global $A2 ;EDITH Benutzername
    Global $A3 ;EDITH Kennwort

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

    #include <Excel.au3>

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

    Local $oExcel = _Excel_Open(0,0,0,0,1) ;Variable Excel Öffnen
    Local $Pfad = @ScriptDir & "\Datei.xlsx" ;Variable Pfad und Datei - Diese Datei sollte bereits existieren
    Local $oWorkbook = _Excel_BookOpen($oExcel, $Pfad) ; Variable Workbook inklusiv Excel öffnen und Pfad

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

    $A2 = _Excel_RangeRead($oWorkbook,"Tabelle1", "A2")
    $A3 = _Excel_RangeRead($oWorkbook,"Tabelle1", "A3")

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

    _Excel_Close($oExcel)

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

    ShellExecute ("http://edith.intranet.deutschebahn.com/webstart/edith.jnlp")
    WinWait ("EDITH","")

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

    ControlSend ("EDITH","","",$A2,0)
    ControlSend ("EDITH","","","{TAB}",0)
    ControlSend ("EDITH","","",$A3,0)
    ControlSend ("EDITH","","","{TAB}",0)
    MsgBox(0,"Daten",$A2 & @LF & $A3)

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

    Exit

    [/autoit]
  • Hallo
    kann es sein das Controlsend nicht auf eine Java-Anwendung wirkt?

    Das Script läuit ohne Probleme durch aber ohne die entsprechenden Eintragungen.

    Wie du siehst ist es so. Mit der IE.au3 und der FF.au3 sollte es aber möglich sein.

    Einmal editiert, zuletzt von autoBert (22. Oktober 2015 um 17:23)