Results 1 to 7 of 7

Thread: Scrolling in a WebBrowser

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    10

    Angry

    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

  2. #2
    Guest
    Code:
    Webbrowser1.SetFocus
    SendKeys "{PGDN}"
    Dunno if that'll work, but give it a try.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    10

    Thumbs up Thanks

    Not exactly what I wanted!
    Not the middle of the page!

    But that code is good too!

    Thanks!

    AbsoluteB

  4. #4
    Guest
    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 .

    Code:
    Sendkeys "{DOWN}"
    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.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    10

    Exclamation 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

  6. #6
    Guest
    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' ;].

  7. #7

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    10

    Thumbs up 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
  •  



Click Here to Expand Forum to Full Width