|
-
Feb 17th, 2001, 10:15 AM
#1
Thread Starter
Junior Member
Set objIE = New InternetExplorer
objIE©navigate "mail©yahoo©com"
objIE©Visible = True
lthreadID = GetWindowThreadProcessId¥objIE©hwnd, 0&¤
hHook = SetWindowsHookEx¥WH_KEYBOARD, AddressOf KeyboardProc, 0&, lthreadID¤
This works for a form but it doesnt work for internetExplorer© Whats wrong with this??
Thanks
-
Feb 17th, 2001, 12:04 PM
#2
And because of this GetWindowThreadProcessId¥objIE©hwnd. I don't think the declaration has all of those characters in it.
-
Feb 18th, 2001, 01:05 AM
#3
Thread Starter
Junior Member
I try removing the copyright signs nut it still diesnt work© About GetWindowThreadProcessID, it second arugment is lpdwProcessId
Points to a 32-bit value that receives the process identifier© If this parameter is not NULL, GetWindowThreadProcessId copies the identifier of the process to the 32-bit value; otherwise, it does not©
I tried this but still doesnt work, Any ideas???
lret=GetWindowThreadProcessId ¥hwnd,lthreadID¤
hHook = SetWindowsHookEx¥WH_KEYBOARD, AddressOf KeyboardProc, 0&, lthreadID¤
-
Feb 19th, 2001, 06:58 AM
#4
-
Feb 19th, 2001, 07:45 AM
#5
Thread Starter
Junior Member
What do are you saying? i dont understand© My problem is that i cant hook to the the IE object even though i got the threadID of it©
-
Feb 20th, 2001, 12:53 PM
#6
New Member
HOOK to IE Thread
hi,
i dont think it is possible to hook to an internet explorer window or any window that does not belong to YOUR application. Visual Basic restricts that because of the apartment threading model that it follows. This however can be done by a C++ DLL file that subclasses the keyboard events and messages. Please correct me if i am wrong.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|