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
#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
$A2 = _Excel_RangeRead($oWorkbook,"Tabelle1", "A2")
$A3 = _Excel_RangeRead($oWorkbook,"Tabelle1", "A3")
_Excel_Close($oExcel)
[/autoit][autoit][/autoit][autoit]ShellExecute ("http://edith.intranet.deutschebahn.com/webstart/edith.jnlp")
WinWait ("EDITH","")
ControlSend ("EDITH","","",$A2,0)
ControlSend ("EDITH","","","{TAB}",0)
ControlSend ("EDITH","","",$A3,0)
ControlSend ("EDITH","","","{TAB}",0)
MsgBox(0,"Daten",$A2 & @LF & $A3)
Exit
[/autoit]