Results 1 to 2 of 2

Thread: SetWindowLong with other app's windows

  1. #1

    Thread Starter
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Question

    I want to set some kind of a hook to another app's window to capture all WM messages, so I tried SetWindowLong but it didn't work.
    I called it with the window's handle but it always returned zero...
    Razzle
    ICQ#: 31429438
    What is the difference between a raven?
    -The legs. The length is equal, especially the right one.

  2. #2
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    You can't do this in VB alone. You need to put a SetWindowsHookEx in a C++ DLL. A VB DLL won't do, because it is ... <ahem> ... just different.

    You can hook all mouse and keyboard movements/presses in VB, but not capture all WM messages.

    To find more about SetWindowsHookEx, I have kindly provided a link here
    Courgettes.

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