The fifth edition of the mobile phone simulates the touch screen to perform silent calls.

Source: Internet
Author: User

The call detection operation is being performed recently. To enable the call to automatically become silent, the third edition simulates a right soft key. The function of the fifth edition on the Right soft key is to send text messages to the call, after checking some information, you need to simulate a touch screen operation and click the silent button,

 

Rwssession ws;
WS. Connect ();

Trawevent EV1;
Tpoint Pt (515,100 );
Ev1.set (trawevent: ebutton1down, Pt. IX, Pt. Iy );
WS. simulaterawevent (EV1); // capability Req. swevent
User: after( 100000 );
Trawevent ev2;
Ev2.set (trawevent: ebutton1up, Pt. IX, Pt. Iy );
WS. simulaterawevent (ev2); // capability Req. swevent

WS. Close ();

 

It should be noted that the coordinates of the message sending are determined according to the coordinate system of the horizontal screen, which is inconsistent with the vertical screen of the normal application.

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.