Click here to Skip to main content
15,905,566 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi every one
I'm really sorry if my question is quite simple
what I'm trying to reach is keycode.
that is in the code below:
C#
foreach (System.Int32 i in Enum.GetValues(typeof(Keys)))
     { 
        
         int x = KeyLogger.Methods.GetAsyncKeyState(i);


and then if any key is pressed i want to use MapVirtualKey to map and after all getkeynametext
to access to it's name.
what i'm trying to accessed is the keycode which I access to it's Enumvalues to use it in the code bellow
C#
unit key=MapVirtualKey(m,MAPVK_VK_TO_VSC);


what i need here is M which is a virtualkeycode that i have it's enumvalues in i;

thank you all in advance for helping me.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900