I am using PostMessage API to send text to a certain program.
I've got my program to work when I useBut I need to send a string that will be defined at runtime, so I need a way to do something likeVB Code:
PostMessage hWnd1, WM_KEYDOWN, vbKeyA, 0but that code doesn't work.VB Code:
PostMessage hWnd1, WM_KEYDOWN, "something", 0
I need to send a long value of each letter so I need to know how to convert a letter to its vbKey equivalent




Reply With Quote