help with SetWindowsHookEx -
SetWindowsHookEx seems like a very powerful function, but I'm having a really hard time finding thorough documentation on it. AllAPI only includes the constant for keyboard hooks. The MSDN help has the constants listed (WH_MOUSE, WH_KEYBOARD, etc) but it doesn't give the values. I have a program called
Mouse Wiggle that wiggles your mouse around. I want to be able to use the mouse hook to add some more features. Thanks.
oh yeah. If you guys download mouse wiggle, could you run it for a little while and tell me if the mouse has a tendency to stray in a direction on your computers? I think the decimal rounding is causing the mouse to stray.
question about setwindowshookex() -
Now I know setwindowshookex allows you to inject code within another process memory. But I noticed that when the process that called setwindowshookex is terminated, the dll that was injected is unloaded from the target process. Why is this? Is this just how the api works?
[2005] SetWindowsHookEx on external program -
Hello! How would I use SetWindowsHookEx on an external program to monitor windows messages? I've tried various code I've found using SetWindowsHookEx (ie: keyboard hooks, etc), and none of it works.
What do I do?
SetWindowsHookEx -
Can any body tell me how to use the API SetWindowsHookEx With WH_CALLWNDPROC option in VB. I want to trap keys used for any application.
SetWindowsHookEx in Windows 98 -
I try to use SetWindowsHookEx in VB 6 and it´s not work.
My OS is windows 98. What´s the problem?
Thanks;
Jorge Luiz
If 'SetWindowsHookEx' is easy to use, then i'm not! -
Hello World,
I'm looking for the meaning life. If you can't help about it, don't worry then, just tell me how the SetWindowsHookEx works. I'll do the rest..
Thanks In Advance.
P.S. Public Declare Function SetWindowsHookEx Lib "user32" Alias "SetWindowsHookEx
SetWindowsHookEx Problems -
I am trying to include an intellisense type feature in my app.
To trap the Tab Key presses and provide a list box with individually formatted items I have found it necessary to use SetWindowsHookEx twice within the App. Once with WH_KEYBOARD and once with WH_CALLWNDPROC.
These bo
Keyboard hook In WINDOWS (SetWindowsHookEx) -
Please help! My programm must know all key press in all
Windows process. My sample with API function "SetWindowsHookEx" is not work. I don't know why.
Thanks regards
SetWindowsHook Danger -
If you knew how to use the SetWindowsHookEx function, couldn't you disable every window from receiving the WM_CLOSE message?
i.e.
SetWindowsHookEx WH_CALLWNDPROC, AddressOf WindowProc
Then just not process the WM_CLOSE message....
Just a thought....
SetWindowsHookEx for receiving user messages (WM_USER) -
I want to hook into the winproc of my form to retrieve WM_USER messages.
I think I need to use SetWindowsHookEx, but all examples only show solutions for hooking into keyboard and mouse messages.
KeyBoard Hook -
I'm trying to capture keyboard keys using SetWindowsHookEx API call. I want to trap certain alphabets of the keyboard and want to type another alphabet in that place.
e.g. if the user presses M key, it should type K and so on.
I think I've not been able to handle hInstance ThreadID
VB.NET SetWindowsHookEx -
Does anyone know where i can find some good examples using SetWindowsHookEx? Preferably with the WH_GETMESSAGE hook? The few VB.NET code examples I find either have bugs in them or are utilizing some other hook. I have tried everything to try to set me a successful hook to an applicat
EVENTMSG structure in JournalProc of SetWindowsHookEx -
I am having a problem with the EVENTMSG structure of the JournalProc. I set a JournalRecord Hook and the SetwindowsHookEx was succesful the Callback function is being called regularly but i am unable to interpret the EVENTMSG structure. i Declared the EVENTMSG structure based on the MS
help with SetWindowsHookEx -
SetWindowsHookEx seems like a very powerful function, but I'm having a really hard time finding thorough documentation on it. AllAPI only includes the constant for keyboard hooks. The MSDN help has the constants listed (WH_MOUSE, WH_KEYBOARD, etc) but it doesn't give the values. I
Keyloging and so on... -
Doesnt exist any other way to hook keystrokes than to install global windows hook (SetWindowsHookEx) e.g some class embedding api_s?
hooking another app messages -
Hi
I wrote a dll (in C++) that includes a hook function, in order to catch the messges of other application,
What is the syntax of using this dll file from vb ? (i want to use it together with SetWindowsHookEx api function with the flag WH_CALLWNDPROC.
Thanks
Adding Password To Folders -
Hello World,
Is there a way to password-protect your folders with some api calls or sth. else? Can we use SetWindowsHookEx? With which params?
Thanks in advance..
Function Notification -
Hello All,
I want to receive a notification, or a given function to be revoked, when a certain func. in a
certain lib. is called. I suppose, I should use SetWindowsHookEx, but how?
Thanks in advance.
using setwindowshookex with vb 2005 express edition -
Hi there im having problems hooking into an external programs windows events (in this example i would like to hook into microsoft calculators) using the setwindowshookex method. However it keeps returning 0, i.e. not creating the hook. can someone please tell me where im going wrong
Low-Level Hook -
What am I doing incorrectly? ANY pointers will be very beneficial..
Private Sub cmdHook_Click()
hook = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf myfunc, App.hInstance, 0)
End Sub
Private Sub cmdUnhook_Click()
UnhookWindowsHookEx hook
End Sub
Disable shift+esc and other key-combos -
Ok, I've got the windows key disabled (using SetWindowsHookEx and UnhookWindowsHookEx) which works fine, but... it's still possible to press Ctrl+Esc, and other apps (e.g. ATI Catalyst Control Center) will pop-up on certain key-presses.
So... any ideas how to disable these types of
Hooks, Addins and other Bothersome Stuff -
Right,
I'm writing an Addin for the IDE. It needs a hook to the Project Window TreeView. I managed that, but it doesn't seem to like hooking across processes (i.e. it works fine in debug (while running in the IDE), but crashes when I build it).
MSDN says for SetWindowsHookEx:
Hooking IDE TreeView -
I'm trying to hook the VB6 IDE project treeview. I can get it working with a WH_CALLWNDPROC SetWindowsHookEx call, but only in'debug' i.e. I haven't made a C dll for it.
So, I was trying to use the WH_JOURNALRECORD hook, as per other threads in these forums, to avoid the C dll, but
Clipboard hook -
Anyone know how to i might be able hook the clipboard, if it's possible with VB?
I've tried hooking the message queue (WH_CALLWNDPROC) with SetWindowsHookEx, but no luck.
i'm writing something along the lines of a clipboard monitor - keeps the copied/cut stuff until u delete it or
How to hook WriteFile API of Kernel32.dll -
Hi all!
I want to hook WriteFile API Function of Kernel32.dll to monitor writeing files (to log).
How can I do this?! Can I use SetWindowsHookEx? How?!
Thans a lot
Cross Process Hooking Problems -
I spent ages trying to figure out how to hook the IDE project treeview. I managed it, but it only works in debug. When I build my app and run it, hooking kills the IDE.
I suspect the problem is in my SetWindowsHookEx call, but I can't figure out what I'm doing wrong.
Anyone who k
hook problem -
Using Chris's code for the keyboard hook, in the function SetWindowsHookEx I change the thread parameter to 0 so that it will hook all other threads. But when I ran it with other programs it seems that it is not hooking the other program's keyboard inputs.
Is there something wrong?
A
Using SetWindowsHookEx from a DLL -
I need to create a keyhook dll for an app that I made with VB to replace certain keystrokes.
Can anyone explain to me how I can do this?
I know there are sample applications at msdn.micrsoft.com but I never got them working.
I need two functions for export:
InstallHook and Rem
Keyboard strokes -
I am using setWindowsHookEx function to get the keyboard strokes but i could mange to hook only 2 strokes at a time how can i check keystrokes like <shift>+T+P or <shift>+<cntrl>+P
Any links or tutorials will also do.
Hooking The IDE Project TreeView -
I'm trying to hook the VB6 IDE project treeview. I can get it working with a WH_CALLWNDPROC SetWindowsHookEx call, but only in'debug' i.e. I haven't made a C dll for it.
So, I was trying to use the WH_JOURNALRECORD hook, as per other threads in these forums, to avoid the C dll, but
Problems in Hooks -
Hello everybody....
I am trying to set a global CBTProc Hook..
I've written a Hook procedure and set it with the help of SetWindowsHookEX API function...
This Hook procedure calls, it means hook is set successfully.. but i can't figure out why it is giving illegal operation message
Intercept WM_PAINT in remote process... -
Is it possible to intercept the WM_PAINT message passed to an external process' window(s)?? I can't seem to catch it - I can get most other messages (using a SetWindowsHookEx call) but the WM_PAINT message eludes me....??
I need help with Journal hooks -
Hello,
I am tryying to get JournalRecord and JournalPlayback to work on my vista laptop but am finding that my Proc is not even being called.
I am not having any problem with my GetMessage hook but only with the Journal hook.
I have attached the relevant code.
Any help is greatly
Diable keyboard and mouse -
Hi, guys....I am new here and need some help.
I am trying to create a program that will disable the keyboard and mouse and then enable them back.
My program will run under windows 95, so the API BlockInput will not work. And, my program should be able to disable the keyboard and mous
Disable Right Click XP, ESC+Ctrl on XP -
I have this rotune that works fine on w2k and w98, but when i try to use it in XP does not work.
Also, how do i diseble the ESC+CTRL and the Windows Bottons to call the Star Menu in XP.
CODE
Public Const WH_MOUSE As Long = 7
'API Declarations
Public Declare Function SetWin
Hook Procedure for Keyboard & Mouse -
I am developing a Visual C (6.0) DLL, (pure C without MFC) to be called by a Visual Basic main program for keyboard and mouse activities tracking to generate random number.
Can I use SetWindowsHookEx to achieve this?
Is there any complete source samples for this case?
Anyone can h
For API Gurus!! System-Wide hooking!! -
How do I create a System-Wide hook? SetWindowsHookEx will only let me create it locally (By locally I mean not system wide). I think i need a DLL for this but can someone give me an example? it can be in C or C++ or VB or whatever language.
Thanks for reading!
Windows Hook for Selected Text -
Morning (arvo, night) All,
What would the appropriate Hook be to return the highlited/selected text of any window?
Ie. I want to return any highlited text (word(s)) from any application; beit IE, Word, PowerPoint, Visio etc.
Currently looking at the SetWindowsHookEx function.
Hook the PC Speaker Beep -
Is there a way to use SetWindowsHookEx to hook the PC speaker beep? I need a way to redirect the speaker beep to the sound card so that the sound volume can be adjusted.
how to close XL Password Dialog and proceed -
Hello,
I was seeking a vb6 solution, but I cannot find one. I am now looking for an API solution.
My vb6 app opens XL files, if it is password protected, I want to automatically Cancel or Close the Password dialog box, and go on to the next file. There is no built-in XL Dialog en
API -- Operating System Dependancy -
Hi,
In my VB project I am using "SetWindowsHookEx" and "UnhookWindowsHookEx" for maintaining the session. It is workign fine in Windows XP.
Please let me know is that API working fine in All the Operating Systems ( Windows 95,Windows 98,Windo