Method for controlling application program, electronic device thereof, and storage medium thereof
First Claim
1. 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.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for controlling an application program, an electronic device thereof, and a recording medium thereof are provided. In the present method, when detecting at least one touch area on a touch screen of the electronic device, all touch points contained within each of the touch areas are obtained. Then, a unique typical coordinate value is determined according to a coordinate value of each of the touch points. Finally, an application program is controlled to execute a function relative to the typical coordinate value. Hence, the application program is controlled to execute the corresponding function by detecting the user operation on the touch screen so as to improve a convenience of operating the electronic device.
18 Citations
42 Claims
-
1. 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. An electronic device, comprising:
-
a touch screen, configured with a predetermined at least one touch area, detecting the predetermined at least one touch area of the touch screen, and after the predetermined at least one touch area has been detected, obtaining a plurality of touch points contained within each of the touch areas; a typical coordinate value determination module, coupled to the touch screen for 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 according to a predetermined weight profile for each of the x-axis and y-axis coordinate values, the typical coordinate value determination module respectively defines a weight value of each of the x-axis coordinate values and a weight value of each of the y-axis coordinate values, and calculates an x-axis coordinate weighted average value according to by scaling each of the x-axis coordinate value with the corresponding predetermined weight value, and a y-axis coordinate weighted average value by scaling each of the y-axis coordinate values with the corresponding predetermined weight value, and the x-axis coordinate weighted average value and the y-axis coordinate weighted average value are taken as the typical coordinate value; and a processing module, coupled to the typical coordinate value determination module for controlling an application program to execute a corresponding function according to the typical coordinate value, and the typical coordinate value determination module obtains a pressure value of each of the touch points, and defines the weight value of the x-axis coordinate value and the weight value of the y-axis coordinate value of each of the touch points according to the corresponding pressure value. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. An electronic device, comprising:
-
a touch screen, configured with a predetermined at least one touch area, detecting the predetermined at least one touch area of the touch screen, and after the predetermined at least one touch area has been detected, obtaining a plurality of touch points contained within each of the touch areas; and a processing module, coupled to the touch screen for determining a typical coordinate value according to a coordinate value of each of the touch points, and controlling an application program to execute a corresponding function according to the typical coordinate value, wherein each of the coordinate values comprises an x-axis coordinate value and a y-axis coordinate value, the processing module respectively defines a weight value of each of the x-axis coordinate values and a weight value of each of the y-axis coordinate values according to a predetermined weight profile for each of the x-axis and y-axis coordinate values, and calculates an x-axis coordinate weighted average value according to by scaling each of the x-axis coordinate values with the corresponding predetermined weight value, and a y-axis coordinate weighted average value by scaling each of the y-axis coordinate values with the corresponding predetermined weight value, and the x-axis coordinate weighted average value and the y-axis coordinate weighted average value are taken as the typical coordinate value, and the processing module also obtains a pressure value of each of the touch points, and defines the weight value of the x-axis coordinate value and the weight value of the y-axis coordinate value of each of the touch points according to the corresponding pressure value. - View Dependent Claims (21, 22, 23, 24, 25, 26, 27, 28, 29)
-
-
30. A non-transitory storage medium, for storing a computer program, wherein the computer program includes a plurality of program codes that can be loaded into an electronic device to execute a method for controlling an application program, and the method comprises:
-
configuring the touch screen with a predetermined touch area; detecting from the predetermined area at least one touch area on a touch screen of the electronic device, 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; and controlling an application program to execute a corresponding function according to the typical coordinate value, 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 defining a weight value of each of the x-axis coordinate values and a weight value of each of the y-axis coordinate values respectively according to a predetermined weight profile for each of the x-axis and y-axis coordinate values by obtaining a pressure value of each of the touch points and 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 predetermined weight value;
calculating a y-axis coordinate weighted average value by scaling each of the y-axis coordinate values with the corresponding predetermined weight value; and
taking the x-axis coordinate weighted average value and the y-axis coordinate weighted average value as the typical coordinate value,wherein the application program comprises a SIP application program used for displaying a SIP comprising a plurality of keys on the touch screen, and the step of controlling the application program to execute the corresponding function according to the typical coordinate value comprises transmitting the typical coordinate value to the SIP application program, and the SIP application program determining a selected key from the keys according to the typical coordinate value. - View Dependent Claims (31, 32, 33, 34, 35, 36)
-
-
37. A method for controlling a SIP application program used for displaying a SIP comprising a plurality of keys on a touch screen of an electronic device, 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; transmitting the typical coordinate value to the SIP application program; and the SIP application program determining a selected key from the keys by obtaining a keyboard display area of the SIP, calculating a key display area of each of the keys according to the keyboard display area and a key size predetermined value of each of the keys, obtaining the key display area containing the typical coordinate value, and taking the key corresponding to the obtained key display area as the selected key, and wherein 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 according to a predetermined weight profile for each of the x-axis and y-axis coordinate values by obtaining a pressure value of each of the touch points and 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 wherein any of the x-axis coordinate values or any of the y-axis coordinate values just covers the key display areas in the SIP is defined by a higher weight value than those cover no key display areas, then 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. - View Dependent Claims (38, 39, 40, 41, 42)
-
Specification