: : Trouble understanding what you mean :
: : Q 2. You mean you need to type such characters from your keyboard ?
: : A 2. you could use the numeric keypad to enter such characters. eg. press ALT+0,6,5 in Note pad and you will see a capital 'A' being printed
: : Q 1. you want the proper character to be displayed instead of "?" ?
: : A 1. you would need to use the proper font for that. for example, "?" is ASCII code decimal 19, which in the Terminal font looks like this: " (a double exclamation point - "!!")
: : (you may not see the symbol if html does not display it correctly!)
: okay il try this question...
: i want a standard letter such as "%" to be replaced with "?" in the keyboard (memory) so it can be typed as if this strange letter actualy was on my keyboard
: this letter is not typeable using alt+val$ thingy
: i can use called functions on DLL files if you can point me to the right ones
: or if a program that can replace keyboard keys like this allready exist please tell me
I'll try again...
When you press a key on the keyboard, what is sent to the machine is a "scan code", it basically says that, for example, "the fourth key on the first full row was pressed down", now on most keyboards that will have the digit "3" on it, /but not necessarily/, different countries use different keyboard layouts. This is converted by the system to a "virtual keycode".
Now, this key press gets translated to a Windows message, (WM_KEYDOWN), and your program receives that message, and in almost all cases calls a routine called TranslateMessage() which, using the OS settings you have in your Settings->Keyboard preferences, converts the virtual keycode to a real character, in the example I gave above, the character "3". This is now dispatched to your programs message processing loop, and it will receive a WM_CHAR message, indicating that the character "3" has been entered.
WHat I suggested in my first message was, when you receive the WM_CHAR that says, inyour case "%" was pressed, you ignore the "%" and instead perform whatever you want to insert the ||, (I can't draw the square).
NOTE no .dll calls, no nothing, just that. Easy. Why do you want to call a .dll?
Med venlig hilsen,