|
-
Jul 13th, 2000, 01:22 PM
#1
Thread Starter
New Member
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
-
Jul 13th, 2000, 01:33 PM
#2
Code:
Webbrowser1.SetFocus
SendKeys "{PGDN}"
Dunno if that'll work, but give it a try.
-
Jul 13th, 2000, 01:49 PM
#3
Thread Starter
New Member
Thanks
Not exactly what I wanted!
Not the middle of the page!
But that code is good too!
Thanks!
AbsoluteB
-
Jul 13th, 2000, 03:21 PM
#4
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.
-
Jul 13th, 2000, 11:48 PM
#5
Thread Starter
New Member
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
-
Jul 14th, 2000, 12:29 AM
#6
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' ;].
-
Jul 14th, 2000, 01:16 PM
#7
Thread Starter
New Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|