Author Topic: multiple keys in one key stroke  (Read 3490 times)

Offline LittleKaneda

  • Jr. Member
  • **
  • Posts: 55
  • Karma: +1/-0
multiple keys in one key stroke
« 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)?

Offline 0746

  • Expert
  • *****
  • Posts: 108
  • Karma: +2/-0
Re: multiple keys in one key stroke
« Reply #1 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.
« Last Edit: August 22, 2008, 05:51:40 am by 0746 »