|
楼主 |
发表于 2010-5-2 23:15:19
|
显示全部楼层
真是奇怪了,今天测试,又可以实现了。
#include <GUIConstants.au3>
; 改变窗口匹配模式,使程序支持类别名和句柄
AutoItSetOption("WinTitleMatchMode", 4)
WinWaitActive("网上股票交易系统")
$handle = WinGetHandle("网上股票交易系统", "")
If @error Then
MsgBox(4096, "错误", "无法找到该窗口")
Exit 0
Else
ControlSend($handle,"","[ID:1032;CLASS:EDIT;INSTANCE:1]", "600111")
ControlSetText($handle,"","[ID:1033;CLASS:Edit;INSTANCE:2]","36")
ControlSetText($handle,"","[ID:1034;CLASS:Edit;INSTANCE:3]","100")
ControlClick($handle, "", "[ID:1006;CLASS:Button;INSTANCE:7]")
;GUICtrlSetData("[ID:1032;CLASS:EDIT;INSTANCE:7]","600001")
EndIf
;MsgBox(0, "完成", "执行完成") |
|