How to press virtual hangup key


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
 
Ad

Advertisements

P

Paul G. Tobey [eMVP]

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

Paul T.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top