How to send out Keys Enumeration character

I have a file and it is composed of all keys enumeration member names, such as "OemSemicolon", "Oemplus", "LMENU". The file recorded all my keyboard events. Now I want to read the file and ouput to the other (use SendKeys class) for reading purpose. For example, I want the string "OemSemicolon" which appears in original file shows ";" in other file, or it would be inconvinient for me. However, I cannot find any translation method. Because the values of Key Enum members are not completely the same as ASCII code. If I want the other file shows ";", I need to use SendKeys(";"), it is illegal to use SendKeys("{OemSemicolon}"). If I deal with those characters individually, the job would be very tedious. Is there any good suggestions Any opinions would be helpful. Thanks a lot.



Answer this question

How to send out Keys Enumeration character

  • How to send out Keys Enumeration character