Hey,
I can't figure out how you would use the vk's to get a common short cut, like ctrl+v. The virtual key for control is just VK_CONTROL, but letters don't have vk's. Should I be doing this a different way?
Thanks
This is a discussion on Using Windows Virtual Keys within the Windows Programming forums, part of the Platform Specific Boards category; Hey, I can't figure out how you would use the vk's to get a common short cut, like ctrl+v. The ...
Hey,
I can't figure out how you would use the vk's to get a common short cut, like ctrl+v. The virtual key for control is just VK_CONTROL, but letters don't have vk's. Should I be doing this a different way?
Thanks
If you take something apart and put it back together enough times, you will eventually have enough parts left over to build a second one.
It just so happens that the virtual key codes for 0 - 9 and A - Z correspond to their ASCII codes.
0 --> '0' = 0x30
1 --> '1' = 0x31
...
A --> 'A' = 0x41
B --> 'B' = 0x42
...
If for example it's an edit control, it's window procedure will recieve messages like WM_PASTE, WM_CUT, WM_UNDO. There are also keyboard accelerators which are like 'shortcuts' http://msdn2.microsoft.com/en-us/library/ms645526.aspx
╔╗╔╦══╦╗╔╦══╦╗
║╚╝║╔╗║╚╝║╔╗║║
║╔╗║╠╣║╔╗║╠╣╠╣
╚╝╚╩╝╚╩╝╚╩╝╚╩╝
codez http://code.google.com/p/zxcvbn/
Thanks, your very helpful you know that.
If you take something apart and put it back together enough times, you will eventually have enough parts left over to build a second one.