Hooked Focus
How to program a single Focus event for every object. Added code that randomly sets the focus to a different control.
About this post
Posted: 2017-07-26
By: BlackBeltVB
Viewed: 383 times
Categories
Attachments
HOOKFOCS.ZIP
Posted: 7/26/2017 11:18:42 AM
Size: 3,351 bytes
Requirements
This code originally appeared on BlackBeltVB.com, and has been republished here with the permission of Matt Hart.
Special Instructions
Uses the following API functions and messages:
- CallNextHookEx
- CopyMemory (RtlMoveMemory)
- LockWindowUpdate
- SetFocus
- SetWindowsHookEx
- UnhookWindowsHookEx
- WM_KILLFOCUS
- WM_SETFOCUS
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.