Jump to content
Sign in to follow this  
thetwistedpanda

Manipulate scroll bars in IE?

Recommended Posts

thetwistedpanda

Is it possible to open an embedded window and have it center to a particular object on a website, such as a java applet? Either by means of stripping the page down of everything else, minus the applet code, or perhaps manipulating the scroll bars a certain distance without using the mouse? Or any other method that would work, really.

Here is the original website: http://wild.fiends.com/DCourt/Game.stm

And what I'm trying to get autoit to do for me is attached.

post-13536-1180230121_thumb.jpg

Edited by thetwistedpanda

Share this post


Link to post
Share on other sites
thetwistedpanda

Scratch that; I managed to figure it out... But in case anyone else comes across this problem:

$oIE.document.body.scrollLeft = #

$oIE.document.body.scrollTop = #

Share this post


Link to post
Share on other sites
big_daddy

I think this would be a better solution.

#include <GUIConstants.au3>
#include <IE.au3>

$sURL = "http://wild.fiends.com/DCourt/Game.stm"

_IEErrorHandlerRegister()
$oIE = _IECreateEmbedded()
GUICreate("Embedded Web control Test", 460, 350, Default, Default, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 440, 330)
GUISetState()

_IENavigate($oIE, $sURL)
$oApplet = _IETagNameGetCollection($oIE, "applet", 0)
$oApplet.scrollIntoView ()
$oIE.document.body.scroll = "no"

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd

GUIDelete()

Exit

Share this post


Link to post
Share on other sites
thetwistedpanda

Wow... This is actually exactly what I was going for. Thanks a million!

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  

×