CN107569851B - Game on-hook method, device and system - Google Patents

Game on-hook method, device and system Download PDF

Info

Publication number
CN107569851B
CN107569851B CN201710807426.1A CN201710807426A CN107569851B CN 107569851 B CN107569851 B CN 107569851B CN 201710807426 A CN201710807426 A CN 201710807426A CN 107569851 B CN107569851 B CN 107569851B
Authority
CN
China
Prior art keywords
target object
game
logic
script file
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.)
Active
Application number
CN201710807426.1A
Other languages
Chinese (zh)
Other versions
CN107569851A (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

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a device and a system for hanging up a game. The method comprises the following steps: predetermining each target object contained in a game running interface, and storing the identification logic and the operation logic of each target object into a script file corresponding to the game; in the game running process, calling a script file corresponding to the game, and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file; and when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing the operation matched with the operation logic of the target object aiming at the target object contained in the game running interface. By adopting the scheme, automatic on-hook of the game can be realized, the game time of the user is saved, and the game experience of the user is improved.

Description

Game on-hook method, device and system
Technical Field
The invention relates to the technical field of electronic information, in particular to a method, a device and a system for hanging up a game.
Background
With the rapid development of information technology and society, various electronic games enrich people's entertainment lives. In the electronic game, the user needs to perform a series of complicated operations, such as capability supplement, gold coin picking or strange beating, to achieve the purpose of upgrading.
However, the inventor finds that the above mode in the prior art has at least the following defects in the process of implementing the invention: in the process of executing the operation, the user needs to operate in person, so that a great deal of time is consumed for the user, the user loses game interest, and the user experience is reduced.
Disclosure of Invention
In view of the above, the present invention has been developed to provide a method, apparatus, and system for on-hook gaming that overcome, or at least partially address, the above-discussed problems.
According to one aspect of the invention, a game on-hook method is provided, which comprises the following steps:
predetermining each target object contained in a game running interface, and storing the identification logic and the operation logic of each target object into a script file corresponding to the game;
in the game running process, calling a script file corresponding to the game, and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file;
and when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing the operation matched with the operation logic of the target object aiming at the target object contained in the game running interface.
According to another aspect of the present invention, there is provided a gaming apparatus comprising:
the storage module is suitable for predetermining each object contained in the game running interface and storing the identification logic and the operation logic of each object into a script file corresponding to the game;
the calling module is suitable for calling a script file corresponding to the game in the game running process and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file;
and the operation module is suitable for acquiring the operation logic of the object from the script file when the object contained in the game running interface is identified, and executing the operation matched with the operation logic of the object aiming at the object contained in the game running interface.
According to another aspect of the invention, a game on-hook system is provided, which comprises the game on-hook device and the cloud server.
According to yet another aspect of the present invention, there is provided a computing device comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the game on-hook method.
According to still another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the on-hook game method.
The invention provides a game on-hook method, a game on-hook device and a game on-hook system. Storing the identification logic and the operation logic of each object into a script file corresponding to the game by predetermining each object contained in the game running interface; in the game running process, calling a script file corresponding to the game, and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file; and when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing the operation matched with the operation logic of the target object aiming at the target object contained in the game running interface. By adopting the scheme, automatic on-hook of the game can be realized, the game time of the user is saved, and the game experience of the user is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow diagram illustrating a method for providing a game on-hook according to one embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for on-hook gaming according to another embodiment of the present invention;
FIG. 3 is a block diagram illustrating the structure of a gaming on-hook device provided in accordance with one embodiment of the present invention;
FIG. 4 is a block diagram illustrating a gaming on-hook device provided in accordance with another embodiment of the present invention;
FIG. 5 is a block diagram illustrating the structure of a gaming on-hook system provided in accordance with one embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computing device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flow chart illustrating a method for hanging up a game according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S110, each object contained in the game running interface is predetermined, and the identification logic and the operation logic of each object are stored in the script file corresponding to the game.
The present invention is not limited to the size, function, and the like of the target. For example, the target object may be an object in the game running interface, such as a "start" button; and objects with auxiliary functions in the game running interface, such as 'gold coin' icons in gold coin picking operation, and the like can also be used.
Respective recognition logic and operating logic may be configured for each target. For example, for the 'gold coin' target object, corresponding identification logic for identifying the 'gold coin' icon and corresponding operation logic, such as single click operation, can be configured. Alternatively, the same identification logic and operation logic may be set for similar objects. For example, for "gold coins" of different sizes or styles in the game play interface, the same identification logic and operation logic may be set based on common characteristics of such "gold coins".
Further, the identification logic and the operation logic of each object are stored in a script file corresponding to the game. Optionally, the script file may include a game identifier, and the script file corresponding to the game may be determined by the game identifier. Further optionally, the script file may be stored locally by the user, thereby facilitating the invocation of the script file.
And step S120, in the process of running the game, calling a script file corresponding to the game, and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file.
Specifically, during the running of the game, a script file corresponding to the game may be called. And continuously acquiring the current game running interface, and identifying the target object contained in the game running interface according to each target object identification logic contained in the script file.
Step S130, when the target object included in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing an operation matched with the operation logic of the target object for the target object included in the game running interface.
When the target object included in the game running interface is identified in step S120, the operation logic of the target object is obtained from the script file, and corresponding operation is performed on the target object. If the operation logic corresponding to the gold medal acquired from the script file is "single click" when the target object "gold medal" is recognized in step S120, a single click operation is performed with respect to the target object "gold medal" recognized in the current game execution interface.
In this embodiment, steps S120 to S130 are executed in a loop until a preset end condition is met. For example, each time an object is identified in step S120, step S130 is executed to execute an operation matching the operation logic of the object for the object identified in the game running interface; and after the execution, the step S120 is further executed, the next target object is continuously identified until all the target objects are identified, and the corresponding operation is executed, and then the operation is ended. Optionally, the method can be executed through multiple threads, so as to improve the execution efficiency of the game on-hook method.
Therefore, in the game on-hook method provided by the embodiment, the identification logic and the operation logic of each object are stored in the script file corresponding to the game by predetermining each object contained in the game running interface; in the game running process, calling a script file corresponding to the game, and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file; and when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing the operation matched with the operation logic of the target object aiming at the target object contained in the game running interface. By adopting the method, automatic on-hook of the game can be realized, the game time of the user is saved, and the game experience of the user is improved.
Fig. 2 is a flow chart illustrating a method for hanging up a game according to another embodiment of the present invention. As shown in fig. 2, the method includes:
step S210, predetermining each target object included in the game running interface, and predetermining a display sequence of each target object included in the game running interface.
The present invention is not limited to the size, function, and the like of the target. For example, the target object may be an object in the game running interface, such as a "start" button; and objects with auxiliary functions in the game running interface, such as 'gold coin' icons in gold coin picking operation, and the like can also be used.
Since the number of the target objects included in the game running interface may be multiple, and the display timings of the multiple target objects in the game scene are different, the display sequence of each target object included in the game running interface needs to be determined in advance. Optionally, a corresponding number may be set for each object according to the display sequence of each object. For example, if the target objects include "gold medal", "ultimate prize box", and "start", and are sequentially presented in the order of "start-gold medal-ultimate prize box" in the game scene, the numbers of "No. 2", "No. 3", and "No. 1" may be set for the target objects "gold medal", "ultimate prize box", and "start", respectively.
And S220, storing the identification logic and the operation logic of each target object into a script file corresponding to the game through a preset script input interface.
Respective recognition logic and operating logic may be configured for each target. For example, for the 'gold coin' target object, corresponding identification logic for identifying the 'gold coin' icon and corresponding operation logic, such as single click operation, can be configured. Alternatively, the same identification logic and operation logic may be set for similar objects. For example, for "gold coins" of different sizes or styles in the game play interface, the same identification logic and operation logic may be set based on common characteristics of such "gold coins".
The preset script input interface can be one or more. Optionally, the preset script entry interface receives the compiled identification logic and operation logic of each target object by the script developer under a corresponding trigger condition (e.g., clicking an "entry" button, etc.), and stores the compiled identification logic and operation logic in a script file corresponding to the game; the preset script input interface can also provide a corresponding development environment and the like for a script developer, and the compiled identification logic and operation logic of each target object are stored in a script file corresponding to the game in real time after the script developer compiles the identification logic and operation logic of the target object by using the provided development environment, so that the real-time update of the identification logic and operation logic of the target object can be facilitated.
Specifically, the identification logic and the operation logic of each object may be sequentially stored in the script file corresponding to the game according to the display sequence of each object preset in step S210. Optionally, the script file may be stored locally at the user end, so as to facilitate the calling of the script file.
Step S230, in the process of running the game, calling a script file corresponding to the game, obtaining a feature parameter set of the object through an identification function of the object included in the script file, and identifying the object included in the game running interface according to the feature parameter set.
Specifically, the script file includes identification logic of each object, and the identification logic may include a corresponding identification function. The recognition function may recognize the object included in the game play interface according to the set of characteristic parameters. Optionally, the identification function of the target object is stored in a preset function library. The identification function in the function library can be called through a preset function library calling interface, so that only corresponding function calling operation needs to be recorded in the script file, and specific contents of the identification function do not need to be recorded in the script file.
Pixel information of a reference region of the object, and pixel information of a non-reference region and relative coordinate values of the non-reference region with respect to the reference region. Wherein the reference region comprises one or more pixel points, and/or the non-reference region comprises one or more pixel points; the pixel information includes color information of the pixel point, such as RGB (red-green-blue) value, HVS (hue-saturation-value) value, and the like of the pixel point. The relative coordinate value of the non-reference region with respect to the reference region is specifically a coordinate value when all the pixel points in the non-reference region use the reference region as the origin of coordinates. Optionally, the feature parameter set of the target object may be stored in association with a target object identifier, wherein the target object identifier may be determined according to an order of presentation of each target object in the game execution interface.
Further, the identification function of the target object may be used to: judging whether an area matched with the pixel information of the reference area exists in the current running interface or not during the running of the game; if yes, determining an area matched with the pixel information of the reference area as a first area; determining a second region corresponding to the first region according to the relative coordinate value of the non-reference region with respect to the reference region; and judging whether the pixel information of the second area is matched with the pixel information of the non-reference area, and if so, identifying the object comprising the first area and the second area in the current operation interface as the target object. The method includes the steps that a person skilled in the art can set corresponding reference areas and non-reference areas according to different target objects to be recognized, the reference areas and the non-reference areas can be selected randomly and automatically through a machine, the reference areas and the non-reference areas can be selected according to preset selection rules, for example, a plurality of feature points included in the target objects to be recognized are collected through an edge feature extraction algorithm, an area where a central point of the feature points is located is determined as a reference area, and areas where the feature points except the central point are located are determined as the non-reference areas respectively. In short, the method for selecting the reference region and the non-reference region in the target object to be recognized is not limited. Further, whether an area matched with the pixel information of the reference area exists in the current running interface or not can be judged according to a preset matching rule. The preset matching rules can be set by the person skilled in the art. For example, the preset matching rule may be that the euclidean distance of the color values in the pixel information is smaller than a first preset threshold, and/or that the arithmetic difference of the color values is smaller than a second preset threshold. The first preset threshold and the second preset threshold can be set according to the matching precision, and the higher the matching precision is, the smaller the first preset threshold and the second preset threshold are. Taking table 1 as an example, table 1 shows information in a characteristic parameter set of an object identified as "No. 2", the object reference region being composed of pixel points a. And when the RGB Euclidean distance between the RGB value of a certain pixel point A' in the running interface and the RGB of the point A is smaller than a first preset threshold value, namely (2-1) is met, determining the point as a region matched with the reference region in the table 1.
[(r-189)2+(g-23)2+ (b-88)2]1/2 < Tred1 formula (2-1)
Or when the RGB value of a certain pixel point A' in the current running interface meets the formula (2-2), determining the point as an area matched with the reference area in the table 1.
R-189 < Tred2, g-23 < Tred2, b-88 < Tred2 (2-2)
R, G and B in the formula (2-1) and the formula (2-2) are values corresponding to R (red), G (green) and B (blue) in the RGB information of the pixel point in the current running interface respectively, Tred1 is a first preset threshold, and Tred2 is a second preset threshold.
After A 'is determined as a first area, A' is taken as an origin of coordinates, three pixel points B ', C' and D 'with relative coordinate values of (0, 4), (-5, -3) and (6, 5) are determined, the three pixel points are determined as a second area, pixel information of the three pixel points B', C 'and D' is further compared with pixel information of B, C and D to determine whether the pixel information is matched, and if the pixel information is matched, an object containing the four pixel points A ', B', C 'and D' is determined as a target object NO. 2.
TABLE 1
Figure 14538DEST_PATH_IMAGE001
Optionally, in an actual service, after the game is changed by version change, upgrading, and the like, information and the like corresponding to the target object may be changed. Therefore, the characteristic parameter set corresponding to each target object can be stored in the cloud server, and after the target object is updated, the characteristic parameter set stored in the cloud server is modified according to the updated target object.
Step S240, when the target object included in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing an operation matching with the operation logic of the target object for the target object included in the game running interface.
When the target object included in the game running interface is identified in step S230, the operation logic of the target object is obtained from the script file, and corresponding operation is performed on the target object. Wherein the operating logic comprises: single click operation, double click operation, slide operation, and the like. For example, when the target object "gold medal" is identified in step S230, the operation logic corresponding to the target object "gold medal" acquired from the script file is "single click", and a single click operation is performed on the target object "gold medal" identified in the current game execution interface.
In this embodiment, steps S230 to S240 are executed in a loop, until the method is ended when the preset ending condition is met. For example, each time an object is identified in step S230, step S240 is executed to execute an operation matching the operation logic of the object for the object identified in the game running interface; and after the execution, the step S230 is further executed, the next target object is continuously identified until all the target objects are identified, and the corresponding operation is executed, and then the operation is ended. Optionally, the method can be executed through multiple threads, so as to improve the execution efficiency of the game on-hook method.
Further optionally, the on-hook method for the game provided by this embodiment may be executed in a sandbox, so that corresponding operations may be executed on the target object in the game interface without root.
Therefore, according to the game on-hook method provided by the embodiment, the display sequence of each target object contained in the game running interface is predetermined by predetermining each target object contained in the game running interface; storing the identification logic and the operation logic of each target object into a script file corresponding to the game through a preset script input interface; calling a script file corresponding to the game in the game running process, and identifying a target object contained in a game running interface according to an identification function and a characteristic parameter set in the script file; and when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing the operation matched with the operation logic of the target object aiming at the target object contained in the game running interface. By adopting the scheme, automatic on-hook of the game can be realized, the game time of the user is saved, and the game experience of the user is improved; moreover, the functions are stored in the function library, and different script files can call the identification functions in the function library, so that the volume of the script files is reduced, and the storage consumption of the script files is reduced; moreover, the characteristic parameter set is stored in the preset cloud server, and after the target object is updated, the characteristic parameter set of the target object stored in the cloud server is updated according to the updated target object, so that the target object can be identified according to the updated target object characteristic parameter set, the tedious work that a script file needs to be rewritten after each target object is updated is avoided, the manual maintenance cost is reduced, and the overall efficiency of the game on-hook method is improved; in addition, the on-hook method for the game provided by the embodiment can be executed in the sandbox, so that corresponding operation can be executed on the target object in the game interface under the condition of no root.
Fig. 3 is a flow chart of a game on-hook device according to an embodiment of the invention. As shown in fig. 3, the apparatus includes: a storage module 31, a calling module 32, and an operation module 33.
The storage module 31 is adapted to predetermine each object included in the game running interface, and store the identification logic and the operation logic of each object in the script file corresponding to the game.
Respective recognition logic and operating logic may be configured for each target. For example, for the 'gold coin' target object, corresponding identification logic for identifying the 'gold coin' icon and corresponding operation logic, such as single click operation, can be configured. Alternatively, the same identification logic and operation logic may be set for similar objects. For example, for "gold coins" of different sizes or styles in the game play interface, the same identification logic and operation logic may be set based on common characteristics of such "gold coins".
Further, the identification logic and the operation logic of each object are stored in a script file corresponding to the game. Optionally, the script file may include a game identifier, and the script file corresponding to the game may be determined by the game identifier. Optionally, the script file may be stored locally by the user, thereby facilitating the invocation of the script file.
And the calling module 32 is suitable for calling the script file corresponding to the game in the game running process and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file.
Specifically, during the running of the game, a script file corresponding to the game may be called. And continuously acquiring the current game running interface, and identifying the target object contained in the game running interface according to each target object identification logic contained in the script file.
And the operation module 33 is adapted to, when the object included in the game running interface is identified, acquire the operation logic of the object from the script file, and execute an operation matched with the operation logic of the object for the object included in the game running interface.
And when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing corresponding operation on the target object. And if the operation logic of acquiring the gold coins from the script file is 'single click' when the target object 'gold coins' is identified, performing single click operation on the target object 'gold coins' identified in the current game running interface.
Therefore, the game on-hook device provided by the embodiment stores the identification logic and the operation logic of each object into the script file corresponding to the game by predetermining each object contained in the game running interface; in the game running process, calling a script file corresponding to the game, and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file; and when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing the operation matched with the operation logic of the target object aiming at the target object contained in the game running interface. By adopting the device, automatic on-hook of the game can be realized, the game time of the user is saved, and the game experience of the user is improved.
Fig. 4 is a schematic structural diagram of a game on-hook device according to another embodiment of the invention. As shown in fig. 4, the apparatus further includes, in addition to the apparatus shown in fig. 3: the system comprises a script input interface 41, a cloud updating module 42 and a display presetting module 43.
The display presetting module 43 is adapted to predetermine a display sequence of each target object included in the game running interface.
Since the number of the target objects included in the game running interface may be multiple, and the display timings of the multiple target objects in the game scene are different, the display sequence of each target object included in the game running interface needs to be determined in advance. Optionally, a corresponding number may be set for each object according to the display sequence of each object. For example, if the target objects include "gold medal", "ultimate prize box", and "start", and are sequentially presented in the order of "start-gold medal-ultimate prize box" in the game scene, the numbers of "No. 2", "No. 3", and "No. 1" may be set for the target objects "gold medal", "ultimate prize box", and "start", respectively.
The storage module 31 is further adapted to: and sequentially storing the identification logic and the operation logic of each object into a script file corresponding to the game according to the display sequence of each object.
And the script input interface 41 is suitable for the storage module to store the identification logic and the operation logic of each object into a script file corresponding to the game through the script input interface.
The script entry interface 41 may be one or more. Optionally, the preset script entry interface directly receives the identification logic and the operation logic of each target object compiled by the script developer under a corresponding trigger condition (e.g., clicking an "entry" button, etc.), and stores the identification logic and the operation logic in a script file corresponding to the game; the preset script input interface can also provide a corresponding development environment and the like for a script developer, and the compiled identification logic and operation logic of each target object are stored in a script file corresponding to the game in real time after the script developer compiles the identification logic and operation logic of the target object, so that the real-time update of the identification logic and operation logic of the target object can be facilitated.
The invoking module 32 is further adapted to: and acquiring a characteristic parameter set of the target object through the identification function of the target object contained in the script file, and identifying the target object contained in the game running interface according to the characteristic parameter set.
Specifically, the script file includes identification logic of each object, and the identification logic may include a corresponding identification function. The recognition function may recognize the object included in the game play interface according to the set of characteristic parameters. Optionally, the identification function of the target object is stored in a preset function library. The identification function in the function library can be called through a preset function library calling interface, so that only corresponding function calling operation needs to be recorded in the script file, and the whole identification function does not need to be recorded in the script file.
Wherein, the characteristic parameter set of the target object comprises: the pixel information of the reference region of the target object to be recognized, and the pixel information of the non-reference region and the relative coordinate values of the non-reference region with respect to the reference region. Wherein the reference region comprises one or more pixel points, and/or the non-reference region comprises one or more pixel points; the pixel information includes color information of the pixel point, such as RGB value, HVS value, etc. of the pixel point. The relative coordinate value of the non-reference region with respect to the reference region is specifically a coordinate value when all the pixel points in the non-reference region use the reference region as the origin of coordinates.
Further, the identification function of the target object may be used to: judging whether an area matched with the pixel information of the reference area exists in the current running interface or not during the running of the game; if yes, determining an area matched with the pixel information of the reference area as a first area; determining a second region corresponding to the first region according to the relative coordinate value of the non-reference region with respect to the reference region; and judging whether the pixel information of the second area is matched with the pixel information of the non-reference area, and if so, identifying the object comprising the first area and the second area in the current operation interface as the target object. And judging whether an area matched with the pixel information of the reference area exists in the current running interface according to a preset matching rule. The preset matching rules can be set by the person skilled in the art. For example, the preset matching rule may be that the euclidean distance of the color values in the pixel information is smaller than a first preset threshold, and/or that the arithmetic difference of the color values is smaller than a second preset threshold. The first preset threshold and the second preset threshold can be set according to the matching precision, and the higher the matching precision is, the smaller the first preset threshold and the second preset threshold are.
Optionally, in an actual service, after the game is changed by, for example, changing versions and upgrading, the pixel information and the like corresponding to the target object may be changed. Therefore, the feature parameter set corresponding to each target object can be stored on the cloud server.
And the cloud updating module 42 is adapted to modify the feature parameter set stored on the cloud server according to the updated target object after the target object is updated.
Optionally, the operation logic in the operation module 33 includes: single click operation, double click operation, and slide operation.
Further optionally, the on-hook game device provided by this embodiment may be implemented in a sandbox, so that corresponding operations may be performed on the target object in the game interface without root.
Therefore, the game on-hook device provided by the embodiment determines each target object contained in the game running interface in advance and determines the display sequence of each target object contained in the game running interface in advance; storing the identification logic and the operation logic of each target object into a script file corresponding to the game through a preset script input interface; calling a script file corresponding to the game in the game running process, and identifying a target object contained in a game running interface according to an identification function and a characteristic parameter set in the script file; and when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing the operation matched with the operation logic of the target object aiming at the target object contained in the game running interface. By adopting the device, automatic on-hook of the game can be realized, the game time of the user is saved, and the game experience of the user is improved; moreover, the functions are stored in the function library, and different script files can call the identification functions in the function library, so that the volume of the script files is reduced, and the storage consumption of the script files is reduced; moreover, the characteristic parameter set is stored in the preset cloud server, and after the target object is updated, the characteristic parameter set of the target object stored in the cloud server is updated according to the updated target object, so that the target object can be identified according to the updated target object characteristic parameter set, the tedious work that a script file needs to be rewritten after each target object is updated is avoided, the manual maintenance cost is reduced, and the overall efficiency of the game on-hook method is improved; in addition, the on-hook device provided by the embodiment is executed in the sandbox, so that corresponding operations can be executed on the target object in the game interface under the condition of no root.
Fig. 5 is a schematic structural diagram of a game on-hook system according to an embodiment of the present invention. As shown in fig. 5, the system includes: a game on-hook device 51 and a cloud server 52.
The cloud server 52 stores therein a feature parameter set of the target object.
According to one embodiment of the invention, a non-volatile computer storage medium is provided that stores at least one executable instruction that may perform a method of on-hook gaming in any of the above-described method embodiments.
Fig. 6 is a schematic structural diagram of a computing device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computing device.
As shown in fig. 6, the computing device may include: a processor (processor)602, a communication Interface 604, a memory 606, and a communication bus 608.
Wherein: the processor 602, communication interface 604, and memory 606 communicate with one another via a communication bus 608.
A communication interface 604 for communicating with network elements of other devices, such as clients or other servers.
The processor 602 is configured to execute the program 610, and may specifically execute relevant steps in the above embodiments of the game on-hook method.
In particular, program 610 may include program code comprising computer operating instructions.
The processor 602 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 606 for storing a program 610. Memory 606 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 610 may specifically be configured to cause the processor 602 to perform the following operations:
predetermining each target object contained in a game running interface, and storing the identification logic and the operation logic of each target object into a script file corresponding to the game;
in the game running process, calling a script file corresponding to the game, and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file;
and when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing the operation matched with the operation logic of the target object aiming at the target object contained in the game running interface.
The program 610 may specifically be configured to cause the processor 602 to perform the following operations:
and storing the identification logic and the operation logic of each target object into a script file corresponding to the game through a preset script input interface.
The program 610 may specifically be configured to cause the processor 602 to perform the following operations:
acquiring a characteristic parameter set of the target object through an identification function of the target object contained in the script file, and identifying the target object contained in the game running interface according to the characteristic parameter set;
the characteristic parameter set of the target object is stored on a preset cloud server, and the identification function of the target object is stored in a preset function library.
The program 610 may specifically be configured to cause the processor 602 to perform the following operations:
and after the target object is updated, updating the characteristic parameter set of the target object stored on the cloud server according to the updated target object.
The program 610 may specifically be configured to cause the processor 602 to perform the following operations:
the display sequence of each target object contained in the game running interface is predetermined;
sequentially storing the identification logic and the operation logic of each target object into a script file corresponding to the game according to the display sequence of each target object;
wherein, the characteristic parameter set of the target object comprises: pixel information of a reference region of the target object to be recognized, and pixel information of a non-reference region and relative coordinate values of the non-reference region relative to the reference region;
the identification function of the target object is specifically configured to: judging whether an area matched with the pixel information of the reference area exists in the current running interface or not during the running of the game; if so, determining the area matched with the pixel information of the reference area as a first area;
determining a second region corresponding to the first region according to the relative coordinate value of the non-reference region relative to the reference region; and judging whether the pixel information of the second area is matched with the pixel information of the non-reference area, and if so, identifying the object comprising the first area and the second area in the current operation interface as a target object.
The operating logic comprises: single click operation, double click operation, and slide operation.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a gaming on-hook device according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (16)

1. A gaming on-hook method, comprising:
predetermining each target object contained in a game running interface, and storing the identification logic and the operation logic of each target object into a script file corresponding to the game;
in the game running process, calling a script file corresponding to the game, and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file;
when the target object contained in the game running interface is identified, acquiring the operation logic of the target object from the script file, and executing the operation matched with the operation logic of the target object aiming at the target object contained in the game running interface;
the step of identifying the target object included in the game running interface according to the identification logic of each target object included in the script file specifically includes:
acquiring a characteristic parameter set of the target object through an identification function of the target object contained in the script file, and identifying the target object contained in the game running interface according to the characteristic parameter set;
wherein, the characteristic parameter set of the target object comprises: pixel information of a reference region of the target object to be recognized, and pixel information of a non-reference region and relative coordinate values of the non-reference region relative to the reference region;
and the identification function of the target object is specifically configured to: judging whether an area matched with the pixel information of the reference area exists in the current running interface or not during the running of the game; if so, determining the area matched with the pixel information of the reference area as a first area;
determining a second region corresponding to the first region according to the relative coordinate value of the non-reference region relative to the reference region; and judging whether the pixel information of the second area is matched with the pixel information of the non-reference area, and if so, identifying the object comprising the first area and the second area in the current operation interface as a target object.
2. The method of claim 1, wherein the step of storing the identification logic and the operation logic of each object in a script file corresponding to the game specifically comprises:
and storing the identification logic and the operation logic of each target object into a script file corresponding to the game through a preset script input interface.
3. The method according to claim 1, wherein the characteristic parameter set of the target object is stored on a preset cloud server, and the identification function of the target object is stored in a preset function library.
4. The method according to claim 3, wherein the method further comprises the step of:
and after the target object is updated, updating the characteristic parameter set of the target object stored on the cloud server according to the updated target object.
5. The method according to any of claims 1-4, wherein the method further comprises the step of: the step of storing the identification logic and the operation logic of each object in a script file corresponding to the game specifically includes the following steps:
and sequentially storing the identification logic and the operation logic of each object into a script file corresponding to the game according to the display sequence of each object.
6. The method of any of claims 1-4, wherein the operating logic comprises: single click operation, double click operation, and slide operation.
7. A gaming on-hook device comprising:
the storage module is suitable for predetermining each object contained in the game running interface and storing the identification logic and the operation logic of each object into a script file corresponding to the game;
the calling module is suitable for calling a script file corresponding to the game in the game running process and identifying the target objects contained in the game running interface according to the identification logic of each target object contained in the script file;
the operation module is suitable for acquiring the operation logic of the object from the script file when the object contained in the game running interface is identified, and executing the operation matched with the operation logic of the object aiming at the object contained in the game running interface;
wherein the calling module is further adapted to:
acquiring a characteristic parameter set of the target object through an identification function of the target object contained in the script file, and identifying the target object contained in the game running interface according to the characteristic parameter set;
wherein, the characteristic parameter set of the target object comprises: pixel information of a reference region of the target object to be recognized, and pixel information of a non-reference region and relative coordinate values of the non-reference region relative to the reference region;
and the identification function of the target object is specifically configured to: judging whether an area matched with the pixel information of the reference area exists in the current running interface or not during the running of the game; if so, determining the area matched with the pixel information of the reference area as a first area;
determining a second region corresponding to the first region according to the relative coordinate value of the non-reference region relative to the reference region; and judging whether the pixel information of the second area is matched with the pixel information of the non-reference area, and if so, identifying the object comprising the first area and the second area in the current operation interface as a target object.
8. The apparatus of claim 7, wherein the apparatus further comprises:
and the script input interface is suitable for the storage module to store the identification logic and the operation logic of each target object into a script file corresponding to the game through the script input interface.
9. The device according to claim 7, wherein the characteristic parameter set of the target object is stored on a preset cloud server; and the identification function of the target object is stored in a preset function library.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the cloud updating module is suitable for updating the characteristic parameter set of the target object stored on the cloud server according to the updated target object after the target object is updated.
11. The apparatus of any of claims 7-10, wherein the apparatus further comprises:
the display presetting module is suitable for predetermining the display sequence of each target object contained in the game running interface;
the storage module is further adapted to: and sequentially storing the identification logic and the operation logic of each object into a script file corresponding to the game according to the display sequence of each object.
12. The apparatus of any of claims 7-10, wherein the operating logic comprises: single click operation, double click operation, and slide operation.
13. A gaming on-hook system, comprising:
the gaming on-hook device of any of claims 7-12, and a cloud server.
14. The system of claim 13, wherein the cloud server has stored therein a set of characteristic parameters of a target object.
15. A computing device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is adapted to store at least one executable instruction that causes the processor to perform operations corresponding to the game hang-up method of any one of claims 1-6.
16. A computer storage medium having stored therein at least one executable instruction that causes a processor to perform operations corresponding to the game hang-up method of any one of claims 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 CN107569851A (en) 2018-01-12
CN107569851B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108992923B (en) * 2018-06-22 2019-09-13 腾讯科技(深圳)有限公司 Resource allocation method and device, storage medium and electronic device

Citations (3)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8313377B2 (en) * 2009-10-14 2012-11-20 Sony Computer Entertainment America Llc Playing browser based games with alternative controls and interfaces
US9174118B1 (en) * 2012-08-20 2015-11-03 Kabum, Inc. System and method for detecting game client modification through script injection

Patent Citations (3)

* 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
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;《软件》;20040531;第87-88页 *

Also Published As

Publication number Publication date
CN107569851A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
JP2022051900A5 (en)
CN107569851B (en) Game on-hook method, device and system
CN107563201B (en) Associated sample searching method and device based on machine learning and server
CN107368410A (en) The performance test methods and device of game engine, storage medium and electronic installation
CN110354506B (en) Game operation method and device
CN110807545A (en) Task duration estimation method and device, electronic equipment and storage medium
CN109710362B (en) Screenshot processing method, computing device and computer storage medium
EP3905204A1 (en) Scene recognition method and apparatus, terminal, and storage medium
CN107577943B (en) Sample prediction method and device based on machine learning and server
CN115309516A (en) Application life cycle detection method and device and computer equipment
JP2021083912A5 (en)
CN106201679A (en) Information processing method and electronic equipment
CN113262466A (en) Vibration control method and device, mobile terminal and storage medium
US20140369610A1 (en) Image search system, image search method, image search device, program, and information recording medium
CN113617031A (en) Method and device for replacing role equipment in game and electronic equipment
CN108390916B (en) Picture downloading method and terminal
CN112973122A (en) Game role makeup method and device and electronic equipment
CN108553904A (en) A kind of game matching process, device, electronic equipment and medium
CN112084386A (en) Cloud hosting client information management method and device and server
CN107590493B (en) Target object identification method and device based on game scene
US11782850B2 (en) Information processing method, server, terminal, and computer storage medium
CN111973985B (en) Event processing method and device based on sequence, electronic equipment and storage medium
CN113656549A (en) Content searching method of electronic book, electronic device and computer storage medium
CN108721897B (en) Game material display method and device, computing equipment and computer storage medium
CN112990830A (en) Role switching method and device in file access process and computing equipment

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