|
本帖最后由 xiaoyirui 于 2009-6-16 21:16 编辑
我想用一段au3脚本达到以下目的,请高手们赐教:
检查窗口 ("开心网 - 开心农场 - 肖逸瑞")
如果不存在则 :
If ProcessExists("IEXPLORE.EXE") Then
ProcessClose("IEXPLORE.EXE")
Sleep("500")
If ProcessExists("IEXPLORE.EXE") Then
ProcessClose("IEXPLORE.EXE")
Sleep("500")
If ProcessExists("IEXPLORE.EXE") Then
ProcessClose("IEXPLORE.EXE")
Sleep("500")
If ProcessExists("IEXPLORE.EXE") Then
ProcessClose("IEXPLORE.EXE")
Sleep("500")
EndIf
EndIf
EndIf
EndIf
ProcessWaitClose("IEXPLORE.EXE",3)
#include <IE.au3>
$oIE = _IECreate ("http://apps.kaixin.com/farmgame/index.php")
$oForm = _IEFormGetObjByName ($oIE, "f")
$oQuery = _IEFormElementGetObjByName ($oForm, "q")
_IEFormElementSetValue ($oQuery, "AutoIt IE.au3")
_IEFormSubmit ($oForm)
Sleep("3000")
WinSetState("开心网 - 开心农场 - 肖逸瑞","链接",@SW_MAXIMIZE)
WinSetOnTop("开心网 - 开心农场 - 肖逸瑞","链接",1)
MouseClickDrag("left",1140,356,1140,407)
请高手们赐教,谢谢 |
|