|
楼主 |
发表于 2008-10-1 23:39:27
|
显示全部楼层
解决了!!
if WinExists("指定盘符")=1 Then
WinWait("指定盘符")
WinWaitActive("指定盘符")
send("{TAB 2}")
send("{DOWN 10}")
send("{TAB}")
send("{ENTER}")
WinWait("成功","成功")
WinWaitActive("成功","成功")
send("{ENTER}")
endif
if WinExists("警告")=1 Then
winWait("警告")
WinWaitActive("警告")
Send("{ENTER}")
send("{TAB}")
send("{ENTER}")
WinWait("成功","磁盘卸载成功")
WinWaitActive("成功","磁盘卸载成功")
send("{ENTER}")
send("{TAB 2}")
send("{SPACE}")
send("{TAB 4}")
send("{ENTER}")
send("{TAB 2}")
send("{DOWN 10}")
send("{TAB}")
send("{ENTER}")
WinWait("成功","成功")
WinWaitActive("成功","成功")
send("{ENTER}")
EndIf |
|