Swing 从autoit中的文本字段获取值

Swing 从autoit中的文本字段获取值,swing,testing,autoit,Swing,Testing,Autoit,我想从Autoit中swing应用程序的文本字段中获取值以进行比较。是否有任何工具可以在浏览器中查找特定字段的ID,如firebug。Autoit中提取和比较字段值的代码是什么。来自帮助文件: ; ******************************************************* ; Example 1 - Open a browser to the basic example, get an object reference ; to t

我想从Autoit中swing应用程序的文本字段中获取值以进行比较。是否有任何工具可以在浏览器中查找特定字段的ID,如firebug。Autoit中提取和比较字段值的代码是什么。

来自帮助文件:

; *******************************************************
; Example 1 - Open a browser to the basic example, get an object reference
;               to the DIV element with the ID "line1". Display the innerText
;               of this element to the console.
; *******************************************************

#include <IE.au3>

Local $oIE = _IE_Example("basic")
Local $oDiv = _IEGetObjById($oIE, "line1")
ConsoleWrite(_IEPropertyGet($oDiv, "innertext") & @CRLF)
为Java应用程序提供自动化支持

用法示例:

WinActivate("Piface Application Selector")
_JavaAttachAndWait("Piface Application Selector")
$java_obj1 = _JavaObjValueGet("", "Type of analysis", "label")
$java_obj2 = _JavaObjValueGet("", "Run dialog", "push button")
MsgBox(262144, "_JavaObjValueGet.au3",  "Object values in the Piface Application Selector window include:" & @CRLF & @CRLF & _

我想在swing应用程序中获取一个字段的ID。是否有相关应用程序?OK _JavaObjValueGet是函数,但如何指定该字段?使用Autoit安装文件夹下的Autoit窗口信息工具。
WinActivate("Piface Application Selector")
_JavaAttachAndWait("Piface Application Selector")
$java_obj1 = _JavaObjValueGet("", "Type of analysis", "label")
$java_obj2 = _JavaObjValueGet("", "Run dialog", "push button")
MsgBox(262144, "_JavaObjValueGet.au3",  "Object values in the Piface Application Selector window include:" & @CRLF & @CRLF & _