Sign in to follow this  
Followers 0
lsakizada

Scroling down _IECreateEmbedded

3 posts in this topic

#1 ·  Posted (edited)

I created embedded IE object in the GUI but now I want it automatically scroll down to the bottom of the page

How to make it scroll down?

The following code does not do the work.

Local $oIE = _IECreateEmbedded()
GUICtrlCreateObj($oIE, 20, 160, 755, 340)
_IENavigate($oIE, "file:///C:/Automation/tmp/RunTimeDefault.html")
$oIE.document.body.scrollbottom ="yes"
Edited by lsakizada

Be Green Now or Never (BGNN)!

Share this post


Link to post
Share on other sites



This will scroll to the bottom of the document:

$oIE.document.parentwindow.scrollTo(0,$oIE.document.body.scrollHeight);

Share this post


Link to post
Share on other sites
@Danp2

Very nice!!! :thumbsup:  You make me happy today! its works smooth in my code!

Have a good one!


Be Green Now or Never (BGNN)!

Share this post


Link to post
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
Sign in to follow this  
Followers 0