Summary of the invention
In view of this, the present invention provides a kind of method, Apparatus and system of simulated operation touch-screen, and its concrete scheme is described below:
A kind of method of simulated operation touch-screen comprises:
The various action types of simulated operation touch-screen are unified into a kind of combination of operational motion instruction, and the syntagmatic of setting up this operational motion instruction and action type in advance;
According to said syntagmatic, be combined into and said action type instruction corresponding;
Export said operational order, to carry out corresponding operation.
Preferably, said unified operational order comprises:
Coordinate instruction, said coordinate instruction are used in reference to and are shown in that certain is a bit depressed on the touch-screen.
Preferably, said action type comprises:
Said action type is included in single-point touches and/or multiple point touching.
Preferably, the said syntagmatic of said foundation, the process that is combined into said action type instruction corresponding comprises:
Confirm the various corresponding coordinates of operation trace that stay on the touch-screen that operate in;
Generate the corresponding coordinate instruction of coordinate on the said operation trace successively;
The coordinate instruction that the said operation trace that generates successively is corresponding is combined into the elementary instruction sequence according to genesis sequence;
Said one-tenth elementary instruction sequence is confirmed as and said operation instruction corresponding.
Preferably, the said process that generates the coordinate instruction on the said operation trace successively comprises:
One or more tracks that the calculating operation action is pushed on screen;
Confirm the time point set at interval according to certain hour, on every track, obtain the coordinate figure of each time point respectively;
Generate successively with said operation trace on the corresponding coordinate of coordinate figure instruct.
Preferably, said process with the output of said and action type instruction corresponding comprises:
Convert said operational order into the macro operation instruction corresponding with it;
Export the said macro operation corresponding instruction with operational order.
A kind of device of simulated operation touch-screen comprises:
Syntagmatic is confirmed the unit, is used for the various action types of simulated operation touch-screen are unified into a kind of combination of operational motion instruction, and the syntagmatic of setting up this operational motion instruction and action type in advance;
The operational order assembled unit is used for being combined into and said action type instruction corresponding according to said syntagmatic;
The operational order output unit is used to export said operational order, to carry out corresponding operation.
Preferably, said operational order assembled unit comprises:
Coordinate figure is confirmed the unit, is used for confirming the various corresponding coordinates of operation trace that stay on the touch-screen that operate in;
Coordinate instruction generation unit is used for generating successively the corresponding coordinate instruction of coordinate on the said operation trace;
Assembled unit is used for the coordinate instruction that the said operation trace that generates successively is corresponding and is combined into the elementary instruction sequence according to genesis sequence;
Confirm the unit, be used for said one-tenth elementary instruction sequence is confirmed as and said operation instruction corresponding.
A kind of system of simulated operation touch-screen comprises: the device of simulated operation touch-screen, simulate action agent apparatus and touch screen operation treating apparatus, wherein:
The device of said simulated operation touch-screen is used for; The various action types of simulated operation touch-screen are unified into a kind of combination of operational motion instruction; And the syntagmatic of setting up this operational motion instruction and action type in advance, according to said syntagmatic, be combined into and said action type instruction corresponding; Export said operational order, to carry out corresponding operation;
Said simulate action agent apparatus is used for, and receives the operational order that the device of said simulated operation touch-screen sends, and is converted into touch-screen and can discerns form, and the operational order that sends after the said conversion is given said touch screen operation treating apparatus;
Said touch screen operation treating apparatus is used for, and receives the operational order after the said conversion, and carries out corresponding operation.
Can find out from above-mentioned technical scheme; The method of the disclosed simulated operation touch-screen of the embodiment of the invention; Adopt and set elementary instruction; Elementary instruction is combined into the mode of corresponding operational order according to action type, has simplified the implementation procedure of simulated operation touch-screen, and had high generality.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The invention discloses a kind of method of simulated operation touch-screen, its embodiment is described below:
Fig. 1 is the process flow diagram of the method for the disclosed a kind of simulated operation touch-screen of the embodiment of the invention, comprising:
Step S11, the various action types of simulated operation touch-screen are unified into a kind of combination of operational motion instruction, and the syntagmatic of setting up this operational motion instruction and action type in advance;
The basic operation instruction comprises: coordinate instructs said coordinate instruction to be used to obtain the current coordinate figure of depressing the pairing point of instruction.Said action type be included in single-point touches and/or and multi-point touch panel, particular type can comprise: click, double-click, drag and slide in any one.
If current action type is for clicking; Then its corresponding syntagmatic does, in the instruction of certain any coordinate, if double-click; Then its corresponding syntagmatic is in certain any two groups of coordinates instructions; If drag, then its corresponding syntagmatic is being for to drag between starting point and end point, the combination of a plurality of corresponding many groups coordinate instruction of choosing according to preset rules.
Step S12, the said syntagmatic of foundation are combined into and said action type instruction corresponding;
In like manner, if double-click, then instruction sequence is formed in two groups of coordinate instructions, as double-clicking instruction corresponding.
Step S13, export said operational order, to carry out corresponding operation.
Transmit operation instruction makes the calling program take over party go out to click in same point twice simulated operation according to instruction simulation.For just receiving the equipment of stylus state and coordinate from touch-screen originally; Only need convert operational order the inner form of touch panel device to and issue corresponding handling procedure and get final product; And directly be exactly the equipment of grand action such as to click, double-click, slide and drag for what receive from touch-screen; Need convert operational order into the macro operation instruction corresponding, export the said macro operation corresponding and instruct to corresponding handling procedure with operational order with it.
The method of the disclosed simulated operation touch-screen of the embodiment of the invention adopt to be set elementary instruction, and elementary instruction is combined into the mode of corresponding operational order according to action type, has simplified the implementation procedure of simulated operation touch-screen, and has had high generality.
The method of the disclosed another simulated operation touch-screen of the embodiment of the invention is as shown in Figure 2, comprising:
Step S21, the various action types of simulated operation touch-screen are unified into a kind of combination of operational motion instruction, and the syntagmatic of setting up this operational motion instruction and action type in advance;
Action type in the present embodiment is a drag operation.
Step S22, confirm the various corresponding coordinates of the operation trace that stays on the touch-screen that operate in;
Definite quilt drags the coordinate figure that the corresponding coordinate points of track of object, this value is used to generate the coordinate instruction of correspondence position.
Step S23, the corresponding coordinate of coordinate that generates on the said operation trace successively instruct;
Step S24, the coordinate instruction that the said operation trace that generates successively is corresponding are combined into the elementary instruction sequence according to genesis sequence;
Generation is corresponding to the coordinate instruction of each coordinate points.Formerly promptly according to the corresponding coordinate instruction of starting point, the corresponding coordinate instruction of end point after order make up, obtain the elementary instruction sequence.
Step S25, said one-tenth elementary instruction sequence is confirmed as and said operation instruction corresponding;
Even this elementary instruction sequence is corresponding to the operational order of drag operation.
Step S26, convert said operational order into the macro operation corresponding instruction with it;
Step S27, the said macro operation corresponding instruction of output with operational order.
Output again after in the present embodiment operational order that generates being handled is to adapt to the needs of varying environment.
A kind of method that generates the drag operation instruction is disclosed in the present embodiment; According to the characteristics of drag operation instruction, confirm the track that drags of drag operation, the coordinate points that drags in the track is generated the coordinate instruction successively and is combined into instruction sequence in order; Instruction sequence is confirmed as drag operation type instruction corresponding; Easy being easy to of this method realized, simplified the instruction generative process, improved work efficiency.
Further, the flow process that generates the coordinate instruction on the said operation trace in the foregoing description successively is as shown in Figure 3, comprising:
One or more tracks that step S31, calculating operation action are pushed on screen;
A plurality of tracks are represented multiple point touching.
Step S32, confirm the time point set at interval, on every track, obtain the coordinate figure of each time point respectively according to certain hour;
The coordinate points of same a plurality of tracks of time is placed in the order, distinguishes with different positions, before whole operation finished, this position was monopolized by this track.
Step S33, successively generate with said operation trace on the corresponding coordinate of coordinate figure instruct.
The present invention discloses a kind of device of simulated operation touch-screen, its structure is as shown in Figure 5, comprising: syntagmatic is confirmed unit 41, operational order assembled unit 42 and operational order output unit 43.
Syntagmatic confirms that unit 41 is used for the various action types of simulated operation touch-screen are unified into a kind of combination of operational motion instruction, and the syntagmatic of setting up this operational motion instruction and action type in advance; Operational order assembled unit 42 is used for being combined into and said action type instruction corresponding according to said syntagmatic; Operational order output unit 43 is used to export said operational order, to carry out corresponding operation.
Wherein, the structure of said operational order assembled unit 42 is as shown in Figure 5, comprising:
Coordinate figure is confirmed unit 51, is used for confirming the various corresponding coordinates of operation trace that stay on the touch-screen that operate in;
Coordinate instruction generation unit 52 is used for generating successively the corresponding coordinate instruction of coordinate on the said operation trace;
Assembled unit 53 is used for the coordinate instruction that the said operation trace that generates successively is corresponding and is combined into the elementary instruction sequence according to genesis sequence;
Confirm unit 54, be used for said one-tenth elementary instruction sequence is confirmed as and said operation instruction corresponding.
Further, the invention discloses a kind of system of simulated operation touch-screen, its structure is as shown in Figure 6, comprising: the device 61 of simulated operation touch-screen, simulate action agent apparatus 62 and touch screen operation treating apparatus 63, wherein:
The device 61 of said simulated operation touch-screen is used for; The various action types of simulated operation touch-screen are unified into a kind of combination of operational motion instruction; And the syntagmatic of setting up this operational motion instruction and action type in advance, according to said syntagmatic, be combined into and said action type instruction corresponding; Export said operational order, to carry out corresponding operation;
Said simulate action agent apparatus 62 is used for, and receives the operational order that the device of said simulated operation touch-screen sends, and is converted into touch-screen and can discerns form, and the operational order that sends after the said conversion is given said touch screen operation treating apparatus;
Said touch screen operation treating apparatus 63 is used for, and receives the operational order after the said conversion, and carries out corresponding operation.
Wherein, the device 61 of simulated operation touch-screen can be arranged on the touch-screen to be detected with simulate action agent apparatus 62, outside the touch-screen perhaps to be detected, but links to each other with touch-screen to be detected.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part is partly explained referring to method and is got final product.
The professional can also further recognize; The unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein; Can realize with electronic hardware, computer software or the combination of the two; For the interchangeability of hardware and software clearly is described, the composition and the step of each example described prevailingly according to function in above-mentioned explanation.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can be directly with the software modules of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.