Jump to content

Recommended Posts

Posted

Hi,

I am trying to run an existing AutoIt script that I wrote for Windows 7 on a Windows 10 notebook. The problem I am having is that the scroll function no longer works.

I open the website using the standard syntax:  $oIE = _IECreate('http://mywebsite.co.za') and then scroll using: $oIE.document.parentwindow.scroll(0,500)

What's strange is that this works on Windows 7 IE11 (same version IE as Windows 10). Even stranger is that on Windows 10, if I tried another website like google.com, then the scroll works as expected.

This is the error message I get, which suggests that the .document property somehow does not exist for some websites.

scroll-error.png.ba8f15ac46c0174bd318c1bb9e178b49.png

 

Any ideas?

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...