Summary of the invention
The technical problem to be solved in the present invention is, for being not easy in prior art at when game issuing microblog and can't synchronously be updated to the defective of a plurality of microbloggings, providing a kind of and can be at any time the game picture of intercepting is published to the game microblogging and synchronously is updated to sectional drawing dissemination method and the gaming platform based on gaming platform of third party's microblogging.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of sectional drawing dissemination method based on gaming platform is provided, comprises:
A, the instruction of reception sectional drawing;
B, the zone that obtains the games window of current active, and the picture in the zone of the games window of described current active is carried out sectional drawing;
C, with described sectional drawing at least a portion as pictorial information, and described pictorial information is uploaded to the game background server;
D, receive the chained address of the pictorial information that described game background server returns, with the chained address of described pictorial information at least a portion as micro-blog information, and described micro-blog information is published to the game microblogging;
E, judge whether described micro-blog information synchronously is updated in described gaming platform the microblogging of binding in advance, if by corresponding interface, described micro-blog information is synchronized to the microblogging of binding.
In the sectional drawing dissemination method based on gaming platform of the present invention, steps A specifically comprises:
A1, the instruction of reception sectional drawing;
A2, judge whether moved game in gaming platform, if continue execution in step B.
In the sectional drawing dissemination method based on gaming platform of the present invention, step C specifically comprises:
C1, generating pictures the preview window show described sectional drawing in described preview picture window;
C2, judge whether described sectional drawing is distributed to the game microblogging according to the user instruction that receives, if continue execution in step C3;
C3, with described sectional drawing at least a portion as pictorial information, and described pictorial information is uploaded to the game background server.
In the sectional drawing dissemination method based on gaming platform of the present invention, the chained address of the pictorial information that described game background server returns comprises the preview graph chained address, dwindle figure chained address and former figure chained address, described preview graph chained address, dwindles each in figure chained address and former figure chained address and is respectively used to store sectional drawing under corresponding browse mode.
In the sectional drawing dissemination method based on gaming platform of the present invention, by corresponding interface, described micro-blog information is synchronized to the microblogging of binding and specifically comprises:
By the Xauth interface, described micro-blog information is sent to Sina's microblogging server, the chained address that comprises pictorial information in wherein said micro-blog information, and after receiving the download request of Sina's microblogging server based on described chained address, send to Sina's microblogging server to preserve described pictorial information;
By the Oauth interface, described micro-blog information is sent to Tengxun's microblogging server, comprise the pictorial information after coding in wherein said micro-blog information, the pictorial information after described coding is decoded and is preserved by described Tengxun microblogging server.
The present invention also provides a kind of gaming platform, comprising:
Human-machine interface module is used for receiving user instruction, and described user instruction comprises the sectional drawing instruction;
The sectional drawing module is used for obtaining the zone of the games window of current active, and the picture in the zone of the games window of described current active is carried out sectional drawing;
The pictorial information generation module is used for described sectional drawing at least a portion as pictorial information;
Game background server communication module is used for described pictorial information is uploaded to the game background server, also is used for receiving the chained address of the pictorial information that described game background server returns;
The micro-blog information generation module is used for the chained address of described pictorial information at least a portion as micro-blog information;
Game microblogging release module is used for described micro-blog information is published to the game microblogging;
Binding microblogging synchronization module is used for judging whether described micro-blog information synchronously is updated to the microblogging that described gaming platform is bound in advance, if by corresponding interface, described micro-blog information is synchronized to the microblogging of binding.
In gaming platform of the present invention, described gaming platform also comprises the game judge module, is used for judging whether moved game in gaming platform after described human-machine interface module receives the sectional drawing instruction.
In gaming platform of the present invention, described gaming platform also comprises the preview picture module, is used for generating pictures the preview window, shows described sectional drawing in described preview picture window.
In gaming platform of the present invention, the chained address of the pictorial information that described game background server returns comprises the preview graph chained address, dwindle figure chained address and former figure chained address, described preview graph chained address, dwindles each in figure chained address and former figure chained address and is respectively used to store sectional drawing under corresponding browse mode.
In gaming platform of the present invention, by corresponding interface, described micro-blog information is synchronized to the microblogging of binding and specifically comprises:
By the Xauth interface, described micro-blog information is sent to Sina's microblogging server, the chained address that comprises pictorial information in wherein said micro-blog information, and after receiving the download request of Sina's microblogging server based on described chained address, send to Sina's microblogging server to preserve described pictorial information;
By the Oauth interface, described micro-blog information is sent to Tengxun's microblogging server, comprise the pictorial information after coding in wherein said micro-blog information, the pictorial information after described coding is decoded and is preserved by described Tengxun microblogging server.
The present invention is a kind of based on the sectional drawing dissemination method of gaming platform and the beneficial effect of gaming platform is: by directly comprising the pictorial information of sectional drawing as the part of micro-blog information, can at any time game picture be intercepted and be updated in the game microblogging; By binding different third party's microblogging accounts, can at any time the game picture that intercepts synchronously be updated in predefined other microbloggings; Reduced the user and operated burden, made the user obtain more convenient, happier experience.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 is according to an embodiment of the invention based on the flow chart of the sectional drawing dissemination method of gaming platform.In the present embodiment, a kind of sectional drawing dissemination method based on gaming platform is from step S1.
In step S1, receive the sectional drawing instruction of user's input.For example, the user can input the sectional drawing instruction by " sectional drawing " button of clicking on screen.
In step S2, obtain the zone of the games window of current active, and the picture in the zone of the games window of current active is carried out sectional drawing.Because the present invention only carries out sectional drawing for the picture in game, so the games window part of sectional drawing current active only.For example, can be directly the games window of current active be carried out sectional drawing.Again for example, can after the games window of automatic acquisition current active, carry out sectional drawing according to the sectional drawing scope (this sectional drawing scope is in games window) of user's input.
In step S3, with sectional drawing at least a portion as pictorial information, and pictorial information is uploaded to the game background server.For example, can according to sectional drawing generating pictures information, then pictorial information be uploaded to the game background server.Again for example, can also receive the text description of user's input, and according to sectional drawing and text description generating pictures information, then pictorial information be uploaded to game server.Wherein, text description can be the description about sectional drawing, such as sectional drawing time, sectional drawing content etc.
In step S4, receive the chained address of the pictorial information that the game background server returns, with the chained address of pictorial information at least a portion as micro-blog information, and call corresponding script micro-blog information is published to the game microblogging.Wherein, the pictorial information of uploading is kept in the game background server,, reads corresponding pictorial information according to the chained address of pictorial information from the background server of playing, and shows the user during by the web page browsing micro-blog information as the user.And, can directly generate micro-blog information according to pictorial information, then micro-blog information is published to the game microblogging.In addition, can also receive other text description of user's input, such as the current task performance of game user, the gains in depth of comprehension etc. of making a breakthrough, and generate micro-blog information according to pictorial information and these additional text descriptions, then micro-blog information is published to the game microblogging.
In step S5, judge whether micro-blog information synchronously is updated to the microblogging of binding in advance in gaming platform, by corresponding interface, micro-blog information is synchronized to if call corresponding script the microblogging of binding.In gaming platform, each user can arrange microblogging binding option in advance in the personal information of oneself, and the user can bind with each own microblogging account and realize that selectivity binds according to individual's blog of liking determining whether will play.For example, can bind Sina's microblogging by the Xauth interface, can also bind Tengxun's microblogging by the Oauth interface.Can provide " synchronous upgrade " button on interface, in order to receive about whether realizing the synchronous user instruction that upgrades.That is to say, in this example, if the user clicks " the synchronous renewal " button, can call corresponding script and by corresponding interface, micro-blog information synchronously is updated to the microblogging of binding.
A kind of sectional drawing dissemination method based on gaming platform of the present invention can intercept game picture and be updated at any time in the game microblogging by directly comprising the pictorial information of sectional drawing as the part of micro-blog information; By binding different third party's microblogging accounts, can at any time the game picture that intercepts synchronously be updated in predefined other microbloggings; Reduced the user and operated burden, made the user obtain more convenient, happier experience.
Fig. 2 is the flow chart based on the sectional drawing dissemination method of gaming platform in accordance with a preferred embodiment of the present invention.In the present embodiment, based on the sectional drawing dissemination method of gaming platform from step 201.
In step 201, receive the sectional drawing instruction.For example, the user can input the sectional drawing instruction by " sectional drawing " button of clicking on screen.
In step 202, judge whether moved game in gaming platform.For example, can obtain by the handle that obtains the current active window process id of this handle, thereby obtain the path of this process, then this path is compared with the game information file in gaming platform, thereby judge whether moved game in gaming platform.This method jumps to ending step 210 if not; Carry out sectional drawing if continue execution in step 203.Can prevent from like this being truncated to illegal picture, avoid occurring in user's game blog and other microbloggings illegal content.
If in gaming platform, operation has game, execution in step 203, in step 203, obtain the zone of the games window of current active, and the picture in the zone of the games window of current active is carried out sectional drawing.For example, can be directly the games window of current active be carried out sectional drawing.Again for example, can after the games window of automatic acquisition current active, carry out sectional drawing according to the sectional drawing scope (this sectional drawing scope is in games window) of user's input.
In step 204, generating pictures the preview window shows sectional drawing in the preview picture window.For example, can be directly with the Image Display of intercepting in step 203 in the preview picture window, can also provide picture editor's instrument, so that the user edits the picture of intercepting according to the personal like.
In step 205, judge whether sectional drawing is distributed to the game microblogging according to the user instruction that receives.For example, can eject " issue " button, in order to receive about whether issuing the user instruction of sectional drawing.For example, if the interior user of Preset Time (for example 10 seconds) does not click " issue " button, represent that the user does not want this sectional drawing is distributed to the game microblogging, this moment, this method jumped to ending step 210.Again for example, if the interior user of Preset Time (for example 10 seconds) clicks " issue " button, represent that the user indicates this sectional drawing is distributed to the game microblogging, continue execution in step 206 at this moment and issue.By increasing " issue judgement " step, can so that the user selects whether the game picture that intercepts to be published in the game blog, for example, if the user is dissatisfied to the picture of intercepting, can cancel issue.
If determine sectional drawing is distributed to the game microblogging, execution in step 206, in step 206, with sectional drawing at least a portion as pictorial information, and pictorial information uploaded to the game background server.For example, can according to sectional drawing generating pictures information, then pictorial information be uploaded to the game background server.Again for example, can also receive the text description of user's input, and according to sectional drawing and text description generating pictures information, then pictorial information be uploaded to game server.Wherein, text description can be the description about sectional drawing, such as sectional drawing time, sectional drawing content etc.
In step 207, receive the chained address of the pictorial information that the game background server returns, with the chained address of pictorial information at least a portion as micro-blog information, and call corresponding script micro-blog information is published to the game microblogging.Wherein, the pictorial information of uploading is kept in the game background server,, reads corresponding pictorial information according to the chained address of pictorial information from the background server of playing, and shows the user during by the web page browsing micro-blog information as the user.And, can directly generate micro-blog information according to pictorial information, then micro-blog information is published to the game microblogging.In addition, can also receive other text description of user's input, such as the current task performance of game user, the gains in depth of comprehension etc. of making a breakthrough, and generate micro-blog information according to pictorial information and these additional text descriptions, then micro-blog information is published to the game microblogging.
In step 208, judge whether micro-blog information synchronously is updated to the microblogging of binding in advance in gaming platform according to the user instruction that receives, in gaming platform, each user can arrange microblogging binding option in advance in the personal information of oneself, the user can bind with each own microblogging account and realize that selectivity binds according to individual's blog of liking determining whether will play.For example, can bind Sina's microblogging by the Xauth interface, can also bind Tengxun's microblogging by the Oauth interface.Can provide " synchronous upgrade " button on interface, in order to receive about whether realizing the synchronous user instruction that upgrades.That is to say, in this example, if the user does not click " the synchronous renewal " button, this method jumps to ending step 210; If the user clicks " the synchronous renewal " button, continue execution in step 209, micro-blog information synchronously is updated to the microblogging of binding in advance in gaming platform.
In step 209, call corresponding script and by corresponding interface, micro-blog information synchronously is updated to the microblogging of binding.For example, can call corresponding script and by the Xauth interface, micro-blog information be sent to Sina's microblogging server, wherein comprise the chained address of pictorial information in micro-blog information, the game background server can after receiving the download request of Sina's microblogging server based on this chained address, send to Sina's microblogging server to preserve pictorial information.Again for example, can also call corresponding script and by the Oauth interface, micro-blog information be sent to Tengxun's microblogging server, wherein comprise the pictorial information after coding in micro-blog information, the pictorial information after this coding is decoded and is preserved by Tengxun's microblogging server.
In another preferred embodiment of the present invention, the chained address of the pictorial information that returns of game background server can comprise the preview graph chained address, dwindle figure chained address and former figure chained address.Wherein, the preview graph chained address, dwindle each in figure chained address and former figure chained address and be respectively used to store sectional drawing under corresponding browse mode.That is to say, can comprise this three chained addresses in micro-blog information, when the user need to be at preview mode, dwindle when watching the game sectional drawing under pattern or former chart-pattern, respectively can be from the preview graph chained address, dwindle the game sectional drawing that preview mode is read in figure chained address or former figure chained address.
Be more than in preferred embodiments more of the present invention, enumerating them is only in order to illustrate, and is not used in restriction the present invention.In other embodiments of the invention, can also comprise that any suitable being used for realizes the feature based on the sectional drawing issue of gaming platform.For example, in step 208, can also whether micro-blog information synchronously be upgraded by automatic decision, whether other microbloggings of this user's binding are for example arranged in the automatic decision gaming platform, automatically synchronously upgrade if having, if without this method end.In addition, above feature is also not all necessary.In other embodiments of the invention, can comprise above arbitrary characteristics and/or its combination in any, as long as can realize the sectional drawing issue based on gaming platform.For example, in one embodiment, can omit step 204.
Fig. 3 is the structural representation of gaming platform according to an embodiment of the invention.In the present embodiment, gaming platform comprises human-machine interface module 100, sectional drawing module 200, pictorial information generation module 300, game background server communication module 400, micro-blog information generation module 500, game microblogging release module 600 and binding microblogging synchronization module 700.
Human-machine interface module 100 is used for receiving user instruction, and wherein user instruction comprises the sectional drawing instruction.For example, can generate " sectional drawing " button by human-machine interface module 100, make the user input the sectional drawing instruction by " sectional drawing " button of clicking on screen.
Sectional drawing module 200 is used for obtaining the zone of the games window of current active, and the picture in the zone of the games window of current active is carried out sectional drawing.Because the present invention only carries out sectional drawing for the picture in game, so the games window part of 200 sectional drawing current actives of sectional drawing module.For example, sectional drawing module 200 can be directly carried out sectional drawing to the games window of current active.Again for example, sectional drawing module 200 can after the games window of automatic acquisition current active, be carried out sectional drawing according to the sectional drawing scope (this sectional drawing scope is in games window) of user's input.
Pictorial information generation module 300 is used for sectional drawing at least a portion as pictorial information.For example, pictorial information generation module 300 can be according to sectional drawing generating pictures information.Again for example, pictorial information generation module 300 can also receive the text description of user's input, and according to sectional drawing and text description generating pictures information.Wherein, text description can be the description about sectional drawing, such as sectional drawing time, sectional drawing content etc.
Game background server communication module 400 is used for described pictorial information is uploaded to the game background server, also is used for receiving the chained address of the pictorial information that the game background server returns.
Micro-blog information generation module 500 is used for the chained address of pictorial information at least a portion as micro-blog information.For example, micro-blog information generation module 500 can be directly with pictorial information as micro-blog information.Again for example, micro-blog information generation module 500 can also receive by human-machine interface module 100 other text description of user's input, such as the current task performance of game user, the gains in depth of comprehension etc. of making a breakthrough, and generate micro-blog information according to pictorial information and these additional text descriptions.
Game microblogging release module 600 is used for calling corresponding script micro-blog information is published to the game microblogging.Wherein, the pictorial information of uploading is kept in the game background server, during micro-blog information when the user plays blog by web page browsing on, the microblogging client can read corresponding pictorial information according to the chained address of pictorial information from the game background server, and shows the user.
Binding microblogging synchronization module 700 is used for judging whether micro-blog information synchronously is updated to the microblogging that gaming platform is bound in advance, by corresponding interface, micro-blog information is synchronized to if call corresponding script the microblogging of binding.In gaming platform, each user can arrange microblogging binding option in advance in the personal information of oneself, and the user can bind with each own microblogging account and realize that selectivity binds according to individual's blog of liking determining whether will play.For example, can bind Sina's microblogging by the Xauth interface, can also bind Tengxun's microblogging by the Oauth interface.Binding microblogging synchronization module 700 can provide by human-machine interface module 100 " the synchronous renewal " button on interface, in order to receive about whether realizing the synchronous user instruction that upgrades, and judge whether synchronously to upgrade according to this user instruction.That is to say, in this example, if the user clicks " the synchronous renewal " button, bind microblogging synchronization module 700 and can call corresponding script and by corresponding interface, micro-blog information synchronously is updated to the microblogging of binding.
A kind of gaming platform of the present invention can intercept game picture and be updated at any time in the game microblogging by directly comprising the pictorial information of sectional drawing as the part of micro-blog information; By binding different third party's microblogging accounts, can at any time the game picture that intercepts synchronously be updated in predefined other microbloggings; Reduced the user and operated burden, made the user obtain more convenient, happier experience.
Fig. 4 is the structural representation of gaming platform in accordance with a preferred embodiment of the present invention.Gaming platform comprises human-machine interface module 100, sectional drawing module 200, pictorial information generation module 300, game background server communication module 400, micro-blog information generation module 500, game microblogging release module 600, binding microblogging synchronization module 700, game judge module 800 and preview picture module 900.Wherein, human-machine interface module 100, sectional drawing module 200, pictorial information generation module 300, game background server communication module 400, micro-blog information generation module 500, game microblogging release module 600 and binding microblogging synchronization module 700 have been described in detail with reference to figure 3.
Game judge module 800 is used for judging whether moved game in gaming platform after human-machine interface module 100 receives the sectional drawing instruction.For example, game judge module 800 can obtain by the handle that obtains the current active window process id of this handle, thereby obtain the path of this process, then this path is compared with the game information file in gaming platform, thereby judge whether moved game in gaming platform.Sectional drawing module 200 is not carried out sectional drawing if not; Carry out sectional drawing if notify sectional drawing module 200.Can prevent from like this being truncated to illegal picture, avoid occurring in user's game blog and other microbloggings illegal content.
Preview picture module 900 is used for generating pictures the preview window, shows sectional drawing in the preview picture window.For example, the Image Display that preview picture module 900 can directly intercept sectional drawing module 200 can also provide picture editor's instrument, so that the user edits by the picture of 100 pairs of interceptings of human-machine interface module according to the personal like in the preview picture window.
In another preferred embodiment of the present invention, pictorial information generation module 300 can also be used for judging whether sectional drawing is distributed to the game microblogging.For example, pictorial information generation module 300 can eject " issue " buttons by human-machine interface module 100, so that whether reception about issuing the user instruction of sectional drawing.For example, if the interior user of Preset Time (for example 10 seconds) does not click " issue " button, represent that the user does not want this sectional drawing is distributed to the game microblogging, pictorial information generation module 300 is generating pictures information not.Again for example, if the interior user of Preset Time (for example 10 seconds) clicks " issue " button, represent that the user indicates this sectional drawing is distributed to the game microblogging, pictorial information generation module 300 will be according to sectional drawing generating pictures information at this moment.By increasing " issue judgement " function, can so that the user selects whether the game picture that intercepts to be published in the game blog, for example, if the user is dissatisfied to the picture of intercepting, can cancel issue.
In another preferred embodiment of the present invention, binding microblogging synchronization module 700 can call corresponding script and by the Xauth interface, micro-blog information be sent to Sina's microblogging server, wherein comprise the chained address of pictorial information in micro-blog information, then, the game background server sends to Sina's microblogging server to preserve pictorial information after receiving the download request of Sina's microblogging server based on this chained address.Again for example, binding microblogging synchronization module 700 can also call corresponding script and by the Oauth interface, micro-blog information be sent to Tengxun's microblogging server, wherein comprise the pictorial information after coding in micro-blog information, the pictorial information after this coding is decoded and is preserved by Tengxun's microblogging server.
In another preferred embodiment of the present invention, the chained address of the pictorial information that returns of game background server can comprise the preview graph chained address, dwindle figure chained address and former figure chained address.Wherein, the preview graph chained address, dwindle each in figure chained address and former figure chained address and be respectively used to store sectional drawing under corresponding browse mode.That is to say, can comprise this three chained addresses in micro-blog information, when the user need to be at preview mode, dwindle when watching the game sectional drawing under pattern or former chart-pattern, respectively can be from the preview graph chained address, dwindle the game sectional drawing that preview mode is read in figure chained address or former figure chained address.
Although the present invention describes by specific embodiment, it will be appreciated by those skilled in the art that, without departing from the present invention, can also carry out various conversion and be equal to alternative the present invention.In addition, for particular condition or material, can make various modifications to the present invention, and not depart from the scope of the present invention.Therefore, the present invention is not limited to disclosed specific embodiment, and should comprise the whole execution modes that fall in claim scope of the present invention.