thetwistedpanda Posted May 27, 2007 Share Posted May 27, 2007 (edited) 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.stmAnd what I'm trying to get autoit to do for me is attached. Edited May 27, 2007 by thetwistedpanda Link to comment Share on other sites More sharing options...
thetwistedpanda Posted May 27, 2007 Author Share Posted May 27, 2007 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 = # Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted May 27, 2007 Moderators Share Posted May 27, 2007 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 More sharing options...
thetwistedpanda Posted May 27, 2007 Author Share Posted May 27, 2007 Wow... This is actually exactly what I was going for. Thanks a million! Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted May 27, 2007 Moderators Share Posted May 27, 2007 Your welcome! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now