Welcome!

Miscellaneous => Programming => Topic started by: LittleKaneda on August 19, 2008, 02:34:40 AM

Title: multiple keys in one key stroke
Post by: LittleKaneda on August 19, 2008, 02:34:40 AM
This may or may not have to do with programming but I need to make it so when I press a key on my keyboard, it will throw out something involving multiple keys. Example: pressing F4 would carry out the command "Ctrl+F4"

Can I do this through Windows(xp)?
Title: Re: multiple keys in one key stroke
Post by: 0746 on August 22, 2008, 05:48:59 AM
Make a keyboard hook and when f4 is pressed use keybd_event to post ctrl+f4 key/keyup messages.

edit: ps. It wont work if they're reading keys through DirectInput thou. You'll need driver level hack if you want that.