Hi,
I'd like to simulate a keypress on the phonecall key of a smartphone.
I've found the keycode of this key which is 114.
So i use keybd_event method, but there is always a "notSupportdExeption"
could you please explain me why...
Here is my code :
------------------------------------------------------------------------
Declare Sub keybd_event Lib "user32" Alias "keybd_event" (ByVal **k As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Public Shared Sub Decrocher()
keybd_event(114, 0, 0, 0)
keybd_event(114, 0, 2, 0)
End Sub
-----------------------------------------------------------------------------
Thanks in advance
I'd like to simulate a keypress on the phonecall key of a smartphone.
I've found the keycode of this key which is 114.
So i use keybd_event method, but there is always a "notSupportdExeption"
could you please explain me why...
Here is my code :
------------------------------------------------------------------------
Declare Sub keybd_event Lib "user32" Alias "keybd_event" (ByVal **k As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Public Shared Sub Decrocher()
keybd_event(114, 0, 0, 0)
keybd_event(114, 0, 2, 0)
End Sub
-----------------------------------------------------------------------------
Thanks in advance