|
发表于 2008-7-11 23:38:16
|
显示全部楼层
_IENavigate
--------------------------------------------------------------------------------
Directs an existing browser window to navigate to the specified URL.
#include <IE.au3>
_IENavigate ( ByRef $o_object, $s_url [, $f_wait = 1] )
参数
$o_object Object variable of an InternetExplorer.Application, Window or Frame object
$s_url URL to navigate to (e.g. "http://www.autoitscript.com")
$f_wait Optional: specifies whether to wait for page to load before returning
0 = Return immediately, not waiting for page to load
1 = (Default) Wait for page load to complete before returning
返回值
Success: Returns -1
Failure: Returns 0 and sets @ERROR
@Error: 0 ($_IEStatus_Success) = No Error
1 ($_IEStatus_GeneralError) = General Error
3 ($_IEStatus_InvalidDataType) = Invalid Data Type
4 ($_IEStatus_InvalidObjectType) = Invalid Object Type
6 ($_IEStatus_LoadWaitTimeout) = Load Wait Timeout
8 ($_IEStatus_AccessIsDenied) = Access Is Denied
9 ($_IEStatus_ClientDisconnected) = Client Disconnected
@Extended: Contains invalid parameter number
注意
This function always returns a value of -1. This is because the navigate method has no return value and therefore nothing can be implied from it. You will need to employ other methods to determine success or failure of the navigation.
相关
_IECreate, _IECreateEmbedded |
|