Windows Mobile automatically receives incoming calls

Source: Internet
Author: User

Windows Mobile automatically receives incoming calls. when implementing this function, I did not find related interface functions (it is estimated that Microsoft will not give us such an excuse function ). So we found a solution to the problem of Automatic answer, which is to simulate the mobile phone to press the listen key. In this way, the automatic call answering function can be realized.

Simulate the call key:

Keybd_event (vk_f3, 0, 0, 0 );
Keybd_event (vk_f3, 0, keyeventf_keyup, 0 );

 

When ourProgramCall the above two functions when listening for a call, so that you can automatically answer the call. But then, before using the above two functions, you should first :: sleep (180); 180 is the smallest. After I tested 150, I cannot answer the call.

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.