Jump to content

scroll left and right


Recommended Posts

Hello,

I am wondering how to "scroll" to left and right  (till the end ) on a webpage .

Sending Arrow left/right only moves a bit, I wan to move isntaly to the end

Up and down is easily done sending Page Up and Page Down.

Any ideas?

Greetings

Hendrik

Link to comment
Share on other sites

Thank you FrancescoDiMuro:)

here my sample code for those who are lookings for the solution

 

#include <MsgBoxConstants.au3>
#include <IE.au3>

HotKeySet("{ESC}", "go")

$oIE = _IECreate()
_IENavigate($oIE, "https://yourwebsite.com")

Func go()

  $oIE.document.parentwindow.scrollTo(5000, 0)
  sleep(5000)
  $oIE.document.parentwindow.scrollTo(0, 0)
  MsgBox($MB_SYSTEMMODAL, "", "done ")

EndFunc

while 1

   sleep(500)
WEnd

 

 

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...