O
Oguzhan Filizlibay
Hi all,
I have the below code for sending each character in a string as a Keys.x
enumeration. I've found that when I convert the char, it does not match the
enumeration item index and thereby generates a very random output. Any ideas
on how I can convert chars to their right equivalent in the Keys
enumeration.
thanks,
as an example:
Dim strCaseID As String = "s"
For Each c As Char In strCaseID
Dim key As UInteger = Convert.ToInt16(c)
DoKeyBoard(0, key)
DoKeyBoard(NativeMethods.KEYEVENTF.KEYUP, key)
Next
in this example s is somehow translated into 115 and this translates to
Keys.F4, which actually should be an 83 to be indicated right..
I have the below code for sending each character in a string as a Keys.x
enumeration. I've found that when I convert the char, it does not match the
enumeration item index and thereby generates a very random output. Any ideas
on how I can convert chars to their right equivalent in the Keys
enumeration.
thanks,
as an example:
Dim strCaseID As String = "s"
For Each c As Char In strCaseID
Dim key As UInteger = Convert.ToInt16(c)
DoKeyBoard(0, key)
DoKeyBoard(NativeMethods.KEYEVENTF.KEYUP, key)
Next
in this example s is somehow translated into 115 and this translates to
Keys.F4, which actually should be an 83 to be indicated right..