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.