Results 1 to 5 of 5

Thread: Making IE scroll down

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    74

    Question Making IE scroll down

    I want to scroll down an Internet Explorer window without using SendKeys.
    How could I do that?

    regards
    alexvb

  2. #2
    Member
    Join Date
    Aug 2002
    Location
    Indianapolis In, lookin for a Good Woman !~
    Posts
    48

    Doing it with Javascript

    http://www.thecomputeracademy.com

    view the source on the left frame, you will see the javascript info how to do this.

    there are 2 different methods to calculate teh height,
    1) for IE...
    1) for Netscape

    but basically the code is :
         if (ScrollTo>height){
         scrollBy(0,ScrollTo-(height/2));
         }

  3. #3
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Smile

    If you need to send a person to a webpage, and have them look at a specific part of the page, you can always use the A NAME tag. (in case you didn't know about that)
    ~Peter


  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Posts
    74
    Thx, but i've now managed it in my VB program using SendMessage API.
    VB Code:
    1. Private Const WM_KEYDOWN = &H100
    2. Private Const WM_KEYUP = &H101
    3. Private Const VK_DOWN = &H28
    4.  
    5. ...
    6.  
    7. Call SendMessage(hwnd, WM_KEYDOWN, VK_DOWN , ByVal 0&)
    8. Call SendMessage(hwnd, WM_KEYUP, VK_DOWN, ByVal 0&)

    regards
    alexvb
    Last edited by alexvb; Aug 9th, 2002 at 09:10 AM.

  5. #5
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    You could send a WM_VSCROLL message instead:

    VB Code:
    1. Call SendMessage(hwnd, WM_VSCROLL, SB_PAGEDOWN, ByVal 0&)
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

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