Jump to content

Manipulate scroll bars in IE?


Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...