|
-
Feb 17th, 2001, 09:31 AM
#1
Thread Starter
New Member
How in the world do you make a Hook that will intercept pressed keys system wide to run a few commands before they are sent to the active application?
-
Feb 17th, 2001, 10:04 AM
#2
Junior Member
You require a Dll thats written in C to make the hook procedure accessible to all threads, which mean placing the hook procedure in a DLL© I'm also looking for a DLL that i can use cause i dont know C©
-
Feb 17th, 2001, 12:49 PM
#3
Thread Starter
New Member
ok well I took your advice and got me a dll off a program at PSC that might work. thx
-
Feb 18th, 2001, 12:42 AM
#4
Junior Member
If you find a working dll, do you mind sending it to me© Thanks
-
Feb 19th, 2001, 05:16 AM
#5
visit http://forums.vb-world.net/showthrea...threadid=55173 It contains complete code in visual basic to capture keys.
If you are just interested in detecting something like ctrl-x or whatever, read up on the GetAsyncKeyState function. Despite the win32 documentation on it, it actually works globally, not just while your app has focus. [edited to fix link ]
Last edited by Lord Orwell; Feb 19th, 2001 at 05:22 AM.
-
Feb 19th, 2001, 10:01 PM
#6
Junior Member
Yes, it work gobally© If you need to constanly check for which key is pressed, do you use a timer or is there a more efficient and accurate way to do it
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
|