Jump to content

Recommended Posts

Posted

Hi,

Below is my autoit script which will click on continue to this website(not recommended) when the website comes up in IE. But it is not working and its be on the same page. Appreciate the help.

Below is the HTML code:

<a name="overridelink" id="overridelink" href="https://*****.rdl?Web=1">Continue to this website (not recommended).</a>

Local $oIE = _IECreate($URL,0,1,0)
$oAccess = _IEGetObjById($oIE,"overridelink")
  _IEAction($oAccess, "click")

image.png.6eb742aff7ba486533b005cbf2f0f95b.png

Posted

 

Below is the Scite output:

--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType ()
--> IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType ()
--> IE.au3 T3.0-2 Error from function _IEGetObById, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEAction(click), $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType
--> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType
>Exit code: 0    Time: 44.17
 

Posted

You mean to say like this:

Local $oIE = _IEAttach($URL,0,1,0)
$oAccess = _IEGetObjById($oIE,"overridelink")
  _IEAction($oAccess, "click")

Posted

One thing i found same script if i am running in different server, it is working fine and clicking. I am not sure any IE settings or any security block or windows settings to be checked in this server.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...