C
Christopher Pragash
Hello All,
I'm trying to trigger an "Alpha" key press and am attempting to use the
Keybd_Event.
Here is P/Invoke Decleration
<DllImport("Coredll.dll", EntryPoint:="Keybd_Event", SetLastError:=True)> _
Private Shared Sub Keybd_Event(ByVal bVk As Byte, ByVal bScan As Byte, ByVal
dwFlags As Long, ByVal dwExtraInfo As Long)
End Sub
My calling signation is as follows
Call Keybd_Event(VK_ALPHA, 0, 0, 0)
Call Keybd_Event(VK_ALPHA, 0, KEYEVENTF_KEYUP, 0)
I keep getting a "NotSupportedException" when I try to call Keybd_Event. Any
thoughts or suggestions would be really helpful.
Thanks,
Chris
I'm trying to trigger an "Alpha" key press and am attempting to use the
Keybd_Event.
Here is P/Invoke Decleration
<DllImport("Coredll.dll", EntryPoint:="Keybd_Event", SetLastError:=True)> _
Private Shared Sub Keybd_Event(ByVal bVk As Byte, ByVal bScan As Byte, ByVal
dwFlags As Long, ByVal dwExtraInfo As Long)
End Sub
My calling signation is as follows
Call Keybd_Event(VK_ALPHA, 0, 0, 0)
Call Keybd_Event(VK_ALPHA, 0, KEYEVENTF_KEYUP, 0)
I keep getting a "NotSupportedException" when I try to call Keybd_Event. Any
thoughts or suggestions would be really helpful.
Thanks,
Chris