Click here to Skip to main content
15,920,687 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: file size... Pin
Dave Kreskowiak31-May-04 0:51
mveDave Kreskowiak31-May-04 0:51 
GeneralRe: file size... Pin
Night_Soul31-May-04 2:33
Night_Soul31-May-04 2:33 
GeneralRe: file size... Pin
Serge Lobko-Lobanovsky31-May-04 23:27
Serge Lobko-Lobanovsky31-May-04 23:27 
GeneralRe: file size... Pin
Anonymous7-Jun-04 2:08
Anonymous7-Jun-04 2:08 
GeneralDisable ESC key... Pin
cyberstrategist28-May-04 3:00
cyberstrategist28-May-04 3:00 
GeneralRe: Disable ESC key... Pin
Dave Kreskowiak28-May-04 3:15
mveDave Kreskowiak28-May-04 3:15 
GeneralRe: Disable ESC key... Pin
Night_Soul28-May-04 5:16
Night_Soul28-May-04 5:16 
GeneralRe: Disable ESC key... Pin
Dave Kreskowiak28-May-04 5:44
mveDave Kreskowiak28-May-04 5:44 
A keyboard hook is a function that you write and register with Windows using the SetWindowsHookEx API function. Basically, this function will be called every time the keyboard driver attempts to post a keyboard message to an input queue. You can see every keystroke message before it goes to an application. This function has a responsibility of passing along the data that the driver has given it to the next hook in the chain. (You can have multiple hooks attached, where each hook has to pass the data it receives to the next...)

The cool part is you can manipulate the message data before it's passed to the next hook. Or, if you need to disable certain keys, DON'T pass the data to the next hook. Just return nothing...

I've written hooks to disable the Windows Logo keys, eat certain keystrokes at certain times, and have even had a little fun, like 5 times a second, replace the WM_KEYDOWN message with a different key than was hit... Drives people nuts when they don't know you installed it! Big Grin | :-D



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Disable ESC key... Pin
Night_Soul30-May-04 20:45
Night_Soul30-May-04 20:45 
GeneralGetObject Issues Pin
Carlos Mariano28-May-04 1:32
Carlos Mariano28-May-04 1:32 
GeneralRe: GetObject Issues Pin
Dave Kreskowiak28-May-04 3:11
mveDave Kreskowiak28-May-04 3:11 
GeneralRe: GetObject Issues Pin
Carlos Mariano2-Jun-04 23:12
Carlos Mariano2-Jun-04 23:12 
GeneralRe: GetObject Issues Pin
Dave Kreskowiak3-Jun-04 1:24
mveDave Kreskowiak3-Jun-04 1:24 
GeneralRe: GetObject Issues Pin
Carlos Mariano3-Jun-04 5:51
Carlos Mariano3-Jun-04 5:51 
GeneralRe: GetObject Issues Pin
Dave Kreskowiak3-Jun-04 12:13
mveDave Kreskowiak3-Jun-04 12:13 
GeneralGetting Email Address Pin
Member 112651927-May-04 16:44
Member 112651927-May-04 16:44 
GeneralRe: Getting Email Address Pin
Dave Kreskowiak28-May-04 2:53
mveDave Kreskowiak28-May-04 2:53 
GeneralSimple Syntax Question Pin
eggie527-May-04 13:28
eggie527-May-04 13:28 
GeneralRe: Simple Syntax Question Pin
Aaron Eldreth27-May-04 14:49
Aaron Eldreth27-May-04 14:49 
GeneralRe: Simple Syntax Question Pin
Anonymous27-May-04 14:51
Anonymous27-May-04 14:51 
GeneralVarPtr Function Pin
Pugman81227-May-04 12:29
Pugman81227-May-04 12:29 
GeneralRe: VarPtr Function Pin
Dave Kreskowiak28-May-04 2:37
mveDave Kreskowiak28-May-04 2:37 
GeneralData type conversion help needed when Using a VC++ dll with VB.NET Pin
Freddie Code27-May-04 12:23
Freddie Code27-May-04 12:23 
GeneralInVisble specify Column in ListView Ctrl Pin
skoizumi2911027-May-04 11:57
sussskoizumi2911027-May-04 11:57 
GeneralRe: InVisble specify Column in ListView Ctrl Pin
Dave Kreskowiak28-May-04 2:11
mveDave Kreskowiak28-May-04 2:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.