How is it possible to catch incoming call end key event WM5?
Hi~
try to use the following code:
public class DropCall
{
#region private field
private const int VK_F4 = 0x73;
private const int KEYEVENTF_KEYUP = 0x0002;
#endregion
#region public fiield
/// <summary>
/// simulate the keyboard event
/// </summary>
public static void Drop()
{
MyRef.keybd_event(VK_F4, 0, 0, 0);
MyRef.keybd_event(VK_F4, 0, KEYEVENTF_KEYUP, 0);
}
#endregion
}
#region Invoke Class
public static class MyRef
{
//invoke keybd_event API
[DllImport("coredll.dll")]
public static extern void keybd_event(
byte bVk,
byte bScan,
int dwFlags,
int dwExtraInfo);
}
#endregion
to detect the incoming call and the callNumber, please refer to
SystemProperty.PhoneIncomingCallerNumber and
SystemProperty.PhoneIncomingCall
hope this helps