Sign in to follow this  
Followers 0
chappy

Detecting IE Scrollbars

4 posts in this topic

I'm trying to use the mouse to activate the down scrollbar on several dynamic webpages. On occasion they open with the addition of the bottom scrollbar -- which messes up the placement of the mouseclick event for the down scrollbar.

Is there a way to detect if the bottom scrollbar is present ??

thanks

Share this post


Link to post
Share on other sites



Hi!

A dirty way would lead over the PixelGetColor() function.

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites

I'm trying to use the mouse to activate the down scrollbar on several dynamic webpages. On occasion they open with the addition of the bottom scrollbar -- which messes up the placement of the mouseclick event for the down scrollbar.

Is there a way to detect if the bottom scrollbar is present ??

thanks

rather than using the scroll bar, you could use arrow keys...

Send("{DOWN}"); to scroll down as if you'd clicked the down arrow on the scrollbar once...

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

You can also do this with COM... you then don't have to worry about the sctual scroll bars

Using IE.au3,

#include <IE.au3>

$scroll = 250; pixels
;;; Note: $oIE.document.body.clientHeight gives a number close to the scroll increment, 
;;; but it goes a little too far... I can't find anything that gives the exectly correct value

$oIE = _IEAttach("your-browser-title")
$oIE.document.parentwindow.scrollBy(0, $scroll)

Dale

I'm trying to use the mouse to activate the down scrollbar on several dynamic webpages. On occasion they open with the addition of the bottom scrollbar -- which messes up the placement of the mouseclick event for the down scrollbar.

Is there a way to detect if the bottom scrollbar is present ??

thanks


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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