is there any built in function to find the virtual key code of each character. I know about http://msdn.microsoft.com/library/default.asp?url=/library/en-us/w98ddk/hh/w98ddk/keycnt_4fqw.asp but I need my program to send differnt keys each time and I don't want to make a big case statemnt.