How to press virtual hangup key

  • Thread starter Thread starter Jogi
  • Start date Start date
J

Jogi

hi there,

i try press the hangup key in my application, to hangup outgoing calls.
Can anyone tell my whats wrong with my code:

private const byte VK_HANGUP = 0x73;

private const uint KEYEVENTF_EXTENDEDKEY = 0x0001;

[DllImport("Coredll.dll")]
public static extern void keybd_event(byte bVk, byte bScan, uint
dwFlags, uint dwExtraInfo);

keybd_event(VK_HANGUP, 0, KEYEVENTF_EXTENDEDKEY, null);

The code runs without errors, but also without success. Need help ...
please

Regards
Jogi
 
Are you letting the key up when you're done? All I see there is you
pressing the key...

Paul T.
 
Back
Top