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