#include <IE.au3>
#Include <PostMessage_UDF.au3>
Local $hWnd, $hButton2
If WinExists("文件下载", "") Then
$hWnd = WinGetHandle("文件下载", "")
$hButton2 = ControlGetHandle($hWnd, "", "Button2")
Else
_IELoadWaitTimeout(10 * 1000)
_IECreate("http://125.89.196.19:82/down/ravolsky.zip", 0, 1, 0)
Do
Sleep(100)
$hWnd = WinGetHandle("文件下载", "")
Until $hWnd
Do
Sleep(100)
$hButton2 = ControlGetHandle($hWnd, "", "Button2")
Until $hButton2
EndIf
;操作
Do
Sleep(100)
_MouseClick($hButton2, "left", 255, 150)
Until ControlGetFocus($hWnd) == "Button2"
Do
Sleep(100)
_SendKeys($hButton2, "{ENTER}")
Until WinExists("另存为")
Exit
|