CN105771241A - Matching processing method and device of game window - Google Patents

Matching processing method and device of game window Download PDF

Info

Publication number
CN105771241A
CN105771241A CN201410818135.9A CN201410818135A CN105771241A CN 105771241 A CN105771241 A CN 105771241A CN 201410818135 A CN201410818135 A CN 201410818135A CN 105771241 A CN105771241 A CN 105771241A
Authority
CN
China
Prior art keywords
name
game
game application
window
mapping table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410818135.9A
Other languages
Chinese (zh)
Inventor
王有存
袁威
李林
张菊元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410818135.9A priority Critical patent/CN105771241A/en
Publication of CN105771241A publication Critical patent/CN105771241A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a matching processing method and a matching processing device of a game window, relating to the field of information technologies, mainly aiming at improving the processing efficiency for the game window. The main technical scheme is as follows: the matching processing method comprises the following steps: firstly acquiring a process name corresponding to a game application when receiving a game application starting command, then acquiring a game application ID corresponding to the process name from a preset mapping table, then acquiring a process name and a window class name corresponding to the game ID from the preset mapping table according to the game application ID, finally, detecting that whether a process name and a window class name corresponding to a game application running on the current interface are respectively matched with the process name and the window class name corresponding to the game ID or not, if so, acquiring a window handle corresponding to the game application running on the current interface, and if a trigger instruction for a preset shortcut key is available, carrying out preset operation on the window corresponding to the window handle. The method and the device are mainly used for carrying out matching processing on the game window.

Description

The matched processing method of games window and device
Technical field
The present invention relates to a kind of areas of information technology, particularly relate to the matching treatment of a kind of games window Method and apparatus.
Background technology
Along with the fast development of information technology, the kind of electronic game also gets more and more, incident Game player the most day by day increases.For meeting the game experiencing requirement of game player, there is game auxiliary merit The software of energy also gets more and more.Wherein, game miscellaneous function includes that sectional drawing, games window are hidden, clearly Manage internal memory, check the functions such as cpu temperature.
At present, client game application huge number on the market, wherein, great majority game application Hold game application miscellaneous function, such as, support games window hidden function.But, every a game Application is equipped with respective games window and hides shortcut so that for difference game application, all need First to obtain the certain window function shortcut corresponding with this game application, could perform this game The corresponding operating of window, thus cause the operating efficiency to games window relatively low.
Summary of the invention
In view of this, the present invention provides matched processing method and the device of a kind of games window, main mesh Be improve treatment effeciency to games window.
According to one aspect of the invention, it is provided that the matched processing method of a kind of games window, including:
When receiving game application startup order, obtain the process name that described game application is corresponding;
The game application ID corresponding with described process name is obtained from preset mapping table, and according to described Game application ID, obtains described process name corresponding for game ID and window class from described preset mapping table Name, preserves different process name the most corresponding for game application ID and window class in described preset mapping table Name;
Process name that game application that detection current interface is run is corresponding and window class name the most respectively with institute State process name corresponding for game ID and window class name coupling;
If coupling, then obtain the window handle that the game application of current interface operation is corresponding;
When there is the triggering command to preset shortcut key, the window corresponding with described window handle is held The preset operation of row.
According to another aspect of the invention, it is provided that the matching treatment device of a kind of games window, including:
Acquiring unit, when being used for receiving game application startup order, obtains described game application correspondence Process name;
Described acquiring unit, is additionally operable to from preset mapping table obtain the game corresponding with described process name Application ID, and according to described game application ID, from described preset mapping table, obtain described game ID Corresponding process name and window class name, preserve different game application ID respectively in described preset mapping table Corresponding process name and window class name;
Detector unit, for detecting process name and the window class of the game application correspondence that current interface is run Name is mated with described process name corresponding for game ID and window class name the most respectively;
Described acquiring unit, if being additionally operable to corresponding the entering of application that detector unit detection current interface is run Journey name is mated with described process name corresponding for game ID and window class name respectively with window class name, then obtain The window handle of the game application correspondence that current interface is run;
Performance element, for when existing the triggering command of preset shortcut key, to described window sentence The window that handle is corresponding performs preset operation.
By technique scheme, the technical scheme that the embodiment of the present invention provides at least has the advantage that
The matched processing method of the games window that the present invention provides and device, open when receiving game application During dynamic order, first obtain the process name that described game application is corresponding, then obtain from preset mapping table Take the game application ID corresponding with described process name, further according to described game application ID, from described preset Mapping table obtains described process name corresponding for game ID and window class name, finally detection current interface fortune Process name corresponding to the game application of row and window class name the most respectively with described process corresponding for game ID Name and window class name mate, if mating, then obtain the window of the game application correspondence that current interface is run Handle, when there is the triggering command to preset shortcut key, to the window corresponding with described window handle Perform preset operation.From currently for different game application, it is required for first obtaining and applies with this game Corresponding certain window function shortcut, could perform to compare the corresponding operating of this games window, this Difference directly can be played by preset same shortcut by inventive embodiments according to matching condition Application window performs corresponding function operation, thus improves the treatment effeciency to games window, it is provided that more Good user's game experiencing.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the present invention's Technological means, and can being practiced according to the content of description, and in order to allow the above-mentioned of the present invention and Other objects, features and advantages can become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit for Those of ordinary skill in the art will be clear from understanding.Accompanying drawing is only used for illustrating the mesh of preferred implementation , and it is not considered as limitation of the present invention.And in whole accompanying drawing, with identical reference symbol Number represent identical parts.In the accompanying drawings:
Fig. 1 shows the matched processing method of a kind of games window of the embodiment of the present invention;
Fig. 2 shows the matched processing method of embodiment of the present invention another kind games window;
Fig. 3 shows the matching treatment device of a kind of games window of the embodiment of the present invention;
Fig. 4 shows the matching treatment device of embodiment of the present invention another kind games window.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although it is aobvious in accompanying drawing Show the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure And should not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to more Thoroughly understand the disclosure, and can be by the technology conveying to this area complete for the scope of the present disclosure Personnel.
Advantage for making technical solution of the present invention is clearer, below in conjunction with the accompanying drawings with embodiment to this Bright elaborate.
Embodiments provide the matched processing method of a kind of games window, as it is shown in figure 1, institute The method of stating includes:
When 101, receiving game application startup order, obtain the process name that described game application is corresponding.
For the embodiment of the present invention, game application starts order and is specifically as follows user by input user The operation of name and code entry game applications client carries out indicating.Described acquisition described game application Corresponding process name specifically may include that the ruuning situation by driving monitoring process, gets current The process name that running game application is corresponding.
102, from preset mapping table, the game application ID corresponding with described process name is obtained, and according to Described game application ID, obtains described process name corresponding for game ID and window from described preset mapping table Mouth class name.
Wherein, described preset mapping table can be to pre-set or for configuring in real time, the most permissible Configuring according to the actual requirements, the embodiment of the present invention does not limits.This table is preserved different game The process name of application ID correspondence respectively and window class name.Described game application ID can be according to actual need Asking and carry out self-defined, game application ID corresponding to different game are different.One game application The corresponding multiple process names of ID, the corresponding multiple window class names of process name.
For the embodiment of the present invention, step 102 specifically may include that from preset mapping table search with The process name that the process name that in step 101, the described game application of acquisition is corresponding matches, obtains and is somebody's turn to do The game application ID that process name is corresponding, then searches corresponding with this game ID from described preset mapping table Process name and window class name.
Whether process name and the window class name of the game application correspondence that 103, detection current interface is run are distinguished Mate with described process name corresponding for game ID and window class name.
For the embodiment of the present invention, owing to some games window class name each run has localized variation, When same application of playing is by different canal's moving, the process name of game application correspondence also can be inconsistent, For meeting process name or the window class name of above-mentioned situation, can be by revising in preset mapping table Journey name or window class name, the position different at process name or window class name replaced by asterisk wildcard, Wherein, asterisk wildcard can be * or?Deng.
Such as, when in preset mapping table, some game application is by different canal's moving, process status Not Wei haowan1.exe, haowan2.exe, haowan3.exe, then can in preset mapping table with Process name haowan*.exe unified representation process name haowan1.exe, process name haowan2.exe, enter Journey name haowan3.exe, now if be detected that process name corresponding to the application that runs of current interface and window Mouthful class name is respectively haowan2.exe and hwWindow, and finds in preset mapping table and have process name Haowan*.exe and the data of window class name hwWindow, then the application correspondence that current interface is run Process name and window class name coupling that process name is corresponding with game ID respectively with window class name are successful. Therefore represent that process name and window class name can reduce the data in preset mapping table with the form of asterisk wildcard Amount, improves the operational efficiency of game miscellaneous function.
If 104 couplings, then obtain the window handle that the game application of current interface operation is corresponding.
Such as, the process name of the application correspondence that the current interface obtained in step 103 is run and window class Name is respectively as follows: haowan.exe and hwWindow, looks into according to the process name got and window class name Look for process name corresponding in preset mapping table and window class name data, if finding in preset mapping table The entitled haowan.exe of process and window class name hwWindow, then the match is successful.
105, when there is the triggering command to preset shortcut key, to the window corresponding with described window handle Mouth performs preset operation.
For the embodiment of the present invention, preset shortcut key can be configured according to the actual requirements by user, Such as, preset shortcut key is configured to enter key, some digital keys, some alphabet key etc.. The triggering command of preset shortcut key is specifically as follows the click of preset shortcut key or striking preset secondary Number.Preset operation is specifically as follows and performs the miscellaneous function that game application runs, such as, to current trip Play application window is hidden or shows, going game application window is carried out shot operation etc., this Bright embodiment does not limits.
The matched processing method of a kind of games window that the embodiment of the present invention provides, should when receiving game With when starting order, first obtain the process name that described game application is corresponding, then from preset mapping table The game application ID that middle acquisition is corresponding with described process name, further according to described game application ID, from described Obtaining described process name corresponding for game ID and window class name in preset mapping table, prezone is worked as in finally detection The process name of the game application correspondence that face is run is corresponding with described game ID the most respectively with window class name Process name and window class name coupling, if mating, then obtain the game application correspondence of current interface operation Window handle, when there is the triggering command to preset shortcut key, to corresponding with described window handle Window performs preset operation.From currently for different game application, it is required for first obtaining and this game The certain window function shortcut that application is corresponding, could perform to compare the corresponding operating of this games window, Difference directly can be swum by preset same shortcut by the embodiment of the present invention according to matching condition Play application window performs corresponding function operation, thus improves the treatment effeciency to games window, it is provided that Preferably user's game experiencing.
Further, embodiments provide the matched processing method of another kind of games window, as Shown in Fig. 2, described method includes:
When 201, receiving game application startup order, obtain the process name that described game application is corresponding.
For the embodiment of the present invention, game application starts order and is specifically as follows user by input user Name and code entry game applications client carry out indicating.Step 201 specifically may include that reception During to game application startup order, obtain process name corresponding to described game application and process path.
Specifically, when receiving game application startup order, can be by the fortune by driving monitoring process Market condition, obtains process name and the process path of going game application.
202, from preset mapping table, the game application ID corresponding with described process name is obtained, and according to Described game application ID, obtains described process name corresponding for game ID and window from described preset mapping table Mouth class name.
Wherein, described preset mapping table can be to pre-set or for configuring in real time, the most permissible Configuring according to the actual requirements, the embodiment of the present invention does not limits.This table is preserved different game The process name of application ID correspondence respectively and window class name.Described game application ID can be according to actual need Asking and carry out self-defined, game application ID corresponding to different game are different.One game application The corresponding multiple process names of ID, the corresponding multiple window class names of process name.
Further, described preset mapping table can also be preserved different game application ID correspondence respectively Process path.Now, the described game that acquisition is corresponding with described process name from preset mapping table should Include with ID: obtain corresponding with described process name and described process path from described preset mapping table Game application ID.The embodiment of the present invention obtains game application ID by process name and process path, permissible Improve the accuracy rate obtaining game application ID further.
Such as, preset mapping table has game application 1 and game application 2 and game application 1 and trip Whole process names of play application 2 correspondences all include identical process name xxl.exe, if starting trip Play application 1, gets the entitled xxl.exe of process of game application 1 correspondence, the process name that will get Process name in xxl.exe and preset mapping table matches, then there will be the game application ID matched There are game application 1 and 2 two game ID of game application, therefore can be difficult to determine the game application of correspondence ID.By obtain process name corresponding to game application and process path and the process name in preset mapping table and When process road is mated, if there is when being difficult to determine the game application ID of correspondence with process name, then Process path is being mated, the acquisition of game application ID will made to be difficult to that mistake occurs, accuracy rate High.
For the embodiment of the present invention, from described preset mapping table obtain with described process name and described enter The game application ID that journey path is corresponding, and according to described game application ID, from described preset mapping table Process name and window class name that middle acquisition described game ID is corresponding specifically may include that from preset mapping table Process name and process path that middle lookup is corresponding with the described game application obtained in step 201 match Process name and process path, obtain the game application ID corresponding with this process name and process path, so After from described preset mapping table, search the process name corresponding with this game ID and window class name.
For the embodiment of the present invention, described preset mapping table can also be divided into preset mapping table one with pre- Put mapping table two.Now, described from described preset mapping table obtain with described process name and described enter Game application ID corresponding to journey path includes: obtain and described process name and institute from preset mapping table one State the game application ID that process path is corresponding;Described from described preset mapping table, obtain described game ID Corresponding process name includes with window class name: obtain corresponding with described game ID from preset mapping table two Process name and window class name.
Wherein, described preset mapping table one is preserved different game application ID respectively corresponding whole enter Journey name and process path, preserve different key the most corresponding for game ID in described preset mapping table two Process name and crucial window class name.Described critical processes name and crucial window class name refer in game application During operation, need to enable process name and the window class name that game miscellaneous function carries out coordinating.
For the embodiment of the present invention, owing to preserve in described preset mapping table two divides for difference game ID Not corresponding critical processes name and crucial window class name rather than all process name and window class name, can So that the data volume preserved in preset mapping table two is less, thus carry out Data Matching lookup follow-up Time, the data volume made a look up needed for reduction, improves data acquisition and search efficiency.
For the embodiment of the present invention, obtain and described process name and described process from preset mapping table one The game application ID that path is corresponding, and according to described game application ID, obtain from preset mapping table two Take and specifically may include that from preset mapping table one with described process name corresponding for game ID and window class name Process name and process path that middle lookup is corresponding with the described game application obtained in step 201 match Process name and process path, obtain the game application ID corresponding with this process name and process path, so After from described preset mapping table, two search the process name corresponding with this game ID and window class name.This Bright embodiment can determine game process ID accurately according to process name and process path, and according to preset The critical processes name of process ID correspondence of playing in mapping table two preservation and critical processes path, can be quick Enable game auxiliary operation function, improve the operation accuracy of game auxiliary operation function and run effect Rate.
Whether process name and the window class name of the game application correspondence that 203, detection current interface is run are distinguished Mate with described process name corresponding for game ID and window class name.
For the embodiment of the present invention, owing to some games window class name each run has localized variation, When same application of playing is by different canal's moving, the process name of game application correspondence also can be inconsistent, For meeting process name or the window class name of above-mentioned situation, can be by revising in preset mapping table Journey name or window class name, the position different at process name or window class name replaced by asterisk wildcard, Such as, asterisk wildcard can be * or?Deng.
Such as, when in preset mapping table, some game application is by different canal's moving, process status Not Wei wanlele1.exe, wanlele2.exe, wanlele3.exe, then can in preset mapping table with Wanlele*.exe unified representation process name haowan1.exe, process name haowan2.exe, process name Haowan3.exe, now if be detected that process name corresponding to the application that runs of current interface and window class Name is respectively wanlele2.exe and hwWindow, and finds the process having correspondence in preset mapping table Name wanlele*.exe and the data of window class name hwWindow, then the application that current interface is run is right Process name and window class name coupling that the process name answered is corresponding with game ID respectively with window class name are successfully 's.Therefore process name and window class name are represented with the form of asterisk wildcard, it is possible to reduce in preset mapping table Data volume, improve game auxiliary operation function operational efficiency.
Specifically, step 203 may include that according to the second preset time interval detection current interface fortune Process name and the window class name of the game application of row the most respectively with described process name corresponding for game ID and Window class name mates.
Wherein, described second preset time interval can configure according to the actual requirements, and the present invention is real Execute example not limit.Such as, the second preset time interval is set to 1 second, 2 seconds etc..Arrange second Preset time interval can the process name of detection current interface application of timing and window class name and preset mapping Whether process name and window class name in table mate, to guarantee that game auxiliary is run according to corresponding process Name and window class name show at game application interface, if going game application is switched to other application, Close game miscellaneous function, to avoid the display of game miscellaneous function mistake at non-gaming application interface.
If 204 couplings, then obtain the window handle that the game application of current interface operation is corresponding.
Such as, the process name of the application correspondence that the current interface obtained in step 203 is run and window class Name is respectively as follows: game.exe and gameWindow, looks into according to the process name got and window class name Look for process name corresponding in preset mapping table and the data of window class name, if searching in preset mapping table To process name game.exe and window class name gameWindow, then the match is successful.
Further, it is also possible at current interface display striking preset shortcut key pair and described window handle Corresponding window performs the text prompt information of preset operation, or play striking preset shortcut key pair with The window that described window handle is corresponding performs preset operation audio prompt information or visual prompts information Deng.
205, when there is the triggering command to preset shortcut key, to the window corresponding with described window handle Mouth performs preset operation.
For the embodiment of the present invention, preset shortcut key can be configured according to the actual requirements by user, Such as, preset shortcut key is configured to enter key, some digital keys, some alphabet key etc.. The triggering command of preset shortcut key is specifically as follows the click of preset shortcut key or striking preset secondary Number.Preset operation is specifically as follows and performs the miscellaneous function that game application runs, such as, to current trip Play application window is hidden or shows, going game application window is carried out shot operation etc., this Bright embodiment does not limits.
206, described preset mapping table is updated according to the first preset time interval.
Wherein, described first preset time interval can configure according to the actual requirements, and the present invention is real Execute example not limit.Such as, the first preset time interval is set to 1 hour, 3 hours, 5 hours, 10 hours etc..The preset mapping table of described renewal refers to be updated the data in preset mapping table, Increase and deletion etc., such as, newly increase the game application ID process name corresponding with this game application ID With window class name, original process name corresponding for game application ID and the change of window class name, increase or delete Remove etc. and to be required for updating data corresponding in preset mapping table timely.
For the embodiment of the present invention, update described preset mapping table according to the first preset time interval, can Being updated the content-data in preset mapping table of timing, with the data one in satisfied game application Causing, the game that enables that thus can be real-time assists operation function.Such as, the first preset time interval Be set to 2 hours, then whether that checked in game application every 1 hour changes, then according to trip The change of play application upgrades in time data corresponding in preset mapping table.
Specifically, described preset mapping table two is updated according to the first preset time interval.For the present invention Embodiment, process name in described preset mapping table two and window class name can data volume few and often go out Now change, so preset mapping table two can be improved the effect of renewal according to the first preset time interval renewal Rate.Such as, when finding the window class name renewal of certain game application correspondence, then only need to reflect from preset Firing table two find the data of correspondence and is updated, improving data updating efficiency.
The matched processing method of the another kind of games window that the embodiment of the present invention provides, when receiving game When application starts order, first obtain the process name that described game application is corresponding, then from preset mapping Table obtains the game application ID corresponding with described process name, further according to described game application ID, from institute Stating and obtain described process name corresponding for game ID and window class name in preset mapping table, finally detection is current The process name of the game application correspondence that interface is run is corresponding with described game ID the most respectively with window class name Process name and window class name coupling, if coupling, then obtain current interface run game application correspondence Window handle, when existing the triggering command of preset shortcut key, to corresponding with described window handle Window perform preset operation.From currently for different game application, it is required for first obtaining and this trip The certain window function shortcut that play application is corresponding, could perform the corresponding operating phase to this games window Ratio, can directly pass through preset same shortcut to not in the embodiment of the present invention according to matching condition Perform corresponding function operation with game application window, thus improve the treatment effeciency to games window, More preferable user's game experiencing is provided.
The embodiment of the present invention provides the matching treatment device of a games window, as it is shown on figure 3, described trip The running gear of play miscellaneous function includes: acquiring unit 301, detector unit 302, performance element 303.
Acquiring unit 301, when being used for receiving game application startup order, obtains described game application right The process name answered;
Described acquiring unit 301, is additionally operable to from preset mapping table obtain the trip corresponding with described process name Play application ID, and according to described game application ID, from described preset mapping table, obtain described game Process name that ID is corresponding and window class name, preserve different game application ID and divide in described preset mapping table Not corresponding process name and window class name;
Detector unit 302, for detecting process name and the window of the game application correspondence that current interface is run Class name mates with described process name corresponding for game ID and window class name the most respectively;
Described acquiring unit 301, if be additionally operable to detector unit 302 detect current interface run application right The process name answered mates with described process name corresponding for game ID and window class name respectively with window class name, Then obtain the window handle of the game application correspondence that current interface is run;
Performance element 303, for when existing the triggering command of preset shortcut key, to described window The window that handle is corresponding performs preset operation.
It should be noted that the matching treatment device institute of a kind of games window of embodiment of the present invention offer Other relating to each functional unit describe accordingly, the corresponding description being referred in method shown in Fig. 1, Do not repeat them here.
The matching treatment device of a kind of games window that the embodiment of the present invention provides, should when receiving game With when starting order, first obtain the process name that described game application is corresponding, then from preset mapping table The game application ID that middle acquisition is corresponding with described process name, further according to described game application ID, from described Obtaining described process name corresponding for game ID and window class name in preset mapping table, prezone is worked as in finally detection The process name of the game application correspondence that face is run is corresponding with described game ID the most respectively with window class name Process name and window class name coupling, if mating, then obtain the game application correspondence of current interface operation Window handle, when there is the triggering command to preset shortcut key, to corresponding with described window handle Window performs preset operation.From currently for different game application, it is required for first obtaining and this game The certain window function shortcut that application is corresponding, could perform to compare the corresponding operating of this games window, Difference directly can be swum by preset same shortcut by the embodiment of the present invention according to matching condition Play application window performs corresponding function operation, thus improves the treatment effeciency to games window, it is provided that Preferably user's game experiencing.
The embodiment of the present invention provides the matching treatment device of another kind of games window, as shown in Figure 4, institute The running gear stating game miscellaneous function includes: acquiring unit 401, detector unit 402, performance element 403, updating block 404.
Acquiring unit 401, when being used for receiving game application startup order, obtains described game application right The process name answered;
Described acquiring unit 401, is additionally operable to from preset mapping table obtain the trip corresponding with described process name Play application ID, and according to described game application ID, from described preset mapping table, obtain described game Process name that ID is corresponding and window class name, preserve different game application ID and divide in described preset mapping table Not corresponding process name and window class name;
Detector unit 402, for detecting process name and the window of the game application correspondence that current interface is run Class name mates with described process name corresponding for game ID and window class name the most respectively;
Described acquiring unit 401, if be additionally operable to detector unit 402 detect current interface run application right The process name answered mates with described process name corresponding for game ID and window class name respectively with window class name, Then obtain the window handle of the game application correspondence that current interface is run;
Performance element 403, for when existing the triggering command of preset shortcut key, to described window The window that handle is corresponding performs preset operation.
For the embodiment of the present invention, described preset operation includes hiding or display.Described preset mapping Table is also preserved different process path the most corresponding for game application ID.
Further, described acquiring unit 401, the process corresponding specifically for obtaining described game application Name and process path;
Described acquiring unit 401, is specifically additionally operable to from described preset mapping table obtain and described process name The game application ID corresponding with described process path.
Further, described updating block 404, for updating described pre-according to the first preset time interval Put mapping table.
For the embodiment of the present invention, described acquiring unit 401 is specifically additionally operable to: from preset mapping table one The game application ID that middle acquisition is corresponding with described process name and described process path, described preset mapping table Different whole process names the most corresponding for game application ID and process path is preserved in one;Reflect from preset Firing table two obtains and described process name corresponding for game ID and window class name, described preset mapping table two In preserve different critical processes name the most corresponding for game ID and crucial window class name.
Further, described updating block 404, specifically for updating institute according to the first preset time interval State preset mapping table two.
Further, described detector unit 402, specifically for working as according to the second preset time interval detection The process name of the game application that front interface runs is corresponding with described game ID the most respectively with window class name Process name and window class name coupling.
It should be noted that the matching treatment device of the another kind of games window of embodiment of the present invention offer Other of involved each functional unit describe accordingly, the corresponding description being referred in method shown in Fig. 2, Do not repeat them here.
The matching treatment device of the another kind of games window that the embodiment of the present invention provides, when receiving game When application starts order, first obtain the process name that described game application is corresponding, then from preset mapping Table obtains the game application ID corresponding with described process name, further according to described game application ID, from institute Stating and obtain described process name corresponding for game ID and window class name in preset mapping table, finally detection is current The process name of the game application correspondence that interface is run is corresponding with described game ID the most respectively with window class name Process name and window class name coupling, if coupling, then obtain current interface run game application correspondence Window handle, when existing the triggering command of preset shortcut key, to corresponding with described window handle Window perform preset operation.From currently for different game application, it is required for first obtaining and this trip The certain window function shortcut that play application is corresponding, could perform the corresponding operating phase to this games window Ratio, can directly pass through preset same shortcut to not in the embodiment of the present invention according to matching condition Perform corresponding function operation with game application window, thus improve the treatment effeciency to games window, More preferable user's game experiencing is provided.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment The part being described in detail, may refer to the associated description of other embodiments.
It is understood that the correlated characteristic in said method and device can mutually reference.It addition, " first ", " second " in above-described embodiment etc. are for distinguishing each embodiment, and do not represent each enforcement The quality of example.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, above-mentioned The system described, the specific works process of device and unit, it is referred in preceding method embodiment Corresponding process, does not repeats them here.
Provided herein algorithm and display not with any certain computer, virtual system or miscellaneous equipment Intrinsic relevant.Various general-purpose systems can also be used together with based on teaching in this.According to above Describe, construct the structure required by this kind of system and be apparent from.Additionally, the present invention is also not for Any certain programmed language.It is understood that, it is possible to use various programming languages realize described here The content of invention, and the description above done language-specific is to disclose the optimal real of the present invention Execute mode.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that Embodiments of the invention can be put into practice in the case of not having these details.In some instances, It is not shown specifically known method, structure and technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand in each inventive aspect Individual or multiple, above in the description of the exemplary embodiment of the present invention, each feature of the present invention Sometimes it is grouped together in single embodiment, figure or descriptions thereof.But, should be by The method of the disclosure is construed to reflect an intention that i.e. the present invention for required protection requires that ratio is each The more feature of feature being expressly recited in claim.More precisely, as following right is wanted As asking book to be reflected, inventive aspect is all spies less than single embodiment disclosed above Levy.Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this specific embodiment party Formula, the most each claim itself is as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment Adaptively change and they are arranged in one or more equipment different from this embodiment. Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and In addition multiple submodule or subelement or sub-component can be put them into.Except such feature and/or Outside at least some in process or unit excludes each other, any combination can be used this explanation All features disclosed in book (including adjoint claim, summary and accompanying drawing) and the openest Any method or all processes of equipment or unit be combined.Unless expressly stated otherwise, originally Each feature disclosed in description (including adjoint claim, summary and accompanying drawing) can be by carrying Alternative features for identical, equivalent or similar purpose replaces.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include Some feature included in other embodiments rather than further feature, but the feature of different embodiment Combination mean to be within the scope of the present invention and formed different embodiments.Such as, under In the claims in face, embodiment required for protection one of arbitrarily can be in any combination Mode uses.
The all parts embodiment of the present invention can realize with hardware, or with at one or more The software module run on reason device realizes, or realizes with combinations thereof.Those skilled in the art Should be appreciated that and microprocessor or digital signal processor (DSP) can be used in practice to realize In the matched processing method of games window according to embodiments of the present invention and device some or All some or all functions of parts.The present invention is also implemented as performing described here Part or all equipment of method or (such as, computer program and the calculating of device program Machine program product).The program of such present invention of realization can store on a computer-readable medium, or Person can be to have the form of one or more signal.Such signal can be upper and lower from internet website Load obtains, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the present invention to it should be noted above-described embodiment Make, and those skilled in the art can design without departing from the scope of the appended claims Alternative embodiment.In the claims, any reference marks that should not will be located between bracket is configured to Limitations on claims.Word " comprises " and does not excludes the presence of the element or step not arranged in the claims Suddenly.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such element.The present invention And can come real by means of properly programmed computer by means of including the hardware of some different elements Existing.If in the unit claim listing equipment for drying, several in these devices can be logical Cross same hardware branch specifically to embody.Word first, second and third use do not indicate that Any order.Can be title by these word explanations.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment The part being described in detail, may refer to the associated description of other embodiments.
The invention discloses A1, the matched processing method of a kind of games window, including:
When receiving game application startup order, obtain the process name that described game application is corresponding;
The game application ID corresponding with described process name is obtained from preset mapping table, and according to described Game application ID, obtains described process name corresponding for game ID and window class from described preset mapping table Name, preserves different process name the most corresponding for game application ID and window class in described preset mapping table Name;
Process name that game application that detection current interface is run is corresponding and window class name the most respectively with institute State process name corresponding for game ID and window class name coupling;
If coupling, then obtain the window handle that the game application of current interface operation is corresponding;
When there is the triggering command to preset shortcut key, the window corresponding with described window handle is held The preset operation of row.
A2, method as described in A1, also preserve different game application ID in described preset mapping table Respectively corresponding process path, described in receive game application when starting order, obtaining described game should Include with corresponding process name:
When receiving game application startup order, obtain process name corresponding to described game application and process Path;
Described from preset mapping table obtain the game application ID corresponding with described process name include:
Obtaining the game corresponding with described process name and described process path from described preset mapping table should Use ID.
A3, method as described in A1, described method also includes:
Described preset mapping table is updated according to the first preset time interval.
A4, method as described in A2 or A3, described obtain from described preset mapping table with described enter The game application ID that process path described in Cheng Minghe is corresponding includes:
The game application corresponding with described process name and described process path is obtained from preset mapping table one ID, described preset mapping table one is preserved different whole process names the most corresponding for game application ID and Process path;
Described from described preset mapping table, obtain described process name corresponding for game ID and window class name bag Include:
Obtain and described process name corresponding for game ID and window class name from preset mapping table two, described Preset mapping table two is preserved different critical processes name the most corresponding for game ID and crucial window class Name.
A5, method as described in A4, described update described preset mapping table according to preset time interval Including:
Described preset mapping table two is updated according to the first preset time interval.
A6, method as described in A1, the process name of the game application that described detection current interface is run Mate with described process name corresponding for game ID and window class name the most respectively with window class name and include:
The process name and window applied of playing run according to the second preset time interval detection current interface Class name mates with described process name corresponding for game ID and window class name the most respectively.
A7, method as described in any one of A1-A6, described preset operation includes hiding or display.
The invention discloses the matching treatment device of B8, a kind of games window, it is characterised in that including:
Acquiring unit, when being used for receiving game application startup order, obtains described game application correspondence Process name;
Described acquiring unit, is additionally operable to from preset mapping table obtain the game corresponding with described process name Application ID, and according to described game application ID, from described preset mapping table, obtain described game ID Corresponding process name and window class name, preserve different game application ID respectively in described preset mapping table Corresponding process name and window class name;
Detector unit, for detecting process name and the window class of the game application correspondence that current interface is run Name is mated with described process name corresponding for game ID and window class name the most respectively;
Described acquiring unit, if being additionally operable to corresponding the entering of application that detector unit detection current interface is run Journey name is mated with described process name corresponding for game ID and window class name respectively with window class name, then obtain The window handle of the game application correspondence that current interface is run;
Performance element, for when existing the triggering command of preset shortcut key, to described window sentence The window that handle is corresponding performs preset operation.
B9, device as described in B8, also preserve different game application ID in described preset mapping table The most corresponding process path,
Described acquiring unit, specifically for obtaining process name corresponding to described game application and process path;
Described acquiring unit, be specifically additionally operable to from described preset mapping table obtain with described process name and The game application ID that described process path is corresponding.
B10, device as described in B8, described device also includes:
Updating block, for updating described preset mapping table according to the first preset time interval.
B11, device as described in B9 or B10,
Described acquiring unit, is specifically additionally operable to from preset mapping table one obtain and described process name and institute State the game application ID that process path is corresponding, described preset mapping table one is preserved different game application Whole process names of ID correspondence respectively and process path;
Described acquiring unit, is specifically additionally operable to from preset mapping table two acquisition corresponding with described game ID Process name and window class name, described preset mapping table two is preserved different game ID the most corresponding Critical processes name and crucial window class name.
B12, device as described in B11,
Described updating block, specifically for updating described preset mapping table according to the first preset time interval Two.
B13, device as described in B8,
Described detector unit, specifically for run according to the second preset time interval detection current interface Process name and the window class name of application the most respectively with described process name corresponding for game ID and window class name Coupling.
B14, device as described in any one of B8-B13, described preset operation includes hidden Hide or display.

Claims (10)

1. the matched processing method of a games window, it is characterised in that including:
When receiving game application startup order, obtain the process name that described game application is corresponding;
The game application ID corresponding with described process name is obtained from preset mapping table, and according to described Game application ID, obtains described process name corresponding for game ID and window class from described preset mapping table Name, preserves different process name the most corresponding for game application ID and window class in described preset mapping table Name;
Process name that game application that detection current interface is run is corresponding and window class name the most respectively with institute State process name corresponding for game ID and window class name coupling;
If coupling, then obtain the window handle that the game application of current interface operation is corresponding;
When there is the triggering command to preset shortcut key, the window corresponding with described window handle is held The preset operation of row.
Method the most according to claim 1, it is characterised in that also protect in described preset mapping table Have different process path the most corresponding for game application ID, described in receive game application and start order Time, the process name obtaining described game application corresponding includes:
When receiving game application startup order, obtain process name corresponding to described game application and process Path;
Described from preset mapping table obtain the game application ID corresponding with described process name include:
Obtaining the game corresponding with described process name and described process path from described preset mapping table should Use ID.
Method the most according to claim 1, it is characterised in that described method also includes:
Described preset mapping table is updated according to the first preset time interval.
The most according to the method in claim 2 or 3, it is characterised in that described preset reflect from described Firing table obtains the game application ID corresponding with described process name and described process path include:
The game application corresponding with described process name and described process path is obtained from preset mapping table one ID, described preset mapping table one is preserved different whole process names the most corresponding for game application ID and Process path;
Described from described preset mapping table, obtain described process name corresponding for game ID and window class name bag Include:
Obtain and described process name corresponding for game ID and window class name from preset mapping table two, described Preset mapping table two is preserved different critical processes name the most corresponding for game ID and crucial window class Name.
Method the most according to claim 4, it is characterised in that described according to preset time interval Update described preset mapping table to include:
Described preset mapping table two is updated according to the first preset time interval.
6. the matching treatment device of a games window, it is characterised in that including:
Acquiring unit, when being used for receiving game application startup order, obtains described game application correspondence Process name;
Described acquiring unit, is additionally operable to from preset mapping table obtain the game corresponding with described process name Application ID, and according to described game application ID, from described preset mapping table, obtain described game ID Corresponding process name and window class name, preserve different game application ID respectively in described preset mapping table Corresponding process name and window class name;
Detector unit, for detecting process name and the window class of the game application correspondence that current interface is run Name is mated with described process name corresponding for game ID and window class name the most respectively;
Described acquiring unit, if being additionally operable to corresponding the entering of application that detector unit detection current interface is run Journey name is mated with described process name corresponding for game ID and window class name respectively with window class name, then obtain The window handle of the game application correspondence that current interface is run;
Performance element, for when existing the triggering command of preset shortcut key, to described window sentence The window that handle is corresponding performs preset operation.
Device the most according to claim 6, it is characterised in that also protect in described preset mapping table There is different process path the most corresponding for game application ID,
Described acquiring unit, specifically for obtaining process name corresponding to described game application and process path;
Described acquiring unit, be specifically additionally operable to from described preset mapping table obtain with described process name and The game application ID that described process path is corresponding.
Device the most according to claim 6, it is characterised in that described device also includes:
Updating block, for updating described preset mapping table according to the first preset time interval.
9. according to the device described in claim 7 or 8, it is characterised in that
Described acquiring unit, is specifically additionally operable to from preset mapping table one obtain and described process name and institute State the game application ID that process path is corresponding, described preset mapping table one is preserved different game application Whole process names of ID correspondence respectively and process path;
Described acquiring unit, is specifically additionally operable to from preset mapping table two acquisition corresponding with described game ID Process name and window class name, described preset mapping table two is preserved different game ID the most corresponding Critical processes name and crucial window class name.
Device the most according to claim 9, it is characterised in that
Described updating block, specifically for updating described preset mapping table according to the first preset time interval Two.
CN201410818135.9A 2014-12-24 2014-12-24 Matching processing method and device of game window Pending CN105771241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410818135.9A CN105771241A (en) 2014-12-24 2014-12-24 Matching processing method and device of game window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410818135.9A CN105771241A (en) 2014-12-24 2014-12-24 Matching processing method and device of game window

Publications (1)

Publication Number Publication Date
CN105771241A true CN105771241A (en) 2016-07-20

Family

ID=56377028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410818135.9A Pending CN105771241A (en) 2014-12-24 2014-12-24 Matching processing method and device of game window

Country Status (1)

Country Link
CN (1) CN105771241A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106975221A (en) * 2017-03-30 2017-07-25 武汉斗鱼网络科技有限公司 User terminal and game data live broadcast device and method
CN107080942A (en) * 2017-03-27 2017-08-22 长沙趣动文化科技有限公司 Games window matched processing method and system based on Unity3D
CN112256372A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN112370774A (en) * 2020-11-12 2021-02-19 网易(杭州)网络有限公司 Method and device for starting game in game accelerator
CN112435315A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Anti-threading method and device in game, electronic equipment and storage medium
CN112685700A (en) * 2020-12-30 2021-04-20 北京明朝万达科技股份有限公司 Process processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662738A (en) * 2012-03-15 2012-09-12 奇智软件(北京)有限公司 Multiprocessing management method and apparatus
CN103064704A (en) * 2012-12-19 2013-04-24 中国人民解放军第二炮兵装备研究院第四研究所 Software window product life-cycle management method based on process identification
CN103279816A (en) * 2013-04-27 2013-09-04 深信服网络科技(深圳)有限公司 Active window-based terminal work efficiency statistical method and system
CN103713945A (en) * 2013-12-17 2014-04-09 北京奇虎科技有限公司 Game identifying method and device
CN104063218A (en) * 2012-03-15 2014-09-24 北京奇虎科技有限公司 Management method aiming at processes of multiple applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662738A (en) * 2012-03-15 2012-09-12 奇智软件(北京)有限公司 Multiprocessing management method and apparatus
CN104063218A (en) * 2012-03-15 2014-09-24 北京奇虎科技有限公司 Management method aiming at processes of multiple applications
CN103064704A (en) * 2012-12-19 2013-04-24 中国人民解放军第二炮兵装备研究院第四研究所 Software window product life-cycle management method based on process identification
CN103279816A (en) * 2013-04-27 2013-09-04 深信服网络科技(深圳)有限公司 Active window-based terminal work efficiency statistical method and system
CN103713945A (en) * 2013-12-17 2014-04-09 北京奇虎科技有限公司 Game identifying method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张世全: "《小心!老板来了!——软件中的"老板键"》", 《电脑爱好者》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107080942A (en) * 2017-03-27 2017-08-22 长沙趣动文化科技有限公司 Games window matched processing method and system based on Unity3D
CN106975221A (en) * 2017-03-30 2017-07-25 武汉斗鱼网络科技有限公司 User terminal and game data live broadcast device and method
CN112256372A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN112256372B (en) * 2020-10-20 2023-12-26 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN112370774A (en) * 2020-11-12 2021-02-19 网易(杭州)网络有限公司 Method and device for starting game in game accelerator
CN112435315A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Anti-threading method and device in game, electronic equipment and storage medium
CN112685700A (en) * 2020-12-30 2021-04-20 北京明朝万达科技股份有限公司 Process processing method and device, electronic equipment and storage medium
CN112685700B (en) * 2020-12-30 2023-10-20 北京明朝万达科技股份有限公司 Method and device for processing progress, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105771241A (en) Matching processing method and device of game window
CN104050417B (en) A kind of method and device detected in mobile terminal to application state
CN105771238A (en) Operating method and device of game auxiliary functions
CN109359468A (en) Leak detection method, device and equipment
US20130275408A1 (en) Presenting Unique Search Result Contexts
CN104932980B (en) Software automatic testing method and device
CN103677527A (en) Suspension problem interaction control display method and device suitable for mobile terminal
CN105303100A (en) Verification method and device of application program startup
CN108353083A (en) The system and method for algorithm (DGA) Malware is generated for detecting domains
CN106407803A (en) Detection method and device of SQL (Structured Query Language) injection vulnerabilities
CN104462985A (en) Detecting method and device of bat loopholes
US20240152700A1 (en) List-based entity name detection
CN106708704A (en) Method and device for classifying crash logs
CN104102704B (en) System control methods of exhibiting and device
CN105468975B (en) Method for tracing, the apparatus and system of malicious code wrong report
CN105242856B (en) A kind of method and mobile terminal of mobile terminal multisystem data sharing
CN106486118A (en) A kind of sound control method of application and device
CN105260369A (en) Reading assisting method and electronic equipment
CN103713945B (en) The recognition methods of game and device
CN106650439A (en) Suspicious application program detection method and device
CN105553767B (en) Website backdoor file detection method and device
CN104503679A (en) Searching method and searching device based on terminal interface touch operation
CN106411899A (en) Security detection method and device for data files
CN106919315A (en) A kind for the treatment of method and apparatus of sectional drawing
CN105590058B (en) The detection method and device of virtual machine escape

Legal Events

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

Application publication date: 20160720