Miscellaneous > Programming

multiple keys in one key stroke

(1/1)

LittleKaneda:
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)?

0746:
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.

Navigation

[0] Message Index

Go to full version