I'm trying to do a virtual click and in order to do that you need to give the keybd_event()
a byte value in order to tell it what to do. So I have this function that takes in a passed string ( It's just a letter from A-Z ) and converts it to a byte. But when I run the program I get this error Conversion from type 'Byte()' to type 'Byte' is not valid
Here is the function:
Private Function getByteValue(ByVal letter As String)
Dim byt = System.Text.Encoding.Unicode.GetBytes(letter)
Return byt
End Function
I don't know why the error is occurring, and also I'm not sure its even returning a byte value, but rather how many bytes the letter converts to, and I need a byte bvk value?