标题: 如何才能使Robot在录制脚本时候能识别java控件 [打印本页] 作者: xwm1222 时间: 2006-11-15 13:15 标题: 如何才能使Robot在录制脚本时候能识别java控件 求助:
如何才能使Robot在录制脚本时候能识别java控件,即能抓到JAVA控件的属性等内容!!
急急急!!!
谢谢各位大虾!!作者: lana.li 时间: 2006-12-2 11:49
it can be recognized by default when i use it, such as editbox, dropdown box, button and so on, all of them can be recognized.(Web page)
Maybe the java object you mentioned is special in the web page
Here is some script, you can see some editbox and PushButton there.
Sub Main
Dim Result As Integer
'Initially Recorded: 12/2/2006 11:27:52 AM
'Script Name: java object
Window SetContext, "Class=Shell_TrayWnd", ""
Toolbar Click, "ObjectIndex=2;\;ItemText=Launch Internet Explorer Browser", "Coords=8,10"
Window SetContext, "Caption=about:blank - Microsoft Internet Explorer", ""
Toolbar Click, "ObjectIndex=5;\;ItemID=33136", "Coords=42,13"