-
Hi,
it's me again ;)
Can someone help me with this problem:
I made a webbrowser and wanted to use the
SCROLL
function,
so that it automatically scrolls to the middle of
the Page, displayed!
But it doesn't work!!
Can someone send me a code how to do this?
CU
AbsoluteB
-
Code:
Webbrowser1.SetFocus
SendKeys "{PGDN}"
Dunno if that'll work, but give it a try.
-
Thanks
Not exactly what I wanted!
Not the middle of the page!
But that code is good too!
Thanks!
AbsoluteB
-
You could always use this code and keep putting it for when you hit the middle of the page. Not sure if it'll work, but you could give it another try :).
And you can even do this for how many times you want it pressed:
Code:
Sendkeys "{DOWN 100}"
This will press the down arrow key 100 times.
-
Selecting the Browser
Hi again!
Thanks!
The code only works, if i manually click on the browser first!
The SetFocus does not work ;((
Cu
AbsoluteB
-
Won't work, aye? Let the Dr. have a look ;].....
Well..you know what you forgot to do? Setfocus to it..works fine for me.
Code:
Webbrowser1.SetFocus
Sendkeys "{DOWN}"
And that should be it. *hands AbsoluteB the formula.* Take one of these and call me in the mornin' ;].
-
Got the problem
Hi I tried the code on two webpages!
On one it worked on the other it didn't!
Don't know why! But that's not a problem
Thank you very much
AbsoluteB