Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534

    scroll help needed

    i want to make it scroll up when it is at the bottom end of the page and scroll down when it is at the top end of the page

    GLOBAL FUNCTIONS :
    Code:
    --global variables
    GW_CHILD = 5;
    
    SB_LINEUP        = 0
    SB_LINELEFT      = 0
    SB_LINEDOWN      = 1
    SB_LINERIGHT     = 1
    SB_PAGEUP        = 2
    SB_PAGELEFT      = 2
    SB_PAGEDOWN      = 3
    SB_PAGERIGHT     = 3
    SB_THUMBPOSITION = 4
    SB_THUMBTRACK    = 5
    SB_TOP           = 6
    SB_LEFT          = 6
    SB_BOTTOM        = 7
    SB_RIGHT         = 7
    SB_ENDSCROLL     = 8
    
    WM_HSCROLL          = 276
    WM_VSCROLL          = 277
    
    
    
    function ScrollWeb(sWebObject, nDirection, nScroll)
    	--get the handle of the web object
    	tblWebProp = Web.GetProperties(sWebObject)
    
    	--get the child window
    	hwndChild = DLL.CallFunction(_SystemFolder.."\\User32.dll", "GetWindow", tblWebProp.WindowHandle..","..GW_CHILD, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
    	HWnd = DLL.CallFunction(_SystemFolder.."\\User32.dll", "ChildWindowFromPoint", hwndChild..",1,1", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
    
    
    	--send the message to scroll
    	n = DLL.CallFunction(_SystemFolder.."\\User32.dll", "SendMessageA", HWnd..","..nDirection..","..nScroll..",0", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL)
    end

    PAGE ON SHOW :
    Code:
    Page.StartTimer(String.ToNumber(Input.GetText("Input1")))
    PAGE ON TIMER : (SCROLLS DOWN)
    Code:
    Page.StopTimer()
    nSpeed=String.ToNumber(Input.GetText("Input1"))
    ScrollWeb("Web1", WM_VSCROLL, SB_LINEDOWN)
    Page.StartTimer(nSpeed)
    Last edited by jackdaniels; 03-24-2008 at 01:03 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    i need help to make it scrool up when at the bottom and scroll down when at the top automoticly...

  3. #3
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    do i need timer plugin for that or can i use it without it?

Similar Threads

  1. Setting scroll bar?
    By kmusk01 in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 08-24-2007, 08:35 AM
  2. Internet Scroll Button
    By Lookinghawk in forum AutoPlay Media Studio 6.0
    Replies: 9
    Last Post: 12-13-2005, 10:50 PM
  3. Scroll Bars
    By markstaylor in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 05-09-2005, 05:52 AM
  4. Browser Object's Scroll bar
    By baddavid in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 05-13-2004, 09:21 AM
  5. Listbox Horizontal Scroll Problem
    By kpsmith in forum AutoPlay Media Studio 5.0
    Replies: 12
    Last Post: 02-11-2004, 09:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts