Results 1 to 8 of 8

Thread: Scrolling issue

  1. #1

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Scrolling issue

    Hai friends,

    Code:
    SendMessage(hwnd,WM_VSCROLL ,3,0) ' 3 = SB_PAGEDOWN
    Problem is, all other windows are scrolling except firefox browser window

    y is that?

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Scrolling issue

    Are you sure you have the right Hwnd for Firefox?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Scrolling issue

    YAH koolsid i am sure

  4. #4
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Scrolling issue

    Ok let me download firefox... I use chrome and IE

    Give me 15 mins...
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  5. #5

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Scrolling issue

    Quote Originally Posted by koolsid View Post
    Ok let me download firefox... I use chrome and IE

    Give me 15 mins...
    Cool Tx. btw, Glad to hear a person in the universe surfing the web without even ff installed

  6. #6
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Scrolling issue

    Ok guess what... I tried it with IE,Chrome and FF.. it didn't work... this is the code that I am using... let me see if i am missing something...

    vb Code:
    1. Private Declare Function SendMessage Lib "user32" _
    2. Alias "SendMessageA" (ByVal hwnd As Long, ByVal _
    3. wMsg As Long, ByVal wParam As Integer, ByVal lParam As Any) As Long
    4.  
    5. Private Const WM_VSCROLL = &H115
    6.  
    7. Private Declare Function FindWindow Lib "user32" _
    8. Alias "FindWindowA" (ByVal lpClassName As String, _
    9. ByVal lpWindowName As String) As Long
    10.  
    11. Private Sub Command1_Click()
    12.     Dim Ret1 As Long, ret As Long
    13.     '~~> Finding exact Windows by window name
    14.     'Ret1 = FindWindow(vbNullString, "Welcome to Firefox - Mozilla Firefox")
    15.     Ret1 = FindWindow(vbNullString, "VBForums - Inbox - Windows Internet Explorer")
    16.     If Ret1 = 0 Then MsgBox "Couldn't find the window ...": Exit Sub
    17.     MsgBox Ret1
    18.     '~~> Sending the command
    19.     ret = SendMessage(Ret1, WM_VSCROLL, 3, ByVal CStr("0"))
    20. End Sub

    Cool Tx. btw, Glad to hear a person in the universe surfing the web without even ff installed
    My only answer to your question is a question.. Have you used Chrome?
    __________________
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  7. #7

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Scrolling issue

    Cool Tx. btw, Glad to hear a person in the universe surfing the web without even ff installed
    i tried chrome in ealy few days. i saw it has only few buttons and i give up that
    btw, i have installed tons of addons in ff. so i think still chrome has not much addons

  8. #8
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Scrolling issue

    Ok Fazi, I checked with Spy ++ and realised that FFox(class: MozillaUIWindowClass), IE(class: IEFrame) or Chrome (Class: Chrome_RenderWidgetHostHWND) do not support WM_VSCROLL as Notepad (class: Edit) does...

    And this could be the reason that FF, IE or Chrome do not respond to WM_VSCROLL.... I could be wrong here

    Edit: I found this webpage... Sounds promising but the code is in Visual C/C++
    Last edited by Siddharth Rout; Mar 29th, 2009 at 04:37 AM.
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

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