最终手动操作:代码如下: Run(@ComSpec & ' /c rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl ', "", @SW_HIDE)
WinWait( "Internet" )
If Not WinActivate ( "Internet","" ) Then WinActivate ( "Internet","" )
WinWaitActive ( "Internet","" )
$WinPosArray = WinGetPos ( "Internet" )
$TNewCheckListBoxArray = ControlGetPos ( "Internet", "", "[CLASS:SysTabControl32; INSTANCE:1]" )
$Width = $WinPosArray[0] + $TNewCheckListBoxArray[0]
$Height = $WinPosArray[1] + $TNewCheckListBoxArray[1]
MouseClick ( "left", $Width + 180, $Height + 40 )
Sleep(1000)
$TNewCheckListBoxArray = ControlGetPos ( "Internet", "", "[CLASS:Button; INSTANCE:2]" )
$Width = $WinPosArray[0] + $TNewCheckListBoxArray[0]
$Height = $WinPosArray[1] + $TNewCheckListBoxArray[1]
MouseClick ( "left", $Width + 95, $Height + 40 )
Sleep(200)
Send("{ENTER}")
$TNewCheckListBoxArray = ControlGetPos ( "Internet", "", "[CLASS:Button; INSTANCE:7]" )
$Width = $WinPosArray[0] + $TNewCheckListBoxArray[0]
$Height = $WinPosArray[1] + $TNewCheckListBoxArray[1]
MouseClick ( "left", $Width + 20, $Height + 40 )
|