CN109542303A - Touch control device and its response method, device - Google Patents

Touch control device and its response method, device Download PDF

Info

Publication number
CN109542303A
CN109542303A CN201811302864.3A CN201811302864A CN109542303A CN 109542303 A CN109542303 A CN 109542303A CN 201811302864 A CN201811302864 A CN 201811302864A CN 109542303 A CN109542303 A CN 109542303A
Authority
CN
China
Prior art keywords
information
touch
script
control device
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811302864.3A
Other languages
Chinese (zh)
Inventor
林行
王辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shell Technology Co Ltd
Original Assignee
Beijing Shell Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Shell Technology Co Ltd filed Critical Beijing Shell Technology Co Ltd
Priority to CN201811302864.3A priority Critical patent/CN109542303A/en
Publication of CN109542303A publication Critical patent/CN109542303A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of touch control device and its response methods, device.The described method includes: determining that target presets script according to the destination application run in the touch control device;Wherein, the target, which presets record in script, the characteristic information operated with the matched repeatability of the destination application;It calls the target to preset script, and the target is preset into the characteristic information in script and resolves to the identifiable touch information of the touch control device;Respond the touch information.According to the technical solution of the present invention, it can obtain manually performing the response effect above-mentioned repeatability operation with user on the basis of not needing manual operation.In this way, the time for not only saving manpower, reducing repeatability operation, and the response efficiency due to being not required to artificially execute above-mentioned repeatability operation thus improve repeatability operation.

Description

Touch control device and its response method, device
Technical field
The present invention relates to field of terminal technology, in particular to a kind of touch control device and its response method, device.
Background technique
Currently, with universal, more and more touch control devices of manufacturers' release with touch panel, with side of touch technology Just user executes touch control operation by touch panel, to promote the usage experience of user as much as possible.
Using touch control device, user can directly be operated the object in the types of applications program such as game, shopping, be obtained Intuitively, the operating experience of immersion.However, often there are some repeatability operations in these application programs, such as " registering ", " getting daily log in reward " etc., especially some on-hook class game, such repeatability operation are more.It is weighed for this kind of Renaturation manipulation requires to complete by manually performing in the related technology, not only increases the operating burden of user, wastes user A large amount of time and efforts, and since repeatability operation could be obtained after needing artificially to execute above-mentioned repeatability operation The corresponding response results response efficiency that thus above-mentioned repeatability operates is lower, and user experience is bad.
Summary of the invention
The present invention provides a kind of touch control device response method, comprising:
Determine that target presets script according to the destination application run in the touch control device;Wherein, the target is pre- If record has the characteristic information with the matched repeatability operation of the destination application in script;
It calls the target to preset script, and the characteristic information in the default script of the target is resolved into the touch-control and is set Standby identifiable touch information;
Respond the touch information.
In one embodiment, the response touch information, comprising:
Corresponding touch command is generated according to the touch information;
It controls the destination application and executes the touch command, to complete the repeatability operation.
In one embodiment, default analysis program is equipped on the touch control device and is created virtual input device, The virtual input device is connected with the operating system of the default analysis program and the touch control device respectively;
The characteristic information by the default script of the target resolves to the identifiable touch information of the touch control device, Include:
The characteristic information is parsed by the default analysis program, obtaining the virtual input device can recognize The touch information;
The response touch information, comprising:
The touch information is sent to the operating system by the virtual input device;
The operating system responds the touch information.
In one embodiment, the method also includes:
After receiving creation instruction, display virtual input device creates interface;
Interface is created by the virtual input device and receives configuration parameter, wherein the configuration parameter includes the void The resolution ratio of quasi- input equipment;
The virtual input device is created according to the configuration parameter.
In one embodiment, described to determine that target presets foot according to the destination application run in the touch control device This, includes at least one of the following:
When receive automated to respond to triggering command when, determine that the target presets script according to the destination application;
When monitoring to automated to respond to triggering gesture, determine that the target presets script according to the destination application;
When monitor current time reach it is default automated to respond to the triggered time when, institute is determined according to the destination application It states target and presets script;
When receiving power-on instruction, determine that the target presets script according to the destination application.
In one embodiment, determine that target presets script according to the destination application run in the touch control device, Include:
According to the corresponding relationship and the destination application of application program and script mark, the target application is determined The corresponding target script mark of program;
Determine that the target presets script according to target script mark.
In one embodiment, the characteristic information includes: touch-control of the repeatability operation in the touch control device Operation information on panel;And/or
The characteristic information includes: instruction information corresponding with the operation information, wherein the instruction information include with It is at least one of lower: keyword, picture, colouring information.
In one embodiment, described that the target is preset into foot when the characteristic information includes the instruction information Characteristic information in this resolves to the identifiable touch information of the touch control device, comprising:
The instruction information is identified, the corresponding operation information of the instruction information is obtained;
The operation information is parsed, the touch information is obtained.
The present invention also provides a kind of touch control device responding devices, comprising:
Determining module, for determining that target presets script according to the destination application run in the touch control device;Its In, the target, which presets record in script, the characteristic information operated with the matched repeatability of the destination application;
Processing module presets the characteristic information solution in script for calling the target to preset script, and by the target Analysis is the identifiable touch information of the touch control device;
Respond module, for responding the touch information.
In one embodiment, the respond module includes:
Submodule is generated, for generating corresponding touch command according to the touch information;
Control submodule executes the touch command for controlling the destination application, described repeatable to complete Property operation;
Being equipped with default analysis program on the touch control device and creating has virtual input device, the virtual input device It is connected respectively with the operating system of the default analysis program and the touch control device;
The processing module is used for:
The characteristic information is parsed by the default analysis program, obtaining the virtual input device can recognize The touch information;
The respond module is used for:
The touch information is sent to the operating system by the virtual input device, rings the operating system Answer the touch information;
Described device further include:
Display module, for after receiving creation instruction, display virtual input device to create interface;
Receiving module receives configuration parameter for creating interface by the virtual input device, wherein the configuration ginseng Number includes the resolution ratio of the virtual input device;
Creation module, for creating the virtual input device according to the configuration parameter.
In one embodiment, determining module includes at least one following submodule:
First determine submodule, for when receive automated to respond to triggering command when, it is true according to the destination application The fixed target presets script;
Second determines submodule, true according to the destination application for when monitoring to automated to respond to triggering gesture The fixed target presets script;
Third determines submodule, for when monitor current time reach it is default automated to respond to the triggered time when, according to institute It states destination application and determines that the target presets script;
4th determines submodule, for determining the mesh according to the destination application when receiving power-on instruction Mark default script.
In one embodiment, the determining module includes:
5th determines submodule, for the corresponding relationship and the target application journey according to application program and script mark Sequence determines the corresponding target script mark of the destination application;
6th determines submodule, for determining that the target presets script according to target script mark.
In one embodiment, the characteristic information includes: touch-control of the repeatability operation in the touch control device Operation information on panel;And/or
The characteristic information includes: instruction information corresponding with the operation information, wherein the instruction information include with It is at least one of lower: keyword, picture, colouring information;
The processing module includes:
Submodule is identified, for being known to the instruction information when the characteristic information includes the instruction information Not, the corresponding operation information of the instruction information is obtained;
Analyzing sub-module obtains the touch information for parsing the operation information.
It may include touch control device responding device described in any of the above item the present invention also provides a kind of touch control device.
The technical scheme provided by this disclosed embodiment can include the following benefits:
It determines that target presets script according to the destination application run in touch control device, foot is preset by invocation target This, presets the characteristic information in script to the target and automatically parses, and then obtains that this feature information is corresponding and the touch-control The identifiable touch information of equipment, namely the touch information with the matched repeatability operation of the destination application, then Touch control device automated tos respond to the touch information, that is, touch control device execute automatically it is above-mentioned repeatability operation, it can be achieved that On the basis of not needing manual operation, obtain manually performing the response effect above-mentioned repeatability operation with user.In this way, The time for not only saving manpower, reducing repeatability operation, and due to be not required to artificially to execute above-mentioned repeatability operation because And improve the response efficiency of repeatability operation.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of touch control device response method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another touch control device response method shown according to an exemplary embodiment.
Fig. 3 is the flow chart of another touch control device response method shown according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of touch control device responding device shown according to an exemplary embodiment.
Fig. 5 is the block diagram of another touch control device responding device shown according to an exemplary embodiment.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
In order to solve the above-mentioned technical problem, the embodiment of the present disclosure provides a kind of touch control device response method, and this method is suitable For in touch control device responder, system or device, can be used for that there are the touch control devices such as the mobile phone of touch panel, plate, such as Shown in Fig. 1, step S101 to step S103, in which:
In step s101, determine that target presets script according to the destination application run in touch control device;Wherein, mesh Marking record in default script has the characteristic information operated with the matched repeatability of destination application;Above-mentioned repeatability operation To need the operation executed in destination application.
Above-mentioned repeatability operation refer to needing repeating for touch panel (including continuous several times execute, and with The fixed or unfixed period is performed a plurality of times) operation.For example, " the label executed after logging in certain game application P1 daily To ", get register reward etc. operation, or in certain game application P2 adopting consecutive click chemical reaction " attack " key operation etc..
Above-mentioned destination application can be the application program for operating in foreground or backstage, such as can be and is currently transporting Capable application program, and/or, can be some/certain default application programs.
For example, if the application program being currently running have it is multiple or current without the application program being currently running, then:
In one embodiment, can determine a destination application by obtaining user instruction again, i.e., by with The destination application is specified in real time in family;
Alternatively, in another embodiment, according to the operation characteristics (time, place) of multiple application programs and can work as Preceding operation characteristic selects an application program as the target application journey from multiple application programs automatically and intelligently Sequence;
Alternatively, In yet another embodiment, it can be (i.e. above-mentioned pre- by user or the preset default application of system If application program) it is used as the destination application.
In step s 102, invocation target presets script, and target is preset the characteristic information in script and resolves to touch-control The identifiable touch information of equipment;
It, may be due to the language format and the identifiable language of touch control device of the script since script is usually customized Format not mutually same reason cause touch control device possibly can not Direct Recognition target preset characteristic information in script, because And need to parse characteristic information, to obtain the identifiable touch information of touch control device, so that it is guaranteed that after touch control device The script can be run, the beneficial effect for executing above-mentioned repeatability operation is simulated.
It can store on the touch control device, or be stored in other equipment secondly, the target presets script.
In step s 103, touch information is responded.
It determines that target presets script according to the destination application run in touch control device, foot is preset by invocation target This, presets the characteristic information in script to the target and automatically parses, and then obtains that this feature information is corresponding and the touch-control The identifiable touch information of equipment, namely the touch information with the matched repeatability operation of the destination application, then Touch control device automated tos respond to the touch information, that is, touch control device execute automatically it is above-mentioned repeatability operation, it can be achieved that On the basis of not needing manual operation, obtain manually performing the response effect above-mentioned repeatability operation with user.In this way, The time for not only saving manpower, reducing repeatability operation, and due to be not required to artificially to execute above-mentioned repeatability operation because And improve the response efficiency of repeatability operation.
User can also be facilitated to carry out circulate operation on touch control device in addition, presetting script by invocation target.
Finally, the script in the application supports the institute of Lua based on Lua language (a small and exquisite scripting language) There is characteristic of speech sounds and function.The application can also customize a series of distinctive function commands for application scenarios simultaneously, and realization is looked for The functions such as color, touch.
And the order in script includes: base command and custom command, in which:
Base command includes Row control order, loop command, variable command etc., uses Lua verbal order.Example Such as:
while(true)
do
Print (" circulation goes down eternal execution ")
end
Above-mentioned is a loop command, function are as follows: when condition is true (true), " circulation will for output (display) character string It executes forever ".
And custom command is to touch shell script to realize touch function, it is customized a series of on the basis of Lua Order.Such as: touch presses (touchDown), touches mobile (touchMove), screenshot (snapshot) etc..
Custom command example is specific as follows:
TouchDown (1,150,150) indicates that ID is that 1 finger is pressed at coordinate (150,150);
MSleep (200) indicates 200 milliseconds of delay;
TouchUp (1,150,150) indicates that ID is that 1 finger lifts.
The case of default script will be enumerated below:
Case one: it demonstrates startup program Px and registers the script for leading red packet to back to main interface
Start'com.Px'-- startup program Px
TouchDown (1,100,1000) -- switch to my tabs
TouchDown (1,300,1000) -- click is registered
Home-- returns to main interface
It should be noted that above-mentioned case is a kind of, " I the " coordinate of tabs in program Px home interface be (100, 1000), executed at this press down that " switching to " can be completed in order (touchDown) mine " tabs " and operation;" registering " Coordinate of the control in " I " interface is (300,1000), executes at this and presses down order (touchDown) " point can be completed Hit the operation of " registering ".
Case two: the script of game on-hook process is demonstrated
TouchDown (1,50,150) -- open article column
MSleep (200) -- 200 milliseconds of delay
TouchUp (1,150,150) -- it takes medicine
It should be noted that coordinate of " article column " control in interface is (50,150) in above-mentioned case two, Executed at this by issue orders (touchDown) operation of " open article column " can be completed;The seat of " medicine " in article column interface (150,150) are designated as, order (touchUp) is lifted in execution at this can be completed the operation of " taking medicine ".
In one embodiment, above-mentioned step S103 shown in FIG. 1, i.e. response touch information, can be performed as:
Corresponding touch command is generated according to touch information;
It controls destination application and executes touch command, to complete repeatability operation.
The present embodiment is applied, after control destination application executes touch command automatically, user hand can be equivalent to It is dynamic to execute above-mentioned repeatability operation, and obtain and identical response results are manually operated.
When responding touch information, corresponding touch command can be generated according to identifiable touch information, and then by touch-control Instruction is sent to destination application, so that destination application executes the touch command automatically, to be simulated using script User manually performs the effect of above-mentioned repeatability operation, and automatically obtains the response for executing and obtaining after above-mentioned repeatability operation As a result, in this way, the time for not only saving manpower, reducing repeatability operation, and due to being not required to artificially execute above-mentioned weigh Renaturation manipulation thus improves the response efficiency of repeatability operation.
For example, the touch information identified is the coordinate A for clicking the display interface of touch control device, then click coordinate A is generated Order, and by the order of click coordinate A be sent to belonging to the display interface apply B, and then application B execute click coordinate The order of A can be obtained using B and be equivalent to user and click the response results obtained after aforementioned click coordinate A manually.The response knot Fruit can be page jump or content of pages update etc..
In one embodiment, default analysis program is equipped on touch control device and is created virtual input device, virtually Input equipment is connected with the operating system of default analysis program and touch control device (communicates) respectively;
Android (Android) operating system or IOS operating system that the operating system can be open source are (by apple The Mobile operating system of company's exploitation);
Target is preset into the characteristic information in script and resolves to the identifiable touch information of touch control device, comprising:
Characteristic information is parsed by default analysis program, obtains the identifiable touch information of virtual input device.
Wherein, which can be located at the application layer on Android operation system upper layer, match with virtual input device It closes and uses.
And virtual input device can be registered in the kernel (i.e. linux system) of Android operation system, the virtual input Equipment and Android operation system can be synchronized logical by hid (HID Descriptor Tool, descriptor edit tool) agreement Letter.
In addition, above-mentioned resolving is in addition to the grammer, semanteme, language format that can be to characteristic information are parsed or are turned It is alternatively outer, it is also possible to coordinate conversion etc., and since virtual input device is equivalent to an imitation screen, thus, after parsing Touch information is coordinate after the touch information for the virtual input device, such as parsing for the virtual input device Coordinate.
It is converted into UINPUT order mouse is clicked corresponding characteristic information below (i.e. virtual input device can identify Order) for, illustrate the parsing result of above-mentioned default analysis program:
Based on above-mentioned virtual input device, response touch information described in step S103, comprising:
Touch information is sent to operating system by virtual input device;
Operating system responds touch information.
In the present embodiment, since virtual input device is equivalent to a virtual touch panel, so working as virtual input device When touch information is sent to operating system, operating system will be made to take for user on the entity touch panel of touch control device Above-mentioned repeatability operation has been manually performed, thus, operating system, which carries out, normally responds patrolling for repeatability operation Volume, specifically, operating system will respond the touch information, be equivalent to user to reach and perform above-mentioned repetitive operation manually Effect.
Since touch information is the identifiable touch information of virtual input device, and virtual input device is registered in Android behaviour Make on the kernel of system, thus, which is also the identifiable touch information of Android operation system, thus, Android operation System is after getting the touch information, so that it may touch information is responded in touch control device, it is manual to simulate user using script The effect of above-mentioned repeatability operation is executed, to automatically obtain the sound for executing and obtaining after above-mentioned repeatability operation using script Answer as a result, in this way, the time for not only saving manpower, reducing repeatability operation, and due to be not required to artificially to execute it is above-mentioned can Repetitive operation thus improves the response efficiency of repeatability operation.
As shown in Fig. 2, in one embodiment, to obtain above-mentioned virtual input device, the above method may also include step S201 to step S203, in which:
In step s 201, after receiving creation instruction, display virtual input device creates interface;
In step S202, interface is created by virtual input device and receives configuration parameter;
Wherein, configuration parameter includes the resolution ratio of virtual input device.
In step S203, virtual input device is created according to configuration parameter.
User will be takeed for virtual since operating system receives the above-mentioned touch information for virtual input device Above-mentioned repetitive operation is manually performed on input equipment, it is thus preferred that the resolution ratio and touch control device of virtual input device Entity touch panel resolution ratio it is identical, so take for user and manually performed above-mentioned repeatability on virtual input device Operation is just fully equivalent to take for user to have manually performed above-mentioned repetitive operation on the entity touch panel of touch control device.
Certainly, if the resolution ratio of the entity touch panel of the resolution ratio of virtual input device and touch control device is not identical, Then due to both can determine the corresponding relationship of resolution ratio, thus, it is converted by coordinate, also may make and " take for user virtual Above-mentioned repetitive operation has been manually performed on input equipment " it is equal to and " takes for user in the entity touch panel of touch control device On manually performed above-mentioned repetitive operation ".
In the present embodiment, above-mentioned virtual input device can be UInput Device;Correspondingly, creating the virtual input The process of equipment is as follows:
Open UInput Device;
UInput Device is set, equipment relevant parameter, such as configuration touch screen resolution ratio are configured;
Write device information;
Create Input Device;
Event (Event, that is, touch information) is sent to Input Device.
In one embodiment, determine that target presets script according to the destination application run in touch control device, including At least one of below:
When receive automated to respond to triggering command when, determine that target presets script according to destination application;
When monitoring to automated to respond to triggering gesture, determine that target presets script according to destination application;
When monitor current time reach it is default automated to respond to the triggered time when, determine that target is pre- according to destination application If script;
When receiving power-on instruction, determine that target presets script according to destination application.
In the present embodiment, start the opportunity personalizable for automated toing respond to and (starting to execute herein described method) setting, Including but not limited to above-mentioned several ways, wherein receive and automated to respond to triggering command, monitor to automated to respond to triggering gesture and Power-on instruction belongs to user and artificially triggers manually, and monitors current time and reach default and automated to respond to the triggered time and belong to automatically Triggering.
Secondly, it is above-mentioned automated to respond to triggering command can come from user to certain position on the touch panel of touch control device/ Click, the slide in certain region etc..
The above-mentioned triggering gesture personalizable that automated tos respond to is arranged and can also update, such as the gesture of input character " O ".
The above-mentioned default triggered time personalizable that automated tos respond to is set, while may also set up multiple.
In addition, the shortcuts such as suspension ball can be arranged, on the desktop of touch control device to facilitate user to pass through the quick side Quick start executes herein described method to formula at any time.
And when user chooses the target to preset script, touch control device is the instruction for receiving operational objective and presetting script.
As shown in figure 3, in one embodiment, the step S101 in above-mentioned Fig. 1, i.e., according to the mesh run in touch control device Mark application program determines that target presets script, may include step S301 and step S302:
In step S301, according to the corresponding relationship and destination application of application program and script mark, mesh is determined Mark the corresponding target script mark of application program;
In step s 302, it is identified according to target script and determines that target presets script.
In the present embodiment, it can be identified for the script setting script obtained in each application program, so that using journey Sequence and script mark establish above-mentioned corresponding relationship, and then utilize above-mentioned corresponding relationship and destination application, automatically determine this The target script of destination application identifies, and then, accurately determines the mesh that need to be called automatically according to target script mark Default script is marked, the error calls of script are avoided.
Above embodiments describe automatically determine the reality that target presets script based on the application program run in touch control device Apply mode.And in other embodiments, the repeatability wished to carry out can also be directly selected by user operates corresponding preset Script (such as can enter default script selection interface by above-mentioned shortcut), presets script as target to execute this Shen It please the method.
In one embodiment, characteristic information includes: repeatability operation on (entity) touch panel of touch control device Operation information.
Aforesaid operations information be action type (such as click, sliding) of the repeatability operation on above-mentioned touch panel, Operate coordinate, operation duration.
Certainly, if including multiple operations in above-mentioned repeatability operation, aforesaid operations information can also be multiple behaviour Work operating time interval, operation order, number of operations, operated object (such as application or control) name attribute letter Breath.
And/or
In one embodiment, characteristic information includes: instruction information corresponding with operation information, wherein instruction packet It includes at least one of following: keyword, picture, colouring information.
Above-mentioned instruction information includes but is not limited to above-mentioned several information, such as, it is also possible to sound etc..
In one embodiment, when characteristic information includes instruction information, target is preset to the characteristic information solution in script Analysis is the identifiable touch information of touch control device, comprising:
Instruction information is identified, the corresponding operation information of instruction information is obtained;
Operation information is parsed, touch information is obtained.
In default script described in the present embodiment, weighed for what the operation informations such as position of touch, touch-control time determined Can the operation information directly be written in corresponding default script in renaturation manipulation, corresponding to realize conducive to timing control mode The automatic execution of repeatability operation.
And repeatability operation uncertain for some operation informations, then it can be in corresponding default script according to upper It states instruction information and corresponding logic control condition is written, thus during this presets script operation, as long as meeting the logic Control condition can determine operation information in real time.By identifying to above-mentioned instruction information, that is, judge corresponding logic control Whether condition meets, and can get the corresponding operation information of instruction information, then automatically parses to operation information, with automatic Accurate touch information is obtained, consequently facilitating accurately simulating user using script manually performs above-mentioned repeatability operation Effect, and the response results for executing and obtaining after above-mentioned repeatability operation are obtained automatically and accurately.
Such as: can occur multiple " white squares " and " black box " simultaneously in " stepping on square " game, in application interface, use Family needs to click " black box " occurred in the application interface, and due to the time of black box appearance, position in different outposts Etc. being different, can not be set in advance, therefore can be by identifying the region the black in application interface (black) in real time, and will know Operation information corresponding instruction information of the information such as the position of other time and black region as click " black box " this operation, In this way, the colouring information of current interface can be looped to determine with the presence or absence of " black " information during this presets script operation (specifically can obtain the colouring information of current interface by parsing the script data of the application program), if it is present obtaining The coordinate information and action type information (clicking operation) for taking the corresponding display area of " black " information, as operation information, Then the operation information is further resolved into the identifiable touch information of operating system, i.e., using patrolling based on colouring information It collects control mode and simulates the effect for clicking black box manually in " stepping on square " application, realize the automatic function of looking for color, so that The game can be automatically operated.
Another example is: due to that can generate after receiving red packet, " you are received in the application programs such as certain instant messaging, shopping The prompt tone of red packet ", and the click on area for being somebody's turn to do " red packet " is relatively fixed, thus, the prompt tone of " you receive red packet " can be used as The corresponding instruction information of operation information of " red packet " this operation is clicked, so, during this presets script operation, it can follow Ring judges whether to receive " you receive red packet " this prompt tone, if received, will receive the time of the prompt tone as behaviour Make the time, and combine other relevant operation information (such as action type information), resolves to the identifiable coordinate of operating system and point Hit order, i.e., simulate the effect for clicking red packet manually using the logic control mode based on sound, realize rob automatically red packet, It accepts covert payment, does not need user and be noticed that whether to receive red packet in real time, also do not need user and manually perform the operation robbed/accepted covert payment.
In other feasible embodiments, can also by timing control and logic control combine in the way of it is pre- to design If script, the automatic execution to complex operations is realized.
Finally, those skilled in the art above-mentioned multiple embodiments can arbitrarily be freely combined, herein according to demand It repeats no more.
As shown in figure 4, the present invention also provides a kind of touch control device responding devices, comprising:
Determining module 401 is configured as determining that target presets script according to the destination application run in touch control device; Wherein, target, which presets record in script, the characteristic information operated with the matched repeatability of destination application;
Processing module 402 is configured as invocation target and presets script, and target is preset the parsing of the characteristic information in script For the identifiable touch information of touch control device;
Respond module 403, is configured to respond to touch information.
In one embodiment, respond module 403 may include:
Submodule is generated, is configured as generating corresponding touch command according to touch information;
Control submodule is configured as control destination application and executes touch command, to complete repeatability operation.
In one embodiment, default analysis program is equipped on above-mentioned touch control device and is created virtual input device, Virtual input device is connected with the operating system of default analysis program and touch control device respectively;
Above-mentioned processing module 402 is configured as:
Characteristic information is parsed by default analysis program, obtains the identifiable touch information of virtual input device;
Above-mentioned respond module 403 is configured as:
Touch information is sent to operating system by virtual input device, operating system is made to respond touch information;
In one embodiment, above-mentioned touch control device responding device further include:
Display module is configured as after receiving creation instruction, and display virtual input device creates interface;
Receiving module is configured as creating reception configuration parameter in interface by virtual input device, wherein configuration parameter packet Include the resolution ratio of virtual input device;
Creation module is configured as creating virtual input device according to configuration parameter.
In one embodiment, determining module 401 may include at least one following submodule:
First determine submodule, for when receive automated to respond to triggering command when, it is true according to the destination application The fixed target presets script;
Second determines submodule, true according to the destination application for when monitoring to automated to respond to triggering gesture The fixed target presets script;
Third determines submodule, for when monitor current time reach it is default automated to respond to the triggered time when, according to institute It states destination application and determines that the target presets script;
4th determines submodule, for determining the mesh according to the destination application when receiving power-on instruction Mark default script.
In one embodiment, the determining module 401 may include:
5th determines submodule, for the corresponding relationship and the target application journey according to application program and script mark Sequence determines the corresponding target script mark of the destination application;
6th determines submodule, for determining that the target presets script according to target script mark.
In one embodiment, characteristic information includes: operation of the repeatability operation on the touch panel of touch control device Information;And/or
Characteristic information includes: instruction information corresponding with operation information, wherein instruction information includes at least one of the following: Keyword, picture, colouring information.
As shown in figure 5, in one embodiment, processing module 402 may include:
It identifies submodule 4021, is configured as identifying instruction information when characteristic information includes instruction information, obtaining It must indicate the corresponding operation information of information;
Analyzing sub-module 4022 is configured as parsing operation information, obtains touch information.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
From the above technical scheme, touch control device responding device provided in this embodiment, runs according in touch control device Destination application determine that target presets script, script is preset by invocation target, the spy in script is preset to the target Reference breath is automatically parsed, and then obtains that this feature information is corresponding and the identifiable touch information of the touch control device, namely With the touch information of the matched repeatability operation of the destination application, then touch control device automated tos respond to touch-control letter Breath obtains that is, touch control device executes above-mentioned repeatability operation, it can be achieved that on the basis of not needing manual operation automatically To with user manually perform it is above-mentioned repeatability operation response effect.In this way, not only saving manpower, reduction repeats Property operation time, and due to being not required to artificially to execute above-mentioned repeatability operation thus improving the response of repeatability operation Efficiency.
Finally, may include touch control device described in any of the above embodiment the present invention also provides a kind of touch control device Responding device or the touch control device can execute touch control device response method described in any of the above-described embodiment, realize to can The automatic execution and response of repetitive operation.
Touch control device responding device in the present invention is suitable for touch control device.For example, the touch control device can be mobile electricity Words, computer, digital broadcasting, messaging devices, game console, tablet device, Medical Devices, body-building equipment, a number Word assistant etc..
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of touch control device response method characterized by comprising
Determine that target presets script according to the destination application run in the touch control device;Wherein, the target presets foot Record has the characteristic information with the matched repeatability operation of the destination application in this;
The target is called to preset script, and the characteristic information in the default script of the target is resolved to the touch control device can The touch information of identification;
Respond the touch information.
2. the method according to claim 1, wherein
The response touch information, comprising:
Corresponding touch command is generated according to the touch information;
It controls the destination application and executes the touch command, to complete the repeatability operation.
3. the method according to claim 1, wherein
Being equipped with default analysis program on the touch control device and creating has virtual input device, the virtual input device difference It is connected with the operating system of the default analysis program and the touch control device;
The characteristic information by the default script of the target resolves to the identifiable touch information of the touch control device, wraps It includes:
The characteristic information is parsed by the default analysis program, obtains the identifiable institute of the virtual input device State touch information;
The response touch information, comprising:
The touch information is sent to the operating system by the virtual input device;
The operating system responds the touch information.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
After receiving creation instruction, display virtual input device creates interface;
Interface is created by the virtual input device and receives configuration parameter, wherein the configuration parameter includes described virtual defeated Enter the resolution ratio of equipment;
The virtual input device is created according to the configuration parameter.
5. the method according to claim 1, wherein
It is described to determine that target presets script, including following at least one according to the destination application run in the touch control device :
When receive automated to respond to triggering command when, determine that the target presets script according to the destination application;
When monitoring to automated to respond to triggering gesture, determine that the target presets script according to the destination application;
When monitor current time reach it is default automated to respond to the triggered time when, the mesh is determined according to the destination application Mark default script;
When receiving power-on instruction, determine that the target presets script according to the destination application.
6. the method according to any one of claims 1 to 5, which is characterized in that
Determine that target presets script according to the destination application run in the touch control device, comprising:
According to the corresponding relationship and the destination application of application program and script mark, the destination application is determined Corresponding target script mark;
Determine that the target presets script according to target script mark.
7. the method according to any one of claims 1 to 5, which is characterized in that
The characteristic information includes: operation information of the repeatability operation on the touch panel of the touch control device;With/ Or
The characteristic information includes: instruction information corresponding with the operation information, wherein the instruction information includes below extremely One item missing: keyword, picture, colouring information.
8. the method according to the description of claim 7 is characterized in that
When the characteristic information includes the instruction information, the characteristic information by the default script of the target is resolved to The identifiable touch information of touch control device, comprising:
The instruction information is identified, the corresponding operation information of the instruction information is obtained;
The operation information is parsed, the touch information is obtained.
9. a kind of touch control device responding device characterized by comprising
Determining module, for determining that target presets script according to the destination application run in the touch control device;Wherein, institute State the characteristic information that there is record in the default script of target and the matched repeatability of the destination application operates;
The target for calling the target to preset script, and is preset the characteristic information in script and resolved to by processing module The identifiable touch information of touch control device;
Respond module, for responding the touch information.
10. device according to claim 9, which is characterized in that
Being equipped with default analysis program on the touch control device and creating has virtual input device, the virtual input device difference It is connected with the operating system of the default analysis program and the touch control device;
The processing module is used for:
The characteristic information is parsed by the default analysis program, obtains the identifiable institute of the virtual input device State touch information;
The respond module is used for:
The touch information is sent to the operating system by the virtual input device, makes operating system response institute State touch information.
11. device according to claim 9 or 10, which is characterized in that
The characteristic information includes: operation information of the repeatability operation on the touch panel of the touch control device;With/ Or
The characteristic information includes: instruction information corresponding with the operation information, wherein the instruction information includes below extremely One item missing: keyword, picture, colouring information;
The processing module includes:
Submodule is identified, for identifying, obtaining to the instruction information when the characteristic information includes the instruction information Obtain the corresponding operation information of the instruction information;
Analyzing sub-module obtains the touch information for parsing the operation information.
12. a kind of touch control device, which is characterized in that including the described in any item touch control device responses of the above claim 9 to 11 Device.
CN201811302864.3A 2018-11-02 2018-11-02 Touch control device and its response method, device Pending CN109542303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811302864.3A CN109542303A (en) 2018-11-02 2018-11-02 Touch control device and its response method, device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811302864.3A CN109542303A (en) 2018-11-02 2018-11-02 Touch control device and its response method, device

Publications (1)

Publication Number Publication Date
CN109542303A true CN109542303A (en) 2019-03-29

Family

ID=65846334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811302864.3A Pending CN109542303A (en) 2018-11-02 2018-11-02 Touch control device and its response method, device

Country Status (1)

Country Link
CN (1) CN109542303A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650474A (en) * 2020-12-18 2021-04-13 咪咕互动娱乐有限公司 Control script generation method and device, network equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645966A (en) * 2009-09-04 2010-02-10 三星电子(中国)研发中心 Automation operating system on mobile phone terminal
CN102854974A (en) * 2011-06-30 2013-01-02 奇智软件(北京)有限公司 Method and system for implementation of virtual input equipment in driving layer
CN103473110A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Equipment control method, device and system
CN105630375A (en) * 2015-12-18 2016-06-01 ***你玩科技有限公司 Auxiliary implementation method and system of information input on the basis of graphical interface
CN105657551A (en) * 2014-12-05 2016-06-08 北京奇虎科技有限公司 Method and apparatus used by smart television to respond to analog key
CN107832060A (en) * 2017-11-27 2018-03-23 北京奇安信科技有限公司 A kind of Application Program Interface processing method and processing device
US20180095772A1 (en) * 2016-09-30 2018-04-05 Xiaoyun Wu Method and apparatus for automatic processing of service requests on an electronic device
CN108646968A (en) * 2018-04-20 2018-10-12 苏州蜗牛数字科技股份有限公司 A kind of method and system for reappearing scene based on image analysis

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645966A (en) * 2009-09-04 2010-02-10 三星电子(中国)研发中心 Automation operating system on mobile phone terminal
CN102854974A (en) * 2011-06-30 2013-01-02 奇智软件(北京)有限公司 Method and system for implementation of virtual input equipment in driving layer
CN103473110A (en) * 2012-06-08 2013-12-25 腾讯科技(深圳)有限公司 Equipment control method, device and system
CN105657551A (en) * 2014-12-05 2016-06-08 北京奇虎科技有限公司 Method and apparatus used by smart television to respond to analog key
CN105630375A (en) * 2015-12-18 2016-06-01 ***你玩科技有限公司 Auxiliary implementation method and system of information input on the basis of graphical interface
US20180095772A1 (en) * 2016-09-30 2018-04-05 Xiaoyun Wu Method and apparatus for automatic processing of service requests on an electronic device
CN107832060A (en) * 2017-11-27 2018-03-23 北京奇安信科技有限公司 A kind of Application Program Interface processing method and processing device
CN108646968A (en) * 2018-04-20 2018-10-12 苏州蜗牛数字科技股份有限公司 A kind of method and system for reappearing scene based on image analysis

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650474A (en) * 2020-12-18 2021-04-13 咪咕互动娱乐有限公司 Control script generation method and device, network equipment and storage medium
CN112650474B (en) * 2020-12-18 2024-03-22 咪咕互动娱乐有限公司 Control script generation method, device, network equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2016206113A1 (en) Technologies for device independent automated application testing
CN105843734A (en) Automatic test method and device and computing device
CN106126424B (en) A kind of visual automated testing method of script, device and mobile terminal
CN114237399B (en) Haptic feedback method, apparatus, medium, and device
JP2013175242A (en) Method system and software for providing image sensor based human machine interfacing
CN105824755A (en) Automation test method, automation test device and mobile terminal
JP2020510250A (en) Service processing method and device
CN108829371B (en) Interface control method and device, storage medium and electronic equipment
JP2011192296A (en) Help utility application program
CN109799988B (en) iOS page layout method, terminal device and computer readable storage medium
CN109144506A (en) A kind of configurable UI interface creating method
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN109550232A (en) Touch control device and its response method, device
CN109921916B (en) Message processing method and device in multi-user group, storage medium and terminal equipment
CN111427760B (en) Page test method, device, equipment and storage medium
US10628031B2 (en) Control instruction identification method and apparatus, and storage medium
CN118131919A (en) Keyboard control method, device, system and storage medium
CN113010359B (en) Bus test system generation method, system, device and storage medium
CN109542303A (en) Touch control device and its response method, device
KR20100056338A (en) Gui test automatic system for improving reusability of test script and method thereof
US10289219B2 (en) Communicating with an unsupported input device
CN106155513B (en) A kind of control method and device projecting touch screen
CN108984238B (en) Gesture processing method and device of application program and electronic equipment
CN112449227B (en) Interaction method and device for touch screen application compatible with remote controller operation and smart television
CN105487761B (en) A kind of control method and mobile terminal of application program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190329

RJ01 Rejection of invention patent application after publication