Jump to content

how can i change ascii code of my keyboard using a c++ program????

- - - - -

  • Please log in to reply
1 reply to this topic

#1
ryathegr8

ryathegr8

    Newbie

  • Members
  • Pip
  • 1 posts
i want to write a code in C++ in which when i Press a key...it displays the letter which i have set in my code for dat key.....it means a program that changes the ascii code of a keyboard.....tell me the logic how can i do that??????

#2
Momerath

Momerath

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 242 posts
You can't change the code that the keyboard sends (for most keyboards). You can, on the other hand, intercept the keypress and translate it into something else.

So the logic of it is:
Create a keypress handler.
Attach handler to keypress event

If you wanted more help, I'd ask in the C and C++ forum, as this is the C# forum.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users