Hai friends,
Problem is, all other windows are scrolling except firefox browser window :confused:Code:SendMessage(hwnd,WM_VSCROLL ,3,0) ' 3 = SB_PAGEDOWN
y is that?
Printable View
Hai friends,
Problem is, all other windows are scrolling except firefox browser window :confused:Code:SendMessage(hwnd,WM_VSCROLL ,3,0) ' 3 = SB_PAGEDOWN
y is that?
Are you sure you have the right Hwnd for Firefox?
YAH koolsid i am sure :)
Ok let me download firefox... I use chrome and IE ;)
Give me 15 mins...
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:
Private Declare Function SendMessage Lib "user32" _ Alias "SendMessageA" (ByVal hwnd As Long, ByVal _ wMsg As Long, ByVal wParam As Integer, ByVal lParam As Any) As Long Private Const WM_VSCROLL = &H115 Private Declare Function FindWindow Lib "user32" _ Alias "FindWindowA" (ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long Private Sub Command1_Click() Dim Ret1 As Long, ret As Long '~~> Finding exact Windows by window name 'Ret1 = FindWindow(vbNullString, "Welcome to Firefox - Mozilla Firefox") Ret1 = FindWindow(vbNullString, "VBForums - Inbox - Windows Internet Explorer") If Ret1 = 0 Then MsgBox "Couldn't find the window ...": Exit Sub MsgBox Ret1 '~~> Sending the command ret = SendMessage(Ret1, WM_VSCROLL, 3, ByVal CStr("0")) End Sub
My only answer to your question is a question.. Have you used Chrome?Quote:
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 :DQuote:
Cool Tx. btw, Glad to hear a person in the universe surfing the web without even ff installed
btw, i have installed tons of addons in ff. so i think still chrome has not much addons :(
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++