Patent ID: 8564545

Claim:
A method for controlling an application program, adapted to an electronic device having a touch screen, the method comprising: configuring the touch screen with a predetermined touch area; detecting from the predetermined area at least one touch area on the touch screen, and after the at least one touch area has been detected; obtaining a plurality of touch points contained within each of the touch areas; determining a typical coordinate value according to a coordinate value of each of the touch points, wherein each of the coordinate values comprises an x-axis coordinate value and a y-axis coordinate value, and the step of determining the typical coordinate value comprises: respectively defining a weight value of each of the x-axis coordinate values and a weight value of each of the y-axis coordinate values and obtaining a pressure value of each of the touch points; determining the weight value of each of the x-axis coordinate values and the weight value of each of the y-axis coordinate values of each of the touch points according to the corresponding pressure value; calculating an x-axis coordinate weighted average value by scaling each of the x-axis coordinate values with the corresponding weight value; calculating a y-axis coordinate weighted average value by scaling each of the y-axis coordinate values with the corresponding weight value; and taking the x-axis coordinate weighted average value and the y-axis coordinate weighted average value as the typical coordinate value; and controlling the application program to execute a corresponding function according to the typical coordinate value.