CN105797372A - Script play window adjusting method and device - Google Patents

Script play window adjusting method and device Download PDF

Info

Publication number
CN105797372A
CN105797372A CN201410840413.0A CN201410840413A CN105797372A CN 105797372 A CN105797372 A CN 105797372A CN 201410840413 A CN201410840413 A CN 201410840413A CN 105797372 A CN105797372 A CN 105797372A
Authority
CN
China
Prior art keywords
window
width
games
script
height
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
CN201410840413.0A
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 CN201410840413.0A priority Critical patent/CN105797372A/en
Publication of CN105797372A publication Critical patent/CN105797372A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a script play window adjusting method and an adjusting device, and relates to the field of information technology; by adjusting a game window in a current interface to be identical to a script play window in width and height, the accuracy of script contents executing recording is guaranteed. The method comprises the following steps: firstly, acquiring the width and the height of the script play window which is saved in a to-be-played script; and then, detecting whether the game window in the current interface is identical to the script play window in width and height or not, if not, adjusting the width and the height of the game window in the current interface to be identical to the width and the height of the script play window in accordance with the width and the height of the game window of the current interface as well as the width and the height of the script play window, wherein the game window in the current interface is used for executing the to-be-played script. The adjusting method and the adjusting device disclosed by the invention are suitable for the adaptive adjustment of the script play window.

Description

The method of adjustment of script broadcast window and device
Technical field
The present invention relates to a kind of information technology, particularly relate to method of adjustment and the device of a kind of script broadcast window.
Background technology
Along with the development of information technology, the kind of electronic game also gets more and more, and incident game player also day by day increases.For meeting the game experiencing requirement of game player, the miscellaneous function of game is also from strength to strength.Wherein, the operation carried out in playing the process of game to facilitate user to check, it is possible to the operation that user is carried out on games window carries out recording generation script, and facilitates user to check in the operating process to game by playing the script recorded.
At present, when the script recorded is played out, the size of script broadcast window is the size of the games window of current interface, but when when script is recorded, the games window of the size of games window and current interface not of uniform size causes, when carrying out script broadcasting according to the size of the games window of current interface, can cause the content for script playing recording that deviation occurs.
Summary of the invention
In view of this, the present invention provides method of adjustment and the device of a kind of script broadcast window, main purpose be in that can the width of self-adaptative adjustment script broadcast window and height, thus ensureing the accuracy of content for script performing to record.
According to one aspect of the invention, it is provided that the method for adjustment of a kind of script broadcast window, including:
Obtain width and the height of the script broadcast window preserved in script to be played;
The width of games window of detection current interface with highly whether respectively with the width of described script broadcast window and highly identical;
If differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.
According to another aspect of the present invention, it is provided that the adjusting apparatus of a kind of script broadcast window, including:
Acquiring unit, for obtaining width and the height of the script broadcast window preserved in script to be played;
Detection unit, for detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical;
Adjustment unit, if for the width of games window of current interface and height and the width of described script broadcast window with highly differ, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.
By technique scheme, the technical scheme that the embodiment of the present invention provides at least has the advantage that
The present invention provides method of adjustment and the device of a kind of script broadcast window, first obtains width and the height of the script broadcast window preserved in script to be played;Then detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical, if differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.Be with the size of current script broadcast window current interface games window size compared with, the present invention is by by the width of the games window of described current interface and height adjustment being and the width of described script broadcast window and highly identical, thus ensureing to perform the accuracy of the content for script recorded.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit those of ordinary skill in the art be will be clear from understanding.Accompanying drawing is only for illustrating the purpose of preferred implementation, and is not considered as limitation of the present invention.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 illustrates the method for adjustment schematic flow sheet of a kind of script broadcast window that the embodiment of the present invention provides;
Fig. 2 illustrates the method for adjustment schematic flow sheet of the another kind of script broadcast window that the embodiment of the present invention provides;
Fig. 3 illustrates the adjusting apparatus structural representation of a kind of script broadcast window that the embodiment of the present invention provides;
Fig. 4 illustrates the method for adjustment schematic flow sheet apparatus structure schematic diagram of the another kind of script broadcast window that the embodiment of the present invention provides;
Fig. 5 illustrates a kind of script recording interface schematic diagram that the embodiment of the present invention provides.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should do not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
The embodiment of the present invention provides the method for adjustment of a kind of script broadcast window, as it is shown in figure 1, described method includes:
101, width and the height of the script broadcast window preserved in script to be played are obtained.
Wherein, the games window of the game application correspondence that script broadcast window is recorded when being record described script to be played.Script to be played comprises user's operation of carrying out on games window of certain a game application, and when this script to be played is recorded, the width of games window and height.The operation that user carries out on the games window of certain a game application can be the clicking operation on games window, drag operation etc., and the embodiment of the present invention does not limit.
102, detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical.
For the embodiment of the present invention, before playing script to be played, user is likely to games window when script to be played is recorded and has carried out other operations, as games window when script to be played is recorded carries out drag operation, or click full screen display button corresponding to games window when script to be played is recorded, make the width of the games window of current interface and height apply the width of corresponding games window and highly mutually inconsistent with the game recorded when recording described script to be played.
If 103 differ, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, by the width of the games window of described current interface and height adjustment it is and the width of described script broadcast window and highly identical.
Wherein, the games window of described current interface is used for performing described script to be played.Script broadcast window is for playing in script recording process, the operation video that user carries out on the games window preserved, therefore by the width of the games window of current interface and height adjustment it is and the width of described script broadcast window and highly identical, it is ensured that perform the accuracy of the content for script recorded.
For the embodiment of the present invention, by the width of the games window of current interface and height and the width of described script broadcast window and height, by the width of the games window of described current interface and height adjustment it is and the width of described script broadcast window and highly identical, can ensure that the window of current execution script is identical with the games window size of recording, and then can ensure that the accuracy of the content for script performing recording.
The method of adjustment of a kind of script broadcast window that the embodiment of the present invention provides, first obtains width and the height of the script broadcast window preserved in script to be played;Then detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical, if differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.Be with the size of current script broadcast window current interface games window size compared with, the present invention is by by the width of the games window of described current interface and height adjustment being and the width of described script broadcast window and highly identical, thus ensureing to perform the accuracy of the content for script recorded.
Further, the embodiment of the present invention provides the method for adjustment of another kind of script broadcast window, as in figure 2 it is shown, described method includes:
201, in the process recording described script to be played, the window handle that games window is corresponding is obtained.
Wherein, window handle is the window unique mark in Window operating system, obtains window handle corresponding to games window and specifically may include that the GetForegroundWindow () function by calling in WindowAPI function obtains the window handle that games window is corresponding.
202, according to the window handle that described games window is corresponding, obtain width and the height of described games window, and be saved in described script to be played.
For the embodiment of the present invention, step 202 specifically can also include: according to the window handle that described games window is corresponding, searches the window handle of flash window corresponding to described games window;The window handle of the window handle corresponding according to described games window and described flash window, obtains the width of described games window and the width of height and described flash window and height respectively and is saved in described script to be played.
Wherein, described flash window is the subwindow of described games window.Owing to games window is that QQGame automatically creates and safeguards, therefore can quickly find flash window by the window handle that games window is corresponding.
For the embodiment of the present invention, according to the window handle that described games window is corresponding, the window handle searching flash window corresponding to described games window is specifically as follows: according to the window handle that described games window is corresponding, by calling preset interface function, from the subwindow that described games window is corresponding, find the flash window that described games window is corresponding step by step.
Wherein, preset interface function can be the FindwindowEX function in WindowAPI function.
For the embodiment of the present invention, according to the window handle that described games window is corresponding, by calling preset interface function, from the subwindow that described games window is corresponding, the flash window finding described games window step by step corresponding is specifically as follows: first according to the window class name that described games window is corresponding, find the class " ShellEmbedding " by name of one-level subwindow corresponding to described games window, then the one-level subwindow according to class " ShellEmbedding " by name, finds two grades of subwindows of class " ShellDocObjectView " by name;Two grades of subwindows further according to class " ShellDocObjectView " by name obtain, and find three grades of subwindows of class " InternetExplorerServer " by name;Three grades of subwindows finally according to class " InternetExplorerServer " by name, find the level Four subwindow of class " MacromediaFlashPlayerActiveX " by name, it is flash window, search without all windows of Windows being carried out traversal, thus improve the search efficiency of flash window.
203, width and the height of the games window preserved in script to be played are obtained.
Wherein, script broadcast window is specifically as follows described games window, the games window of the game application correspondence that described games window is recorded when being record described script to be played.Script to be played comprises the operation that user carries out on the games window of certain a game application, such as, clicking operation on games window, drag operation etc., the embodiment of the present invention does not limit, and this script to be played is when recording, the width of games window and height.
For the embodiment of the present invention, step 203 specifically may include that width and the height of the flash window that the width obtaining the games window preserved in described script to be played is corresponding with height and described games window.
204, detect the width of games window of current interface with highly whether respectively with the width of the games window of described preservation and highly identical.
Wherein, the games window of current interface identical QQGame window corresponding to the games window of described preservation, the games window of the games window of described current interface and described preservation can be the game application of same money, it is also possible to applying for different moneys game, the embodiment of the present invention does not limit.
For the embodiment of the present invention, step 204 specifically may include that width and the height of the games window of detection current interface, and the width of flash window corresponding to described games window with highly whether respectively with the width of the games window of described preservation and highly and the width of flash window corresponding to described games window and highly identical.
If 205 differ, then according to the difference between width and the height of the width of the games window of current interface and the described games window of height and recording, adjust the QQGame window of games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of the games window of described recording and highly identical.
Wherein, the games window of described recording is script broadcast window, therefore by the width of the games window of current interface and height adjustment is and the width of the games window of described recording and highly identical, it is ensured that perform the accuracy of the content for script recorded.The embodiment of the present invention is by adjusting width and the height of the QQGame window corresponding to games window of current interface, it is possible to the width of the games window of self-adaptative adjustment current interface and height, thus ensureing to perform the accuracy of the content for script recorded.
For the embodiment of the present invention, step 205 specifically can also include: if differing, then according to the difference between width and the height of the width of the games window of current interface and the games window of height and described preservation, and the difference between width and the height of the width of flash window corresponding to the games window of current interface and the height flash window corresponding with the games window preserved, adjust the QQGame window of the games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of described script broadcast window and highly identical.By in conjunction with the width of the games window width with height and flash window corresponding to games window with highly to the width of the games window of current interface be highly adjusted, the Adjustment precision of script broadcast window can be improved further, and then ensure to perform the accuracy of the content for script of recording.
The method that the embodiment of the present invention provides can be applied in the scene shown in Fig. 5, but it is not limited to this, including: script to be played is preserved width and the height of the width of the S4 window flash window corresponding with height and S4 window, when S4 window is script to be played recording, the display interface window of game 1.When playing script to be played, judge the width of the flash window that the width of current S4 window is corresponding with height and S4 window and highly whether to change, if changing, then according to the difference between width and the height of the width of the S4 window of current interface and the S4 window of height and described preservation, and the difference between the width of flash window corresponding to the S4 window of current interface and height and width and the height of S4 window that preserve, adjust the QQGame window that the S4 window of described current interface is corresponding, so that the width of the S4 window of current interface and height adaptive adjust width and the height of the S4 window preserved in script to be played, namely the width of script broadcast window and height and the width of the described games window preserved are made and highly identical.
The method of adjustment of the another kind of script broadcast window that the embodiment of the present invention provides, first obtains width and the height of the script broadcast window preserved in script to be played;Then detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical, if differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.Be with the size of current script broadcast window current interface games window size compared with, the present invention is by by the width of the games window of described current interface and height adjustment being and the width of described script broadcast window and highly identical, thus ensureing to perform the accuracy of the content for script recorded.
Further, as implementing of method shown in Fig. 1, the embodiment of the present invention provides the adjusting apparatus of a kind of script broadcast window, as it is shown on figure 3, described device includes: acquiring unit 31, detection unit 32, adjustment unit 33.
Acquiring unit 31, it is possible to for obtaining width and the height of the script broadcast window preserved in script to be played.
Detection unit 32, it is possible to for detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical.
Adjustment unit 33, if may be used for the width of the width of the games window of current interface and height and described script broadcast window and highly differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.
It should be noted that other corresponding descriptions of each functional unit involved by the adjusting apparatus of the script broadcast window of embodiment of the present invention offer, it is possible to reference to describing accordingly in Fig. 1, do not repeat them here.
The adjusting apparatus of a kind of script broadcast window that the embodiment of the present invention provides, first obtains width and the height of the script broadcast window preserved in script to be played;Then detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical, if differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.Be with the size of current script broadcast window current interface games window size compared with, the present invention is by by the width of the games window of described current interface and height adjustment being and the width of described script broadcast window and highly identical, thus ensureing to perform the accuracy of the content for script recorded.
Yet further, as implementing of method shown in Fig. 2, the embodiment of the present invention provides the adjusting apparatus of another kind of script broadcast window, and as shown in Figure 4, described device includes: acquiring unit 41, detection unit 42, adjustment unit 43.
Acquiring unit 41, it is possible to for obtaining width and the height of the script broadcast window preserved in script to be played.
Detection unit 42, it is possible to for detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical.
Adjustment unit 43, if may be used for the width of the width of the games window of current interface and height and described script broadcast window and highly differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.
Wherein, the width of described script broadcast window applies width and the height of corresponding games window with the game recorded time highly for recording described script to be played.
Described adjustment unit 43, if specifically for differing, then according to the difference between width and the height of the width of the games window of current interface and the described games window of height and recording, adjust the QQGame window of games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of described script broadcast window and highly identical.
Described acquiring unit 41, specifically for obtaining width and the height of the flash window that the width of the games window of preservation is corresponding with height and described games window in described script to be played.
Described detection unit 42, specifically for detecting width and the height of the games window of current interface, and the width of flash window corresponding to described games window with highly whether respectively with the width of the described games window preserved and highly and the width of flash window corresponding to described games window and highly identical.
Described adjustment unit 43, if being additionally operable to differ, then according to the difference between width and the height of the width of the games window of current interface and the games window of height and described preservation, and the difference between width and the height of the width of flash window corresponding to the games window of current interface and the height flash window corresponding with the games window preserved, adjust the QQGame window of games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of described script broadcast window and highly identical.
Further, described device can also include: searches unit 44.
Described acquiring unit 41, is additionally operable in the process recording described script to be played, obtains the window handle that games window is corresponding.
Described lookup unit 44, for the window handle corresponding according to described games window, searches the window handle of flash window corresponding to described games window, and described flash window is the subwindow of described games window.
Described acquiring unit 41, it is additionally operable to the window handle corresponding according to described games window and the window handle of described flash window, obtains the width of described games window and the width of height and described flash window and height respectively and be saved in described script to be played.
Described lookup unit 44, specifically for the window handle corresponding according to described games window, by calling preset interface function, from the subwindow that described games window is corresponding, finds the flash window that described games window is corresponding step by step.
It should be noted that other corresponding descriptions of each functional unit involved by the adjusting apparatus of the script broadcast window of embodiment of the present invention offer, it is possible to reference to describing accordingly in Fig. 2, do not repeat them here.
The adjusting apparatus of the another kind of script broadcast window that the embodiment of the present invention provides, first obtains width and the height of the script broadcast window preserved in script to be played;Then detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical, if differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.Be with the size of current script broadcast window current interface games window size compared with, the present invention is by by the width of the games window of described current interface and height adjustment being and the width of described script broadcast window and highly identical, thus ensureing to perform the accuracy of the content for script recorded.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, certain embodiment there is no the part described in detail, it is possible to referring to the associated description of other embodiments.
It is understood that the correlated characteristic in said method and device can reference mutually.It addition, " first ", " second " in above-described embodiment etc. is for distinguishing each embodiment, and do not represent the quality of each embodiment.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
Not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant in algorithm and the display of this offer.Various general-purpose systems can also with use based on together with this teaching.As described above, the structure constructed required by this kind of system is apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to utilize various programming language to realize the content of invention described herein, and the description above language-specific done is the preferred forms in order to disclose the present invention.
In description mentioned herein, describe a large amount of detail.It is to be appreciated, however, that embodiments of the invention can be put into practice when not having these details.In some instances, known method, structure and technology it are not shown specifically, in order to do not obscure the understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify that the disclosure helping understands in each inventive aspect, herein above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or descriptions thereof sometimes.But, the method for the disclosure should be construed to and reflect an intention that namely the present invention for required protection requires feature more more than the feature being expressly recited in each claim.More precisely, as the following claims reflect, inventive aspect is in that all features less than single embodiment disclosed above.Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself as the independent embodiment of the present invention.
Those skilled in the art are appreciated that, it is possible to carry out the module in the equipment in embodiment adaptively changing and they being 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 multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit excludes each other, it is possible to adopt any combination that all processes or the unit of all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment are combined.Unless expressly stated otherwise, each feature disclosed in this specification (including adjoint claim, summary and accompanying drawing) can be replaced by the alternative features providing purpose identical, equivalent or similar.
In addition, those skilled in the art it will be appreciated that, although embodiments more described herein include some feature included in other embodiments rather than further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or realizes with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions of some or all parts in the method for adjustment of the script broadcast window that microprocessor or digital signal processor (DSP) can be used in practice to realize according to embodiments of the present invention and device.The present invention is also implemented as part or all the equipment for performing method as described herein or device program (such as, computer program and computer program).The program of such present invention of realization can store on a computer-readable medium, or can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment without departing from the scope of the appended claims.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 exclude the presence of the element or step not arranged in the claims.Word "a" or "an" before being positioned at element does not exclude the presence of multiple such element.The present invention by means of including the hardware of some different elements and can realize by means of properly programmed computer.In the unit claim listing some devices, several in these devices can be through same hardware branch and specifically embody.Word first, second and third use do not indicate that any order.Can be title by these word explanations.
The invention discloses the method for adjustment of A1, a kind of script broadcast window, including:
Obtain width and the height of the script broadcast window preserved in script to be played;
The width of games window of detection current interface with highly whether respectively with the width of described script broadcast window and highly identical;
If differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.
A2, script broadcast window as described in A1 method of adjustment, the width of the width of described script broadcast window and games window corresponding to the game application recorded during highly for recording described script to be played and highly.
A3, script broadcast window as described in A2 method of adjustment, differ if described, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, adjust the width of the games window of described current interface and highly include:
If differing, then according to the difference between width and the height of the width of the games window of current interface and the described games window of height and recording, adjust the QQGame window of games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of described script broadcast window and highly identical.
A4, script broadcast window as described in A2 method of adjustment, the width of the script broadcast window preserved in described acquisition script to be played and highly including:
Obtain width and the height of the flash window that the width of the games window of preservation is corresponding with height and described games window in described script to be played;
The width of the games window of described detection current interface with highly whether respectively with the width of described script broadcast window and highly identical include:
The width of the games window of detection current interface and height, and the width of flash window corresponding to described games window with highly whether respectively with the width of the described games window preserved and highly and the width of flash window corresponding to described games window and highly identical.
A5, script broadcast window as described in A4 method of adjustment, described method also includes:
If differing, then according to the difference between width and the height of the width of the games window of current interface and the games window of height and described preservation, and the difference between width and the height of the width of flash window corresponding to the games window of current interface and the height flash window corresponding with the games window preserved, adjust the QQGame window of games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of described script broadcast window and highly identical.
A6, script broadcast window as described in A4 method of adjustment, before the width of the flash window that the described games window that preserves in the described script to be played of described acquisition is corresponding and height, also include:
In the process recording described script to be played, obtain the window handle that games window is corresponding;
According to the window handle that described games window is corresponding, searching the window handle of flash window corresponding to described games window, described flash window is the subwindow of described games window;
The window handle of the window handle corresponding according to described games window and described flash window, obtains the width of described games window and the width of height and described flash window and height respectively and is saved in described script to be played.
A7, script broadcast window as described in A6 method of adjustment, according to the window handle that described games window is corresponding, the window handle searching flash window corresponding to described games window includes:
According to the window handle that described games window is corresponding, by calling preset interface function, from the subwindow that described games window is corresponding, find the flash window that described games window is corresponding step by step.
The invention discloses the adjusting apparatus of B8, a kind of script broadcast window, including:
Acquiring unit, for obtaining width and the height of the script broadcast window preserved in script to be played;
Detection unit, for detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical;
Adjustment unit, if for the width of games window of current interface and height and the width of described script broadcast window with highly differ, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.
B9, script broadcast window as described in B8 adjusting apparatus, the width of the width of described script broadcast window and games window corresponding to the game application recorded during highly for recording described script to be played and highly.
B10, script broadcast window as described in B8 adjusting apparatus,
Described adjustment unit, if specifically for differing, then according to the difference between width and the height of the width of the games window of current interface and the described games window of height and recording, adjust the QQGame window of games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of described script broadcast window and highly identical.
B11, script broadcast window as described in B9 adjusting apparatus,
Described acquiring unit, specifically for obtaining width and the height of the flash window that the width of the games window of preservation is corresponding with height and described games window in described script to be played;
Described detection unit, specifically for detecting width and the height of the games window of current interface, and the width of flash window corresponding to described games window with highly whether respectively with the width of the described games window preserved and highly and the width of flash window corresponding to described games window and highly identical.
B12, script broadcast window as described in B11 adjusting apparatus,
Described adjustment unit, if being additionally operable to differ, then according to the difference between width and the height of the width of the games window of current interface and the games window of height and described preservation, and the difference between width and the height of the width of flash window corresponding to the games window of current interface and the height flash window corresponding with the games window preserved, adjust the QQGame window of games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of described script broadcast window and highly identical.
B13, script broadcast window as described in B11 adjusting apparatus, described device also includes: search unit;
Described acquiring unit, is additionally operable in the process recording described script to be played, obtains the window handle that games window is corresponding;
Described lookup unit, for the window handle corresponding according to described games window, searches the window handle of flash window corresponding to described games window, and described flash window is the subwindow of described games window;
Described acquiring unit, is additionally operable to the window handle corresponding according to described games window and the window handle of described flash window, obtains the width of described games window and the width of height and described flash window and height respectively and is saved in described script to be played.
B14, script broadcast window as described in B13 adjusting apparatus,
Described lookup unit, specifically for the window handle corresponding according to described games window, by calling preset interface function, from the subwindow that described games window is corresponding, finds the flash window that described games window is corresponding step by step.

Claims (10)

1. the method for adjustment of a script broadcast window, it is characterised in that including:
Obtain width and the height of the script broadcast window preserved in script to be played;
The width of games window of detection current interface with highly whether respectively with the width of described script broadcast window and highly identical;
If differing, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.
2. the method for adjustment of script broadcast window according to claim 1, it is characterised in that the width of the games window that the width of described script broadcast window is corresponding with the game application recorded time highly for recording described script to be played and height.
3. the method for adjustment of script broadcast window according to claim 2, it is characterized in that, differ if described, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, adjust the width of the games window of described current interface and highly include:
If differing, then according to the difference between width and the height of the width of the games window of current interface and the described games window of height and recording, adjust the QQGame window of games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of described script broadcast window and highly identical.
4. the method for adjustment of script broadcast window according to claim 2, it is characterised in that the width of script broadcast window that preserves in described acquisition script to be played and highly including:
Obtain width and the height of the flash window that the width of the games window of preservation is corresponding with height and described games window in described script to be played;
The width of the games window of described detection current interface with highly whether respectively with the width of described script broadcast window and highly identical include:
The width of the games window of detection current interface and height, and the width of flash window corresponding to described games window with highly whether respectively with the width of the described games window preserved and highly and the width of flash window corresponding to described games window and highly identical.
5. the method for adjustment of script broadcast window according to claim 4, it is characterised in that before the width of flash window corresponding to described games window preserved in the described script to be played of described acquisition and height, also include:
In the process recording described script to be played, obtain the window handle that games window is corresponding;
According to the window handle that described games window is corresponding, searching the window handle of flash window corresponding to described games window, described flash window is the subwindow of described games window;
The window handle of the window handle corresponding according to described games window and described flash window, obtains the width of described games window and the width of height and described flash window and height respectively and is saved in described script to be played.
6. the adjusting apparatus of a script broadcast window, it is characterised in that including:
Acquiring unit, for obtaining width and the height of the script broadcast window preserved in script to be played;
Detection unit, for detect the width of games window of current interface with highly whether respectively with the width of described script broadcast window and highly identical;
Adjustment unit, if for the width of games window of current interface and height and the width of described script broadcast window with highly differ, then according to the width of the games window of current interface and height and the width of described script broadcast window and height, it is and the width of described script broadcast window and highly identical that the games window of described current interface is used for performing described script to be played by the width of the games window of described current interface and height adjustment.
7. the adjusting apparatus of script broadcast window according to claim 6, it is characterised in that the width of the games window that the width of described script broadcast window is corresponding with the game application recorded time highly for recording described script to be played and height.
8. the adjusting apparatus of script broadcast window according to claim 6, it is characterised in that
Described adjustment unit, if specifically for differing, then according to the difference between width and the height of the width of the games window of current interface and the described games window of height and recording, adjust the QQGame window of games window carrying described current interface, so that the width of the games window of described current interface and height adjustment are and the width of described script broadcast window and highly identical.
9. the adjusting apparatus of script broadcast window according to claim 7, it is characterised in that
Described acquiring unit, specifically for obtaining width and the height of the flash window that the width of the games window of preservation is corresponding with height and described games window in described script to be played;
Described detection unit, specifically for detecting width and the height of the games window of current interface, and the width of flash window corresponding to described games window with highly whether respectively with the width of the described games window preserved and highly and the width of flash window corresponding to described games window and highly identical.
10. the adjusting apparatus of script broadcast window according to claim 9, it is characterised in that described device also includes: search unit;
Described acquiring unit, is additionally operable in the process recording described script to be played, obtains the window handle that games window is corresponding;
Described lookup unit, for the window handle corresponding according to described games window, searches the window handle of flash window corresponding to described games window, and described flash window is the subwindow of described games window;
Described acquiring unit, is additionally operable to the window handle corresponding according to described games window and the window handle of described flash window, obtains the width of described games window and the width of height and described flash window and height respectively and is saved in described script to be played.
CN201410840413.0A 2014-12-30 2014-12-30 Script play window adjusting method and device Pending CN105797372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410840413.0A CN105797372A (en) 2014-12-30 2014-12-30 Script play window adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410840413.0A CN105797372A (en) 2014-12-30 2014-12-30 Script play window adjusting method and device

Publications (1)

Publication Number Publication Date
CN105797372A true CN105797372A (en) 2016-07-27

Family

ID=56980957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410840413.0A Pending CN105797372A (en) 2014-12-30 2014-12-30 Script play window adjusting method and device

Country Status (1)

Country Link
CN (1) CN105797372A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471794A (en) * 2000-10-24 2004-01-28 汤姆森许可公司 Method of sizing an embedded media player page
CN101848382A (en) * 2010-05-31 2010-09-29 深圳市景阳科技股份有限公司 Method and system for adjusting video streaming image resolution ratio and code stream
CN102298500A (en) * 2011-09-22 2011-12-28 重庆大学 Self-adaptive screen zooming adjusting method
CN102662563A (en) * 2012-03-14 2012-09-12 广东威创视讯科技股份有限公司 Window resolution self-adaption processing method and device
CN103700360A (en) * 2013-12-09 2014-04-02 乐视致新电子科技(天津)有限公司 Screen display proportion regulating method and electronic equipment
CN103716648A (en) * 2012-10-08 2014-04-09 深圳市子元技术有限公司 Information transmission method for remote teaching system and remote teaching system
CN104079978A (en) * 2014-06-27 2014-10-01 西安诺瓦电子科技有限公司 Window-adaptive media playing method and device and media interconnection release method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1471794A (en) * 2000-10-24 2004-01-28 汤姆森许可公司 Method of sizing an embedded media player page
CN101848382A (en) * 2010-05-31 2010-09-29 深圳市景阳科技股份有限公司 Method and system for adjusting video streaming image resolution ratio and code stream
CN102298500A (en) * 2011-09-22 2011-12-28 重庆大学 Self-adaptive screen zooming adjusting method
CN102662563A (en) * 2012-03-14 2012-09-12 广东威创视讯科技股份有限公司 Window resolution self-adaption processing method and device
CN103716648A (en) * 2012-10-08 2014-04-09 深圳市子元技术有限公司 Information transmission method for remote teaching system and remote teaching system
CN103700360A (en) * 2013-12-09 2014-04-02 乐视致新电子科技(天津)有限公司 Screen display proportion regulating method and electronic equipment
CN104079978A (en) * 2014-06-27 2014-10-01 西安诺瓦电子科技有限公司 Window-adaptive media playing method and device and media interconnection release method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
戴晟晖等: "《Visual C++典型模块与项目实战大全》", 31 January 2012 *

Similar Documents

Publication Publication Date Title
CN105511732A (en) Method for displaying page entry icons and device
CN105183908B (en) A kind of classification method and device of point of interest POI data
CN105868096A (en) Methods and apparatuses used for displaying web page test result in browser and device
JP6977155B2 (en) Controlling the triggering of function calls from content items
CN104346464A (en) Processing method and device of webpage element information and browser client
CN106815140A (en) A kind of interface test method and device
CN105516734A (en) Method and apparatus for detecting video playing possibility
CN105426524B (en) A kind of web interface methods of exhibiting and device
CN105617657A (en) Intelligent game recommendation method and device
CN104796784A (en) Video playing method and device in application program
CN105771241A (en) Matching processing method and device of game window
CN104822078A (en) Shielding method and apparatus for video caption
CN106649114A (en) Method and device for positioning application program crash
CN108521578A (en) It can textures region, the method for realizing textures in video in a kind of detection video
CN105554424A (en) Method and apparatus for video playing in application
US20200021863A1 (en) Tracking and visualizing video utilization
CN105771238A (en) Operating method and device of game auxiliary functions
CN103646054A (en) Method for playing multimedia data and browser device
WO2017016285A1 (en) Method and device for implementing download of multimedia file
CN106775678A (en) A kind of method and device of page jump
CN105797372A (en) Script play window adjusting method and device
KR20090124640A (en) Method and system for advertisement material testing
CN107943688A (en) A kind of SDK inspection methods, device, terminal device and storage medium
CN105094668B (en) Information processing method and electronic equipment
CN105630545A (en) Browser starting method and apparatus

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: 20160727