Summary of the invention
In view of this, technical problems to be solved in this application there is provided a kind of method based on client process propelling movement game information, system and client, by the information of games will run in the first client process, push to the second relevant client, make the propelling movement of game information be provided with social specific aim.
In order to solve the problems of the technologies described above, the application has following technical scheme:
Push a method for game information based on client process, it is characterized in that, comprising:
Server is in advance for games generating configuration file, and described configuration file is sent to client and preserves, described configuration file comprises the game identifier of described games;
Described client comprises the first client and the second client, and described first client associates with the second client existence;
In the local process of the first client, there are the games that described configuration file is corresponding, then server extracts the game identifier in described configuration file;
Described game identifier is pushed to the second client by server, to make described second client call corresponding configuration file according to described game identifier, and described second client is made to utilize described configuration file to generate and show the game information of games corresponding to described configuration file.
Further, wherein, described configuration file specifically comprises:
Game identifier, game name, process title, window name, game homepage, download link and storing path.
Further, wherein, in the local process of described first client, the games that there is described configuration file corresponding are specially:
Scan the local process list of described first client; If in described local process list, there is the process title of a local process, match with the process title in described configuration file; Then think the first client local process in there are games corresponding to described configuration file.
Further, wherein, in the local process of described first client, the games that there is described configuration file corresponding also comprise:
When the local process list of the first client, there is the process title of a local process, match with the process title in described configuration file; Then judge the window name of this local process, whether mate with the window name in described configuration file;
If coupling, then think the first client local process in there are games corresponding to described configuration file.
Further, wherein, described first client exists to associate with the second client and is specially:
Described first client and the second client belong to common group;
Or, described first client and the second client address list good friend each other.
Present invention also offers a kind of system pushing game information based on client process, it is characterized in that, comprising:
Configuration module, in advance for games generating configuration file, is sent to client and preserves by described configuration file,
Extraction module, for when in the local process of the first client, when there are games corresponding to described configuration file, extracts the game identifier in described configuration file;
Pushing module, for described game identifier is pushed to the second client, to make described second client call corresponding configuration file according to described game identifier, and described second client is made to utilize described configuration file to generate and show the game information of games corresponding to described configuration file;
Described configuration file comprises the game identifier of described games; Described client comprises the first client and the second client, and described first client associates with the second client existence;
Further, wherein, described configuration file specifically comprises:
Game identifier, game name, process title, window name, game homepage, download link and storing path.
Further, wherein, described first client exists to associate with the second client and is specially:
Described first client and the second client belong to common group;
Or, described first client and the second client address list good friend each other.
Present invention also offers a kind of client, it is characterized in that, comprising:
Memory module, for receiving and preserving server in advance for the configuration file that games generate;
Scan module, for scanning the local process list of described first client; If in described local process list, there is the process title of a local process, match with the process title in described configuration file; Then think the first client local process in there are games corresponding to described configuration file;
Identification module, for being sent to server by the game identifier in described configuration file.
Further, wherein, also comprise:
Whether window module, for judging the window name of the local process matched with the process title in described configuration file, mate with the window name in described configuration file; If coupling, then think the first client local process in there are games corresponding to described configuration file.
Compared with prior art, the method and system described in the application, reaches following effect:
(1) based on client process to other client push game informations, achieve the popularization of games;
(2) enable client learn the games that other relevant clients are participating in, game information is pushed and has more specific aim;
(3) promote that user participates in the games that good friend participates in, make user in game process, and good friend's interactive or competition fully.
Certainly, the arbitrary product implementing the application must not necessarily need to reach above-described all technique effects simultaneously.
Embodiment
As employed some vocabulary to censure specific components in the middle of specification and claim.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " as mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition, " couple " word and comprise directly any and indirectly electric property coupling means at this.Therefore, if describe a first device in literary composition to be coupled to one second device, then represent described first device and directly can be electrically coupled to described second device, or be indirectly electrically coupled to described second device by other devices or the means that couple.Specification subsequent descriptions is implement the better embodiment of the application, and right described description is for the purpose of the rule that the application is described, and is not used to the scope limiting the application.The protection range of the application is when being as the criterion depending on the claims person of defining.
Shown in Figure 1, for pushing the specific embodiment of the method for game information described in the application based on client process.In the present embodiment, will the games run in first user end process be identified, and then by dependent game information pushing to the second client of these games.
It should be noted that, the client described in the present embodiment comprises the first client and the second client herein.So-called first client and the second client, not substantial difference.Just carry out noun differentiation from the angle of method flow.Setting by the client of scanning local process list is the first client, and the client receiving pushed information is the second client.Described first client associates with the second client existence; Namely mean the contact had between the first client and the second client in social activity, such as described first client and the second client belong to common group; Or described first client and the second client address list good friend each other.
As shown in Figure 1, the present embodiment said method comprising the steps of:
Described configuration file, in advance for games generating configuration file, is sent to client and preserves by step 101, server.
Server needs the games supported or promote can be one or more.A configuration file can be formulated, to describe the essential information of described games for each games.Described in the present embodiment, configuration file comprises: game identifier, game name, process title, window name, game homepage, download link and storing path.In the present embodiment, will configuration file corresponding to games A 1 be exemplified out, and the configuration file 2 that games B is corresponding, be specially:
Configuration file 1
(id="20010"
Gamename=" games A "
processname="GAMEA.exe"
Windowtitle=" games A "
gameweb="http://gamea.com"
gamedownload="http://gamea.com/download/"
path="HKEY_LOCAL_MACHINE\SOFTWARE\gamea\installPath\game.exe")。
Configuration file 2
(id="20011"
Gamename=" games B "
processname="GAMEB.exe"
Windowtitle=" games B "
gameweb="http://gameb.com"
gamedownload="http://gameb.com/download/"
path="HKEY_LOCAL_MACHINE\SOFTWARE\gameb\installPath\game.exe")。
Wherein, id game representation identifies, and gamename game representation title, processname represents process title, and windowtitle represents window name, and gameweb game representation homepage, gamedownload represents download link, and path represents storing path.
Above configuration file, will be sent to client (the first client and the second client) and preserve.Preferred in a fairly large number of situation of configuration file, be sent to client after configuration file can being compressed.
Step 102, in the local process of the first client, there are the games that described configuration file is corresponding, then server extracts the game identifier in described configuration file.
For the first client, need the local process list scanning described first client, and judge whether there is certain process in local process list, conform to the games described by any one configuration file, namely judge that whether the first client is just at the games that running configuration file is corresponding.
The process title of the program that all first clients are being run is included in local process list.If in the middle of process titles all in local process list, there is certain process title to be match with the process title in described configuration file, then illustrate that the first client is running games corresponding to this configuration file.Certainly also may there is multiple process title in local process list, match with the process title in different configuration files respectively, then illustrate that the first client runs games corresponding to different configuration files simultaneously.
In the present embodiment, the process name of configuration file 1 is called GAMEA.exe, and the process name of configuration file 2 is called GAMEB.exe.If what contain in above-mentioned title in the local process list of the first client is any one or more, namely there is coupling.In the present embodiment, by the list of scanning local process, find wherein there is this process title of GAMEA.exe; Namely illustrate in the local process of the first client to there is the games A of described configuration file 1 correspondence.
Preferably, in order to judge in the local process of the first client more accurately, whether there are the games that described configuration file is corresponding, can also when process name-matches, the window name of further this local process of judgement, whether mate with the window name in described configuration file, if coupling, then think the first client local process in there are games corresponding to described configuration file.
In the present embodiment, the window name that in local process list, this process of GAMEA.exe is corresponding can be checked, learn that the window name of this process is " games A ", just conform to the window name in configuration file 1.So can reach a conclusion, the first client is just at running game program A.
In the local process of the first client, there are the games that described configuration file is corresponding, then server for this configuration file, will extract corresponding game identifier.In the present embodiment, server will extract game identifier " id=" 20010 " " according to configuration file 1.
Described game identifier is pushed to the second client by step 103, server, to make described second client call corresponding configuration file according to described game identifier, and described second client is made to utilize described configuration file to generate and show the game information of games corresponding to described configuration file.
By the game identifier extracted in abovementioned steps, " id=" 20010 " is sent to the second client to server.Aforementioned known, the second client saves configuration file 1 and configuration file 2 equally.Then the second client can find corresponding configuration file (i.e. configuration file 1) according to this game identifier; And then by configuration file 1, recognize the first client just at running game program A.Include the many relevant parameters such as game name, game homepage, download link and storing path about games A in configuration file 1 simultaneously.And then described second client just can utilize these parameters to generate a game information for games A, and show this game information on the screen of the second client self, reach the object that game information pushes.
Or, if the second client has installed games A, storing path can have been utilized directly to start games A.
So far, server has promoted games A to the second client.
It should be noted that, in the present embodiment, the games that server is promoted to the second client, the just games that running of the first client.And the association existed between the first client and the second client in this social activity, the two is likely good friend.So according to the information-pushing method described in the present embodiment, namely client can learn that its good friend is running the games of use timely.Such information pushing, strengthens greatly for specific aim client.A large number of users all wishes to attempt the game that good friend participates in, so that in game process, and good friend's interactive or competition fully.
As seen through the above technical solutions, the beneficial effect that the present embodiment exists is: based on client process to other client push game informations, achieve the popularization of games; Enable client learn the games that other relevant clients are participating in, game information is pushed and has more specific aim; Promote that user participates in the games that good friend participates in, make user in game process, and good friend's interactive or competition fully.
Shown in Figure 2, for pushing the specific embodiment of the system of game information described in the application based on client process.In the present embodiment, described system for realize embodiment illustrated in fig. 1 described in method.Its technical scheme is consistent with method shown in Fig. 1 in essence.Corresponding description in embodiment illustrated in fig. 1, is equally applicable in the middle of the present embodiment.Described system comprises:
Configuration module 201, in advance for games generating configuration file, is sent to client and preserves by described configuration file,
Extraction module 202, for when in the local process of the first client, when there are games corresponding to described configuration file, extracts the game identifier in described configuration file;
Pushing module 203, for described game identifier is pushed to the second client, to make described second client call corresponding configuration file according to described game identifier, and described second client is made to utilize described configuration file to generate and show the game information of games corresponding to described configuration file.
Described client comprises the first client and the second client, and described first client associates with the second client existence.Described association is specially: described first client and the second client belong to common group; Or, described first client and the second client address list good friend each other.
Described configuration file specifically comprises: game identifier, game name, process title, window name, game homepage, download link and storing path.
As seen through the above technical solutions, the beneficial effect that the present embodiment exists is: based on client process to other client push game informations, achieve the popularization of games; Enable client learn the games that other relevant clients are participating in, game information is pushed and has more specific aim; Promote that user participates in the games that good friend participates in, make user in game process, and good friend's interactive or competition fully.
In addition, also will disclose a kind of client in the application, the specific embodiment of described client as shown in Figure 3.Client described in the present embodiment and the first client described in the illustrated embodiment of Fig. 1 ~ 2.Described first client can scan local process list, and judges whether there are games corresponding to described configuration file in local process.Described client comprises:
Memory module 301, for receiving and preserving server in advance for the configuration file that games generate;
Scan module 302, for scanning the local process list of described first client; If in described local process list, there is the process title of a local process, match with the process title in described configuration file; Then think the first client local process in there are games corresponding to described configuration file;
Identification module 303, for being sent to server by the game identifier in described configuration file.
Whether window module 304, for judging the window name of the local process matched with the process title in described configuration file, mate with the window name in described configuration file; If coupling, then think the first client local process in there are games corresponding to described configuration file.
Known by above each embodiment, the beneficial effect that the application exists is:
(1) based on client process to other client push game informations, achieve the popularization of games;
(2) enable client learn the games that other relevant clients are participating in, game information is pushed and has more specific aim;
(3) promote that user participates in the games that good friend participates in, make user in game process, and good friend's interactive or competition fully.
Those skilled in the art should understand, the embodiment of the application can be provided as method, device or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
Above-mentioned explanation illustrate and describes some preferred embodiments of the application, but as previously mentioned, be to be understood that the application is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the application, then all should in the protection range of the application's claims.