- #1
Tusike
- 139
- 0
Hi! I have a program I want to share with my friends, but they have hungarian computers, and I'm unable to detect some of the key presses. Can anyone provide a sample C++ or FreeBasic program that does the following:
1)Waits for me to press a key I see on my keyboard
2)Prints that key on my screen.
3)Returns to part 1), and does so until ESC is pressed.
That is all I'm asking. Even just showing me how to start would be great, although I'm not real good in C++. It's been driving me mad for a few hours now. I'm just unable to detect letters such as Á, Í, Ó, Ű, etc... Actually some of them do work using scan codes, but using what I have, the key for Í doesn't return any scan code. And some of the scan codes are different (e.g. for Ö it's 11 on my english keyboard, using alt-shift to change it to hungarian; and on a real hungarian keyboard it's 41). All I want is to see the key I pressed on my keyboard appear on the screen. Why is this so difficult? Even this forum can do it!
Sorry for the tone it's just that this is supposed to be fairly simple, and I've been trying for hours now.
Thanks for any help,
-Tusike
1)Waits for me to press a key I see on my keyboard
2)Prints that key on my screen.
3)Returns to part 1), and does so until ESC is pressed.
That is all I'm asking. Even just showing me how to start would be great, although I'm not real good in C++. It's been driving me mad for a few hours now. I'm just unable to detect letters such as Á, Í, Ó, Ű, etc... Actually some of them do work using scan codes, but using what I have, the key for Í doesn't return any scan code. And some of the scan codes are different (e.g. for Ö it's 11 on my english keyboard, using alt-shift to change it to hungarian; and on a real hungarian keyboard it's 41). All I want is to see the key I pressed on my keyboard appear on the screen. Why is this so difficult? Even this forum can do it!
Sorry for the tone it's just that this is supposed to be fairly simple, and I've been trying for hours now.
Thanks for any help,
-Tusike