CN107569851A - On-hook method, apparatus of playing and system - Google Patents

On-hook method, apparatus of playing and system Download PDF

Info

Publication number
CN107569851A
CN107569851A CN201710807426.1A CN201710807426A CN107569851A CN 107569851 A CN107569851 A CN 107569851A CN 201710807426 A CN201710807426 A CN 201710807426A CN 107569851 A CN107569851 A CN 107569851A
Authority
CN
China
Prior art keywords
game
script file
logic
interface
running interface
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.)
Granted
Application number
CN201710807426.1A
Other languages
Chinese (zh)
Other versions
CN107569851B (en
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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201710807426.1A priority Critical patent/CN107569851B/en
Publication of CN107569851A publication Critical patent/CN107569851A/en
Application granted granted Critical
Publication of CN107569851B publication Critical patent/CN107569851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses one kind game on-hook method, apparatus and system.Wherein, method includes:The each object included in game running interface is predefined, by the recognition logic of each object and operation logic storage into the script file corresponding with game;In game play, the script file corresponding with game is called, the object included in game running interface is identified according to the recognition logic of each object included in the script file;When recognizing the object included in the game running interface, the operation logic of the object is obtained from the script file, the operation to match with the operation logic of the object is performed for the object included in the game running interface.Using this programme, the automatic hand-up of game can be achieved, save user's playtime, lift user's game experiencing.

Description

On-hook method, apparatus of playing and system
Technical field
The present invention relates to electronic information technical field, and in particular to one kind game on-hook method, apparatus and system.
Background technology
With the fast development of information technology and society, various electronic games enrich the entertainment life of people. In electronic game, user such as ability supplement, need to pick up gold coin or beat strange, ability after a series of cumbersome operations Reach the purpose of upgrading.
But inventor has found that aforesaid way of the prior art at least exists following during the present invention is realized Defect:Due to during aforesaid operations are performed, being both needed to user and operating in person, so as to which user's plenty of time can be expended, make user Interest in game play is lost, reduces Consumer's Experience.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the game on-hook method, apparatus and system of problem.
According to an aspect of the invention, there is provided a kind of game on-hook method, including:
The each object included in game running interface is predefined, by the recognition logic of each object and operation Logic is stored into the script file corresponding with game;
In game play, the script file corresponding with game is called, according to what is included in the script file The object included in game running interface is identified the recognition logic of each object;
When recognizing the object included in the game running interface, the object is obtained from the script file Operation logic, perform what is matched with the operation logic of the object for the object that is included in the game running interface Operation.
According to a further aspect of the present invention, there is provided one kind game hand-up device, including:
Memory module, suitable for predefining each object included in game running interface, by the knowledge of each object Other logic and operation logic storage are into the script file corresponding with game;
Calling module, suitable in game play, the script file corresponding with game being called, according to the script The object included in game running interface is identified the recognition logic of each object included in file;
Operation module, suitable for when recognizing the object included in the game running interface, from the script file The middle operation logic for obtaining the object, the behaviour with the object is performed for the object included in the game running interface The operation to match as logic.
According to another aspect of the invention, there is provided one kind game on-hook system, including above-mentioned game hand-up device and cloud Server.
According to another aspect of the invention, there is provided a kind of computing device, including:Processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
The memory is used to deposit an at least executable instruction, and the executable instruction makes the computing device above-mentioned Play and operated corresponding to on-hook method.
In accordance with a further aspect of the present invention, there is provided a kind of computer-readable storage medium, be stored with the storage medium to A few executable instruction, the executable instruction make computing device play as described above corresponding to on-hook method to operate.
According to game on-hook method, apparatus provided by the invention and system.By predefining game running interface Zhong Bao The each object contained, the recognition logic of each object and operation logic storage are arrived into the script file corresponding with game In;In game play, the script file corresponding with game is called, according to each object included in script file Recognition logic the object included in game running interface is identified;When recognizing the mesh that is included in game running interface When marking thing, the operation logic of the object is obtained from script file, is performed for the object included in game running interface The operation to match with the operation logic of the object.Using this programme, the automatic hand-up of game can be achieved, save user's game Time, lift user's game experiencing.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the schematic flow sheet of the game on-hook method provided according to one embodiment of the invention;
Fig. 2 shows the schematic flow sheet of the game on-hook method provided according to a further embodiment of the invention;
Fig. 3 shows the structured flowchart of the game hand-up device provided according to one embodiment of the invention;
Fig. 4 shows the structured flowchart of the game hand-up device provided according to a further embodiment of the invention;
Fig. 5 shows the structured flowchart of the game on-hook system provided according to one embodiment of the invention;
Fig. 6 shows a kind of structural representation of the computing device provided according to one embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Fig. 1 shows the schematic flow sheet of the game on-hook method provided according to one embodiment of the invention.Such as Fig. 1 institutes Show, this method includes:
Step S110, each object included in game running interface is predefined, the identification of each object is patrolled Collect and operation logic storage is into the script file corresponding with game.
Wherein, the present invention is not construed as limiting to the size of object, function etc..For example, object can be game running circle The object of control game host process, such as START button in face;It can also be the thing that miscellaneous function is played in game running interface Body, such as pick up " gold coin " icon in gold coin operation.
Corresponding recognition logic and operation logic are can configure for each object.Such as, for " gold coin " object, can match somebody with somebody Put the recognition logic of corresponding identification " gold coin " icon, and corresponding operation logic, such as single-click operation.Optionally, for same Class object, same recognition logic and operation logic can be set.Such as, for different size or pattern in game running interface " gold coin ", same recognition logic and operation logic can be set according to the common trait of such " gold coin ".
Further, it is the recognition logic of each object and operation logic storage is literary to the script corresponding with game In part.Optionally, game identifier can be included in script file, the script text corresponding with game is can determine that by game identifier Part.Further alternative, script file can be stored in user local, consequently facilitating the calling of script file.
Step S120, in game play, the script file corresponding with game is called, is wrapped according in script file The object included in game running interface is identified the recognition logic of each object contained.
Specifically, in game play, the script file corresponding with playing can be called.Constantly obtain going game Runnable interface, the object included in game running interface is entered according to each object recognition logic included in script file Row identification.
Step S130, when recognizing the object included in game running interface, the target is obtained from script file The operation logic of thing, the behaviour to match with the operation logic of the object is performed for the object included in game running interface Make.
When step S120 recognizes the object included in game running interface, the object is obtained from script file Operation logic, and corresponding operation is performed to the object.Such as when recognizing object " gold coin " in step S120, from pin The operation logic corresponding with " gold coin " obtained in this document is " clicking ", then for being recognized in going game runnable interface Object " gold coin " carry out single-click operation.
Wherein, step S120 to step S130 circulations perform in the present embodiment, until meeting to tie during default termination condition Beam.For example, when step S120 identifies an object, then step S130 is performed, for being identified in game running interface The object gone out performs the operation to match with the operation logic of the object;And step S120 is further performed after execution, Continue to identify next object, until all objects are identified, and terminate after performing corresponding operation.Optionally, This method can be performed by multithreading, to improve the execution efficiency for on-hook method of playing.
As can be seen here, the game on-hook method that the present embodiment provides, by predefining what is included in game running interface Each object, by the recognition logic of each object and operation logic storage into the script file corresponding with game; In game play, the script file corresponding with game is called, according to each object included in script file The object included in game running interface is identified recognition logic;When recognizing the target that is included in game running interface During thing, the operation logic of the object is obtained from script file, for the object that is included in game running interface perform with The operation that the operation logic of the object matches.Using this method, the automatic hand-up of game can be achieved, when saving user's game Between, lift user's game experiencing.
Fig. 2 shows the schematic flow sheet of the game on-hook method provided according to a further embodiment of the invention.Such as Fig. 2 institutes Show, this method includes:
Step S210, predefine each object included in game running interface, and predetermined game running The each object included in interface shows order.
Wherein, the present invention is not construed as limiting to the size of object, function etc..For example, object can be game running circle The object of control game host process, such as START button in face;It can also be the thing that miscellaneous function is played in game running interface Body, such as pick up " gold coin " icon in gold coin operation.
Because the object included in game running interface can be multiple, and multiple objects are opened up in scene of game Existing opportunity is different, then each object for needing to include in predetermined game running interface shows order.Optionally, can root Show order according to each object, corresponding numbering is set for each object.For example, object includes " gold coin ", " ultimate Reward box " and " beginning ", show successively according to " beginning-gold coin-ultimate reward box " order in scene of game, then can be Object " gold coin ", " ultimate reward box " and " beginning " set the numbering of " NO.2 ", " NO.3 " and " NO.1 " respectively.
Step S220, the recognition logic of each object and operation logic are stored by default script typing interface Into the script file corresponding with game.
Corresponding recognition logic and operation logic are can configure for each object.Such as, for " gold coin " object, can match somebody with somebody Put the recognition logic of corresponding identification " gold coin " icon, and corresponding operation logic, such as single-click operation.Optionally, for same Class object, same recognition logic and operation logic can be set.Such as, for different size or pattern in game running interface " gold coin ", same recognition logic and operation logic can be set according to the common trait of such " gold coin ".
Wherein, default script typing interface can be one or more.Optionally, default script typing interface is in phase (" typing " button etc. e.g., is clicked under the trigger condition answered), receives the identification of the compiled good each object of script developer Logic and operation logic, and be stored in the script file corresponding with game;Default script typing interface also may be used To provide corresponding development environment etc. for script developer, whenever script developer compiles object using the development environment provided Recognition logic and operation logic after, the recognition logic of compiled each object and operation logic are stored in real time Into the script file corresponding with game, so as to be easy to the recognition logic of object and operation logic in real time more Newly.
Specifically, can according in step S210 each object set in advance show order, successively by each target The recognition logic and operation logic of thing are stored into the script file corresponding with game.Optionally, script file can store It is local in user terminal, consequently facilitating the calling of script file.
Step S230, in game play, the script file corresponding with game is called, by being wrapped in script file The recognition function of the object contained obtains the set of characteristic parameters of object, and game running interface is identified according to set of characteristic parameters In the object that includes.
Specifically, the recognition logic of each object is included in script file, corresponding identification can be included in recognition logic Function.Recognition function can identify the object included in game running interface according to set of characteristic parameters.Optionally, object Recognition function is stored in default function library.By default function library calling interface, the identification letter in callable function storehouse Number, so as to only need to record corresponding function call operation in script file, without the particular content of recognition function is recorded In script file.
The Pixel Information of the reference area of object, and the Pixel Information of non-reference area and non-reference area relative to The relative coordinate values of reference area.Wherein, reference area includes one or more pixels, and/or non-reference area includes one Individual or multiple pixels;Pixel Information includes the colouring information of pixel, RGB (R-G-B) value, HVS (colors such as pixel Tune-saturation degree-lightness) value etc..Wherein, non-reference area is specially non-reference area relative to the relative coordinate values of reference area Coordinate value when middle all pixels point is using reference area as the origin of coordinates.Optionally, the set of characteristic parameters of object can be with mesh Thing mark associated storage is marked, wherein, object mark can show order really according to each object in game running interface It is fixed.
Further, the recognition function of object can be used for:During game running, judge in current runnable interface whether The region to match in the presence of the Pixel Information with reference area;If so, the region that the Pixel Information with reference area is matched It is defined as first area;Relative coordinate values according to non-reference area relative to reference area, it is determined that corresponding with first area Second area;Judge whether the Pixel Information of second area matches with the Pixel Information of non-reference area, if so, will currently transport Object identification comprising first area and second area in row interface is object.Wherein, those skilled in the art can basis Different objects to be identified sets corresponding reference area and non-reference area, also can choose reference automatically at random by machine Region and non-reference area, reference area and non-reference area can be also chosen according to default selection rule, such as uses edge Feature extraction algorithm gathers the multiple characteristic points included in object to be identified, by where the central point in multiple characteristic points Region is defined as reference zone, and the regional difference where each characteristic point in multiple characteristic points in addition to central point is true It is set to non-reference area.In a word, the present invention to the choosing method of reference area and non-reference area in object to be identified not Limit.Further, can be judged according to default matched rule in current runnable interface with the presence or absence of the picture with reference area The region that prime information matches.Default matched rule those skilled in the art can voluntarily be set.For example, default matched rule The first predetermined threshold value can be less than for the Euclidean distance of color value in Pixel Information, and/or, the arithmetical difference of color value is less than second Predetermined threshold value.Wherein, the first predetermined threshold value and the second predetermined threshold value can be set according to matching precision, and matching precision is higher, the One predetermined threshold value and the second predetermined threshold value are smaller.By taking table 1 as an example, table 1 shows the feature ginseng for the object for being identified as " NO.2 " Information in manifold conjunction, the object reference area are made up of pixel A.Then as the RGB of a certain pixel A' in runnable interface Value is less than the first predetermined threshold value with the RGB Euclidean distances of A points, that is, when meeting (2-1), it is determined that the point for and reference zone in table 1 The region that domain matches.
[(r-189)2+(g-23)2+(b-88)2]1/2< Tred1 formula (2-1)
Or when the rgb value of a certain pixel A' in current runnable interface meets formula (2-2), determine the point be with The region that reference area matches in table 1.
│ r-189 │ < Tred2, and │ g-23 │ < Tred2, and │ b-88 │ < Tred2 formula (2-2)
Wherein, r in formula (2-1) and formula (2-2), g, b are respectively in current runnable interface in pixel RGB information It is worth corresponding to R (red), G (green), B (blueness), Tred1 is the first predetermined threshold value, and Tred2 is the second predetermined threshold value.
When it is determined that after using A' as first area, using A' as the origin of coordinates, it is determined that distinguishing relative to the relative coordinate values of A' points For tri- pixels of B', C' and D' of (0,4), (- 5, -3) and (6,5), and three pixels are defined as second area, And further compare whether the Pixel Information of tri- pixels of B', C' and D' matches with B, C and D Pixel Information, if matching, Object comprising tetra- pixels of A', B', C' and D' is defined as object NO.2.
Table 1
Optionally, due in practical business, playing after the changes such as correcting upgrading, object pair is often made Information answered etc. changes.So mesh can be worked as by set of characteristic parameters storage corresponding to each object to Cloud Server After marking thing renewal, according to the set of characteristic parameters stored on the object modification Cloud Server after renewal.
Step S240, when recognizing the object included in game running interface, the target is obtained from script file The operation logic of thing, the behaviour to match with the operation logic of the object is performed for the object included in game running interface Make.
When step S230 recognizes the object included in game running interface, the object is obtained from script file Operation logic, and corresponding operation is performed to the object.Wherein, operation logic includes:Single-click operation, double click operation and Slide etc..For example, when recognizing object " gold coin " in step S230, obtained from script file and object " gold coin " corresponding operation logic is " clicking ", then enters for the object " gold coin " recognized in going game runnable interface Row single-click operation.
Wherein, step S230 to step S240 circulations perform in the present embodiment, until meeting sheet during default termination condition Method terminates.For example, when step S230 identifies an object, then step S240 is performed, for game running interface In the object that identifies perform the operation to match with the operation logic of the object;And step is further performed after execution Rapid S230, continue to identify next object, until all objects are identified and finished, and terminate after performing corresponding operation. Optionally, this method can be performed by multithreading, to improve the execution efficiency for on-hook method of playing.
Further alternative, the game on-hook method that the present embodiment provides can perform in sandbox, so as to exempt from root In the case of, corresponding operation is performed to the object in interface.
As can be seen here, the game on-hook method that the present embodiment provides, by predefining what is included in game running interface The each object included in each object, and predetermined game running interface shows order;And by default Script typing interface is by the recognition logic of each object and operation logic storage into the script file corresponding with game; In game play, the script file corresponding with game, recognition function and feature in script file are called The object included in game running interface is identified parameter sets;When recognizing the target that is included in game running interface During thing, the operation logic of the object is obtained from script file, for the object that is included in game running interface perform with The operation that the operation logic of the object matches.Using this programme, the automatic hand-up of game can be achieved, when saving user's game Between, lift user's game experiencing;Also, function is stored in function library, in different script file callable function storehouses Recognition function, so as to cut down script file volume, reduce the storage consumption of script file;Also, by by set of characteristic parameters It is stored on default Cloud Server, after object updates, according to what is stored on the object renewal Cloud Server after renewal The set of characteristic parameters of the object, and then object can be identified according to the object set of characteristic parameters after renewal, avoid Need to rewrite the tedious work of script file after the renewal of each object, reduce manual maintenance cost, improve game on-hook method Whole efficiency;In addition, the game on-hook method that the present embodiment provides can perform in sandbox, so as to exempt from root situation Under, corresponding operation is performed to the object in interface.
Fig. 3 shows the schematic flow sheet of the game hand-up device provided according to one embodiment of the invention.Such as Fig. 3 institutes Show, the device includes:Memory module 31, calling module 32 and operation module 33.
Memory module 31, suitable for predefining each object included in game running interface, by each object Recognition logic and operation logic storage are into the script file corresponding with game.
Corresponding recognition logic and operation logic are can configure for each object.Such as, for " gold coin " object, can match somebody with somebody Put the recognition logic of corresponding identification " gold coin " icon, and corresponding operation logic, such as single-click operation.Optionally, for same Class object, same recognition logic and operation logic can be set.Such as, for different size or pattern in game running interface " gold coin ", same recognition logic and operation logic can be set according to the common trait of such " gold coin ".
Further, it is the recognition logic of each object and operation logic storage is literary to the script corresponding with game Part.Optionally, game identifier can be included in script file, the script file corresponding with game is can determine that by game identifier. Optionally, script file can be stored in user local, consequently facilitating the calling of script file.
Calling module 32, suitable in game play, calling the script file corresponding with game, according to script text The object included in game running interface is identified the recognition logic of each object included in part.
Specifically, in game play, the script file corresponding with playing can be called.Constantly obtain going game Runnable interface, the object included in game running interface is entered according to each object recognition logic included in script file Row identification.
Operation module 33, suitable for when recognizing the object included in game running interface, being obtained from script file The operation logic of the object, the operation logic phase with the object is performed for the object included in game running interface The operation matched somebody with somebody.
When recognizing the object included in game running interface, the operation that the object is obtained from script file is patrolled Volume, and corresponding operation is performed to the object.As when recognizing object " gold coin ", " gold coin " is obtained from script file Operation logic be " clicking ", then carry out single-click operation for the object " gold coin " that is recognized in going game runnable interface.
As can be seen here, the game hand-up device that the present embodiment provides, by predefining what is included in game running interface Each object, by the recognition logic of each object and operation logic storage into the script file corresponding with game; In game play, the script file corresponding with game is called, according to each object included in script file The object included in game running interface is identified recognition logic;When recognizing the target that is included in game running interface During thing, the operation logic of the object is obtained from script file, for the object that is included in game running interface perform with The operation that the operation logic of the object matches.Using the present apparatus, the automatic hand-up of game can be achieved, when saving user's game Between, lift user's game experiencing.
Fig. 4 shows the structural representation of the game hand-up device provided according to a further embodiment of the invention.Such as Fig. 4 institutes Show, on the basis of Fig. 3 shown devices, the device also includes:Script typing interface 41, cloud update module 42, show default mould Block 43.
Wherein, it is suitable to show showing for each object that presetting module 43 is suitable to include in predetermined game running interface Sequence.
Because the object included in game running interface can be multiple, and multiple objects are opened up in scene of game Existing opportunity is different, then each object for needing to include in predetermined game running interface shows order.Optionally, can root Show order according to each object, corresponding numbering is set for each object.For example, object includes " gold coin ", " ultimate Reward box " and " beginning ", show successively according to " beginning-gold coin-ultimate reward box " order in scene of game, then can be Object " gold coin ", " ultimate reward box " and " beginning " set the numbering of " NO.2 ", " NO.3 " and " NO.1 " respectively.
Then memory module 31 is further adapted for:Show order according to each object, successively by the knowledge of each object Other logic and operation logic storage are into the script file corresponding with game.
Script typing interface 41, suitable for memory module by script typing interface by the recognition logic of each object and Operation logic is stored into the script file corresponding with game.
Wherein, script typing interface 41 can be one or more.Optionally, default script typing interface is corresponding (" typing " button etc. e.g., is clicked under trigger condition), directly receives the identification of the compiled good each object of script developer Logic and operation logic, and be stored in the script file corresponding with game;Default script typing interface also may be used To provide corresponding development environment etc. for script developer, whenever recognition logic of the script developer in compiling object and behaviour After making logic, the recognition logic of compiled each object and operation logic storage are arrived in real time corresponding with game In script file, so as to be easy to the real-time update of the recognition logic of object and operation logic.
Calling module 32 is further adapted for:Object is obtained by the recognition function of the object included in script file Set of characteristic parameters, the object included in game running interface is identified according to set of characteristic parameters.
Specifically, the recognition logic of each object is included in script file, corresponding identification can be included in recognition logic Function.Recognition function can identify the object included in game running interface according to set of characteristic parameters.Optionally, object Recognition function is stored in default function library.By default function library calling interface, the identification letter in callable function storehouse Number, so as to only need to record corresponding function call operation in script file, without whole recognition function is recorded in into script In file.
Wherein, the set of characteristic parameters of object includes:The Pixel Information of the reference area of object to be identified, and The Pixel Information of non-reference area and non-reference area relative to reference area relative coordinate values.Wherein, reference area includes One or more pixels, and/or non-reference area include one or more pixels;Pixel Information includes the color of pixel The rgb value of information, such as pixel, HVS values.Non- reference area is specially non-reference relative to the relative coordinate values of reference area Coordinate value when all pixels point is using reference area as the origin of coordinates in region.
Further, the recognition function of object can be used for:During game running, judge in current runnable interface whether The region to match in the presence of the Pixel Information with reference area;If so, the region that the Pixel Information with reference area is matched It is defined as first area;Relative coordinate values according to non-reference area relative to reference area, it is determined that corresponding with first area Second area;Judge whether the Pixel Information of second area matches with the Pixel Information of non-reference area, if so, will currently transport Object identification comprising first area and second area in row interface is object.Wherein, can be according to default matched rule Judge to whether there is the region to match with the Pixel Information of reference area in current runnable interface.Default matched rule ability Field technique personnel can voluntarily be set.For example, the Euclidean distance that default matched rule can be color value in Pixel Information is less than First predetermined threshold value, and/or, the arithmetical difference of color value is less than the second predetermined threshold value.Wherein, the first predetermined threshold value and second default Threshold value can be set according to matching precision, and matching precision is higher, and the first predetermined threshold value and the second predetermined threshold value are smaller.
Optionally, due in practical business, playing after the changes such as correcting upgrading, object pair is often made Pixel Information answered etc. changes.So can be by set of characteristic parameters storage corresponding to each object to Cloud Server.
Cloud update module 42, suitable for after object updates, being stored according on the object modification Cloud Server after renewal Set of characteristic parameters.
Optionally, the operation logic in operation module 33 includes:Single-click operation, double click operation and slide.
Further alternative, the game hand-up device that the present embodiment provides can perform in sandbox, so as to exempt from root In the case of, corresponding operation is performed to the object in interface.
As can be seen here, the game hand-up device that the present embodiment provides, by predefining what is included in game running interface The each object included in each object, and predetermined game running interface shows order;And by default Script typing interface is by the recognition logic of each object and operation logic storage into the script file corresponding with game; In game play, the script file corresponding with game, recognition function and feature in script file are called The object included in game running interface is identified parameter sets;When recognizing the target that is included in game running interface During thing, the operation logic of the object is obtained from script file, for the object that is included in game running interface perform with The operation that the operation logic of the object matches.Using the present apparatus, the automatic hand-up of game can be achieved, when saving user's game Between, lift user's game experiencing;Also, function is stored in function library, in different script file callable function storehouses Recognition function, so as to cut down script file volume, reduce the storage consumption of script file;Also, by by set of characteristic parameters It is stored on default Cloud Server, after object updates, according to what is stored on the object renewal Cloud Server after renewal The set of characteristic parameters of the object, and then object can be identified according to the object set of characteristic parameters after renewal, avoid Need to rewrite the tedious work of script file after the renewal of each object, reduce manual maintenance cost, improve game on-hook method Whole efficiency;In addition, the game hand-up device that the present embodiment provides performs in sandbox, so as to exempt from root situation Under, corresponding operation is performed to the object in interface.
Fig. 5 shows the structural representation of the game on-hook system provided according to one embodiment of the invention.Such as Fig. 5 institutes Show, the system includes:Game hand-up device 51 and Cloud Server 52.
Wherein, the set of characteristic parameters of object is stored with Cloud Server 52.
A kind of nonvolatile computer storage media is provided according to one embodiment of the invention, the computer storage is situated between Matter is stored with an at least executable instruction, and the game that the computer executable instructions can perform in above-mentioned any means embodiment is hung Machine method.
Fig. 6 shows the structural representation of the computing device provided according to one embodiment of the invention, of the invention specific real Specific implementation of the example not to computing device is applied to limit.
As shown in fig. 6, the computing device can include:Processor (processor) 602, communication interface (Communications Interface) 604, memory (memory) 606 and communication bus 608.
Wherein:Processor 602, communication interface 604 and memory 606 complete mutual lead to by communication bus 608 Letter.
Communication interface 604, for being communicated with the network element of miscellaneous equipment such as client or other servers etc..
Processor 602, for configuration processor 610, it can specifically perform the correlation in above-mentioned game on-hook embodiment of the method Step.
Specifically, program 610 can include program code, and the program code includes computer-managed instruction.
Processor 602 is probably central processor CPU, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that computing device includes, can be same type of processor, such as one or more CPU;Also may be used To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 606, for depositing program 610.Memory 606 may include high-speed RAM memory, it is also possible to also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 610 specifically can be used for so that processor 602 performs following operation:
The each object included in game running interface is predefined, by the recognition logic of each object and operation Logic is stored into the script file corresponding with game;
In game play, the script file corresponding with game is called, according to what is included in the script file The object included in game running interface is identified the recognition logic of each object;
When recognizing the object included in the game running interface, the object is obtained from the script file Operation logic, perform what is matched with the operation logic of the object for the object that is included in the game running interface Operation.
Program 610 specifically can be used for so that processor 602 performs following operation:
The recognition logic of each object and operation logic storage are arrived and game by default script typing interface In corresponding script file.
Program 610 specifically can be used for so that processor 602 performs following operation:
The set of characteristic parameters of object is obtained by the recognition function of the object included in the script file, according to The object included in the set of characteristic parameters identification game running interface;
Wherein, the set of characteristic parameters of the object is stored on default Cloud Server, and the knowledge of the object Other function is stored in default function library.
Program 610 specifically can be used for so that processor 602 performs following operation:
After object updates, the spy of the object stored on the Cloud Server is updated according to the object after renewal Levy parameter sets.
Program 610 specifically can be used for so that processor 602 performs following operation:
The each object included in predetermined game running interface shows order;
Show order according to each object, successively arrive the recognition logic of each object and operation logic storage In the script file corresponding with game;
Wherein, the set of characteristic parameters of object includes:The Pixel Information of the reference area of object to be identified, and The Pixel Information of non-reference area and non-reference area relative to reference area relative coordinate values;
The recognition function of the object is specifically used for:During game running, judge whether deposited in current runnable interface In the region that the Pixel Information with the reference area matches;If so, by the Pixel Information phase with the reference area The region of matching is defined as first area;
Relative coordinate values according to the non-reference area relative to the reference area, it is determined that with the first area phase Corresponding second area;Judge whether the Pixel Information of the second area matches with the Pixel Information of the non-reference area, If so, it is object by the object identification comprising the first area and the second area in current runnable interface.
The operation logic includes:Single-click operation, double click operation and slide.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) come realize in game hand-up device according to embodiments of the present invention some or The some or all functions of person's whole part.The present invention is also implemented as perform method as described herein one Divide either whole equipment or program of device (for example, computer program and computer program product).It is such to realize this hair Bright program can store on a computer-readable medium, or can have the form of one or more signal.It is such Signal can be downloaded from internet website and obtained, and either provided on carrier signal or provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
The invention discloses:A1. a kind of game on-hook method, including:
The each object included in game running interface is predefined, by the recognition logic of each object and operation Logic is stored into the script file corresponding with game;
In game play, the script file corresponding with game is called, according to what is included in the script file The object included in game running interface is identified the recognition logic of each object;
When recognizing the object included in the game running interface, the object is obtained from the script file Operation logic, perform what is matched with the operation logic of the object for the object that is included in the game running interface Operation.
A2. the method according to A1, wherein, it is described to arrive the recognition logic of each object and operation logic storage Step in the script file corresponding with game specifically includes:
The recognition logic of each object and operation logic storage are arrived and game by default script typing interface In corresponding script file.
A3. the method according to A1 or A2, wherein, it is described according to each object included in the script file The step of object included in game running interface is identified recognition logic specifically includes:
The set of characteristic parameters of object is obtained by the recognition function of the object included in the script file, according to The object included in the set of characteristic parameters identification game running interface.
A4. the method according to A3, wherein, the set of characteristic parameters of the object is stored in default Cloud Server On, and the recognition function of the object is stored in default function library.
A5. the method according to A4, wherein, methods described further comprises step:
After object updates, the spy of the object stored on the Cloud Server is updated according to the object after renewal Levy parameter sets.
A6. the method according to any one of A1-A5, wherein, methods described further comprises step:Predefine game The each object included in runnable interface shows order, then stores the recognition logic of each object and operation logic Specifically included to the step in the script file corresponding with game:
Show order according to each object, successively arrive the recognition logic of each object and operation logic storage In the script file corresponding with game.
A7. the method according to any one of A3-A6, wherein, the set of characteristic parameters of object includes:Mesh to be identified The Pixel Information of the reference area of thing is marked, and the Pixel Information of non-reference area and non-reference area are relative to reference area Relative coordinate values;
And the recognition function of the object is specifically used for:During game running, judge in current runnable interface whether The region to match in the presence of the Pixel Information with the reference area;If so, by described with reference area Pixel Information The region to match is defined as first area;
Relative coordinate values according to the non-reference area relative to the reference area, it is determined that with the first area phase Corresponding second area;Judge whether the Pixel Information of the second area matches with the Pixel Information of the non-reference area, If so, it is object by the object identification comprising the first area and the second area in current runnable interface.
A8. the method according to any one of A1-A7, wherein, the operation logic includes:Single-click operation, double click operation, And slide.
The invention also discloses:B9. a kind of game hand-up device, including:
Memory module, suitable for predefining each object included in game running interface, by the knowledge of each object Other logic and operation logic storage are into the script file corresponding with game;
Calling module, suitable in game play, the script file corresponding with game being called, according to the script The object included in game running interface is identified the recognition logic of each object included in file;
Operation module, suitable for when recognizing the object included in the game running interface, from the script file The middle operation logic for obtaining the object, the behaviour with the object is performed for the object included in the game running interface The operation to match as logic.
B10. the device according to B9, wherein, described device also includes:
Script typing interface, suitable for memory module by the script typing interface by the recognition logic of each object with And operation logic storage is into the script file corresponding with game.
B11. the device according to B9 or B10, wherein, the calling module is further adapted for:
The set of characteristic parameters of object is obtained by the recognition function of the object included in the script file, according to The object included in the set of characteristic parameters identification game running interface.
B12. the device according to B11, wherein, the set of characteristic parameters of the object is stored in default cloud service On device;And the recognition function of the object is stored in default function library.
B13. the device according to B12, wherein, described device also includes:
Cloud update module, suitable for after object updates, being updated according to the object after renewal and being deposited on the Cloud Server The set of characteristic parameters of the object of storage.
B14. the device according to any one of B9-B13, wherein, described device also includes:
Show presetting module, suitable for predefining showing sequentially for each object included in game running interface;
Then the memory module is further adapted for:Show order according to each object, successively by each object Recognition logic and operation logic storage are into the script file corresponding with game.
B15. the device according to any one of B9-B14, wherein, the set of characteristic parameters of object includes:To be identified The Pixel Information of the reference area of object, and the Pixel Information of non-reference area and non-reference area are relative to reference area Relative coordinate values;
And the recognition function of the object is specifically used for:During game running, judge in current runnable interface whether The region to match in the presence of the Pixel Information with the reference area;If so, by described with reference area Pixel Information The region to match is defined as first area;
Relative coordinate values according to the non-reference area relative to the reference area, it is determined that with the first area phase Corresponding second area;Judge whether the Pixel Information of the second area matches with the Pixel Information of the non-reference area, If so, it is object by the object identification comprising the first area and the second area in current runnable interface.
B16. the device according to any one of B9-B15, wherein, the operation logic includes:Single-click operation, double-click behaviour Work and slide.
The invention also discloses:C17. a kind of game on-hook system, including:
Game hand-up device as described in any one of B9-B16, and Cloud Server.
C18. the system according to C17, wherein, the set of characteristic parameters of object is stored with the Cloud Server.
The invention also discloses:D19. a kind of computing device, including:Processor, memory, communication interface and communication are total Line, the processor, the memory and the communication interface complete mutual communication by the communication bus;
The memory is suitable to a storage at least executable instruction, and the executable instruction makes the computing device such as Operated corresponding to game on-hook method described in any one of A1-A8.
The invention also discloses:E20. a kind of computer-readable storage medium, being stored with least one in the storage medium can hold Row instruction, the executable instruction make operation corresponding to game on-hook method of the computing device as described in any one of A1-A8.

Claims (10)

1. one kind game on-hook method, including:
The each object included in game running interface is predefined, by the recognition logic and operation logic of each object Store in the script file corresponding with game;
In game play, the script file corresponding with game is called, it is each according to what is included in the script file The object included in game running interface is identified the recognition logic of object;
When recognizing the object included in the game running interface, the behaviour of the object is obtained from the script file Make logic, the behaviour to match with the operation logic of the object is performed for the object included in the game running interface Make.
2. the method according to claim 11, wherein, it is described to store the recognition logic of each object and operation logic Specifically included to the step in the script file corresponding with game:
The recognition logic of each object and operation logic storage are arrived with playing relatively by default script typing interface In the script file answered.
3. method according to claim 1 or 2, wherein, it is described according to each object included in the script file The recognition logic the step of object included in game running interface is identified specifically include:
The set of characteristic parameters of object is obtained by the recognition function of the object included in the script file, according to described The object included in set of characteristic parameters identification game running interface.
4. according to the method for claim 3, wherein, the set of characteristic parameters of the object is stored in default cloud service On device, and the recognition function of the object is stored in default function library.
5. according to the method for claim 4, wherein, methods described further comprises step:
After object updates, the feature that the object stored on the Cloud Server is updated according to the object after renewal is joined Manifold is closed.
6. according to any described methods of claim 1-5, wherein, methods described further comprises step:Predefine game The each object included in runnable interface shows order, then stores the recognition logic of each object and operation logic Specifically included to the step in the script file corresponding with game:
Show order according to each object, successively arrive the recognition logic of each object and operation logic storage and trip Play in corresponding script file.
7. one kind game hand-up device, including:
Memory module, suitable for predefining each object included in game running interface, the identification of each object is patrolled Collect and operation logic storage is into the script file corresponding with game;
Calling module, suitable in game play, the script file corresponding with game being called, according to the script file In the recognition logic of each object that includes the object included in game running interface is identified;
Operation module, suitable for when recognizing the object included in the game running interface, being obtained from the script file The operation logic of the object is taken, the operation performed for the object included in the game running interface with the object is patrolled Collect the operation to match.
8. one kind game on-hook system, including:
Game hand-up device as claimed in claim 7, and Cloud Server.
9. a kind of computing device, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory is suitable to a storage at least executable instruction, and the executable instruction makes the computing device such as right will Ask and operated corresponding to the game on-hook method described in any one of 1-6.
10. a kind of computer-readable storage medium, an at least executable instruction, the executable instruction are stored with the storage medium Make operation corresponding to game on-hook method of the computing device as described in claim any one of 1-6.
CN201710807426.1A 2017-09-08 2017-09-08 Game on-hook method, device and system Active CN107569851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710807426.1A CN107569851B (en) 2017-09-08 2017-09-08 Game on-hook method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710807426.1A CN107569851B (en) 2017-09-08 2017-09-08 Game on-hook method, device and system

Publications (2)

Publication Number Publication Date
CN107569851A true CN107569851A (en) 2018-01-12
CN107569851B CN107569851B (en) 2020-12-04

Family

ID=61033019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710807426.1A Active CN107569851B (en) 2017-09-08 2017-09-08 Game on-hook method, device and system

Country Status (1)

Country Link
CN (1) CN107569851B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108744503A (en) * 2018-06-19 2018-11-06 北京翼晰科技有限公司 A kind of cloud based on Steam plateform systems, which hangs tag, implementation method and realizes system
CN108992923A (en) * 2018-06-22 2018-12-14 腾讯科技(深圳)有限公司 Resource allocation method and device, storage medium and electronic device
CN110602027A (en) * 2018-06-12 2019-12-20 网易(杭州)网络有限公司 Automatic control method and device for game

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008052207A2 (en) * 2006-10-27 2008-05-02 Wms Gaming, Inc. Processing wagering game events
US20130274018A1 (en) * 2009-10-14 2013-10-17 Sony Computer Entertainment America Llc Playing browser based games with alternative controls and interfaces
WO2015080871A1 (en) * 2013-11-26 2015-06-04 Qualcomm Incorporated Pre-identifying probable malicious rootkit behavior using behavioral contracts
US20160051899A1 (en) * 2012-08-20 2016-02-25 Kabam, Inc. System and method for detecting game client modification through script injection
CN105749551A (en) * 2016-02-26 2016-07-13 网易(杭州)网络有限公司 Game hosting method and system and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008052207A2 (en) * 2006-10-27 2008-05-02 Wms Gaming, Inc. Processing wagering game events
US20130274018A1 (en) * 2009-10-14 2013-10-17 Sony Computer Entertainment America Llc Playing browser based games with alternative controls and interfaces
US20160051899A1 (en) * 2012-08-20 2016-02-25 Kabam, Inc. System and method for detecting game client modification through script injection
WO2015080871A1 (en) * 2013-11-26 2015-06-04 Qualcomm Incorporated Pre-identifying probable malicious rootkit behavior using behavioral contracts
CN105749551A (en) * 2016-02-26 2016-07-13 网易(杭州)网络有限公司 Game hosting method and system and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
V2GUNDAM: "按键精灵使用详解", 《软件》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602027A (en) * 2018-06-12 2019-12-20 网易(杭州)网络有限公司 Automatic control method and device for game
CN110602027B (en) * 2018-06-12 2022-07-15 网易(杭州)网络有限公司 Automatic control method and device for game
CN108744503A (en) * 2018-06-19 2018-11-06 北京翼晰科技有限公司 A kind of cloud based on Steam plateform systems, which hangs tag, implementation method and realizes system
CN108992923A (en) * 2018-06-22 2018-12-14 腾讯科技(深圳)有限公司 Resource allocation method and device, storage medium and electronic device
CN108992923B (en) * 2018-06-22 2019-09-13 腾讯科技(深圳)有限公司 Resource allocation method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN107569851B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
US10929879B2 (en) Method and apparatus for identification of fraudulent click activity
CN104268006B (en) The back method and device of key mouse script
CN104123360B (en) One kind application recommending data acquisition methods, device, electronic equipment and system
CN107025165A (en) Game automated testing method and relevant apparatus
CN107569851A (en) On-hook method, apparatus of playing and system
CN109885446A (en) Determine that Website page shows the method and device of state
CN107483521A (en) A kind of information displaying method, apparatus and system
CN104076809B (en) Data processing equipment and data processing method
CN110610169B (en) Picture marking method and device, storage medium and electronic device
CN109948804A (en) Cross-platform towed deep learning modeling and training method and device
CN110414547A (en) A kind of behavioral value method, apparatus, computer equipment and storage medium
CN107741904A (en) Test machine method of automatic configuration, device, equipment and storage medium
CN107833214A (en) Video definition detection method, device, computing device and computer-readable storage medium
CN109408262A (en) A kind of business data processing method and relevant device
CN108279954A (en) A kind of method and device of application program sequence
CN109743286A (en) A kind of IP type mark method and apparatus based on figure convolutional neural networks
CN110287767A (en) Can attack protection biopsy method, device, computer equipment and storage medium
CN107463380B (en) Message treatment method, device and electronic equipment
CN107885569A (en) Based on the PUSH message method of reseptance and device for listening monotype
CN108921407A (en) A kind of task processing system and method
CN109976823A (en) A kind of application program launching method, device and terminal device
CN107656860A (en) Performance test methods, apparatus and system
CN107341097A (en) Information pushing method and device
CN109656810A (en) A kind of adjustment method of image algorithm, debugging system and terminal device
CN109364489A (en) The dance movement processing method and processing device of based role game for play

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
GR01 Patent grant
GR01 Patent grant