CN106095373B - Realize striding equipment screen coordinate adaptation, the method for operation equipment and corresponding device - Google Patents
Realize striding equipment screen coordinate adaptation, the method for operation equipment and corresponding device Download PDFInfo
- Publication number
- CN106095373B CN106095373B CN201610452989.9A CN201610452989A CN106095373B CN 106095373 B CN106095373 B CN 106095373B CN 201610452989 A CN201610452989 A CN 201610452989A CN 106095373 B CN106095373 B CN 106095373B
- Authority
- CN
- China
- Prior art keywords
- coordinate
- screen
- equipment
- ordinate
- abscissa
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Striding equipment screen coordinate adaptation, the method for operation equipment and corresponding device are realized the invention discloses a kind of.Wherein, the method for realizing striding equipment screen coordinate adaptation includes: to obtain the Horizontal number of pixels of the first device screen resolution ratio, screen density, the first coordinate, wherein, when first coordinate is that the first device screen shows the first picture, the coordinate of the first object on the first picture;And obtain the Horizontal number of pixels of the second device screen resolution ratio, screen density;According to the Horizontal number of pixels of the first device screen resolution ratio, the first coordinate, and second device screen resolution ratio Horizontal number of pixels, calculate the abscissa of the second coordinate, wherein, when second coordinate is that the second device screen shows the first picture, the coordinate of the first object on the first picture;According to the screen density of the first coordinate, the screen density of the first equipment and the second equipment, the ordinate of the second coordinate is calculated, to realize the coordinate adaptation of striding equipment screen.
Description
Technical field
The present invention relates to field of electronic devices, and in particular, to a kind of realization striding equipment screen coordinate adaptation, operation equipment
Method and corresponding device.
Background technique
Currently, mostly using the method based on object positioning when operating to the application in equipment.Namely by setting
Object is identified in standby, and then according to the object identity identified, object is operated.It is much applied however, having
It can not be identified in equipment.In this case, it is desirable to pass through position of the positioning target in screen, pair
Using being operated.But since coordinate of the same target (for example, button) of same frame on the screen of distinct device has
May be not exactly the same, so that this idea can not be achieved.
Therefore, how striding equipment screen, which carries out coordinate, is adapted to the problem in the urgent need to address for people.
Summary of the invention
Striding equipment screen coordinate adaptation, the method for operation equipment and corresponding dress are realized the object of the present invention is to provide a kind of
It sets.
In the first aspect of the embodiment of the present invention, a kind of method for realizing striding equipment screen coordinate adaptation is provided.It should
Method may include: to obtain the Horizontal number of pixels of the first device screen resolution ratio, screen density, the first coordinate, wherein described the
When one coordinate is that first device screen shows the first picture, the coordinate of the first object on first picture;And it obtains
Take Horizontal number of pixels, the screen density of the second device screen resolution ratio;According to the horizontal picture of the first device screen resolution ratio
Prime number, first coordinate, and, the Horizontal number of pixels of the second device screen resolution ratio, the cross for calculating the second coordinate
Coordinate, wherein the first mesh when second coordinate is that second device screen shows the first picture, on first picture
Target coordinate;According to the screen density of first coordinate, the screen density of first equipment and second equipment, meter
Calculate the ordinate of second coordinate.
Optionally, the Horizontal number of pixels according to the first device screen resolution ratio, first coordinate, and,
The Horizontal number of pixels of the second device screen resolution ratio, the abscissa for calculating the second coordinate include: to sit according to described second
Target abscissa is equal to the abscissa of first coordinate and the product of horizontal pixel ratio, calculates the horizontal seat of second coordinate
Mark, wherein the horizontal pixel is than being equal to the Horizontal number of pixels of the second device screen resolution ratio divided by first equipment
The Horizontal number of pixels of screen resolution.
Optionally, described according to first coordinate, the screen density of first equipment and second equipment
Screen density, the ordinate for calculating second coordinate include: to be equal to described first according to the ordinate of second coordinate
The ordinate of coordinate and the product of screen density ratio, obtain the ordinate of second coordinate, wherein the screen density ratio is equal to
The second device screen density is divided by the first device screen density.
Optionally, the method also includes: by the abscissa of second coordinate multiplied by preset abscissa coefficient of rectifying deviation,
Abscissa after being rectified a deviation;By the ordinate of second coordinate multiplied by preset ordinate coefficient of rectifying deviation, after obtaining correction
Ordinate.
In the second aspect of the embodiment of the present invention, a kind of device for realizing striding equipment screen coordinate adaptation is provided.It should
Device may include: the first acquisition module, and Horizontal number of pixels, the screen for being configured as obtaining the first device screen resolution ratio are close
Degree, the first coordinate, wherein when first coordinate is that first device screen shows the first picture, on first picture
First object coordinate;And obtain the Horizontal number of pixels of the second device screen resolution ratio, screen density.Abscissa calculates
Module is configured as the Horizontal number of pixels according to the first device screen resolution ratio, first coordinate, and, described
The Horizontal number of pixels of two device screen resolution ratio, the abscissa for calculating the second coordinate, wherein second coordinate is described the
When two device screens show the first picture, the coordinate of the first object on first picture.Ordinate computing module, is configured
To calculate institute according to the screen density of the screen density of first coordinate, first equipment and second equipment
State the ordinate of the second coordinate.
Optionally, the abscissa computing module is configured as being equal to described first according to the abscissa of second coordinate
The abscissa of coordinate and the product of horizontal pixel ratio, calculate the abscissa of second coordinate, wherein described horizontal pixel ratio etc.
In the second device screen resolution ratio Horizontal number of pixels divided by the first device screen resolution ratio Horizontal number of pixels.
Optionally, the ordinate computing module is configured as being equal to described first according to the ordinate of second coordinate
The ordinate of coordinate and the product of screen density ratio, obtain the ordinate of second coordinate, wherein the screen density ratio is equal to
The second device screen density is divided by the first device screen density.
Optionally, described device further include: correction module is configured as the abscissa of second coordinate multiplied by default
Abscissa coefficient of rectifying deviation, the abscissa after being rectified a deviation;The ordinate of second coordinate is entangled multiplied by preset ordinate
Parital coefficient, the ordinate after being rectified a deviation.
In in terms of the third of the embodiment of the present invention, a kind of method for operating equipment is provided.This method may include: to obtain
Take the first operational order, wherein first operational order is to sit on the first picture that the first device screen is shown to first
The first operational order executed at mark;Using the side for realizing striding equipment screen coordinate adaptation as described in any embodiment of the present invention
Method obtains the second coordinate;The first operation described to execution at the second coordinate refers on the first picture that the second device screen is shown
It enables.
Optionally, first operational order that obtains includes: to obtain the script comprising first operational order, wherein
The script is recorded to obtain by carrying out script to first operational order executed on said first device.It is described
Including: to execution first operational order at the second coordinate on the first picture that second device screen is shown will be in the script
The first coordinate replace with second coordinate, obtain the replaced script of coordinate, execute the coordinate in second equipment
Replaced script.
In in terms of the third of the embodiment of the present invention, a kind of device for operating equipment is provided.The apparatus may include: the
Two obtain module, are configured as obtaining the first operational order, wherein first operational order is to show in the first device screen
The first picture on at the first coordinate execute the first operational order.Coordinate adaptation module is configured to apply right such as and wants
The described in any item methods for realizing striding equipment screen coordinate adaptation of 1-4 are sought, the second coordinate is obtained.Operation executing module is matched
It is set on the first picture that the second device screen is shown to execution first operational order at the second coordinate.
Optionally, the second acquisition module is configured as obtaining the script comprising first operational order, wherein institute
Script is stated, records to obtain by carrying out script to first operational order executed on said first device.The operation
Execution module includes: coordinate replacement submodule, is configured as the first coordinate in the script replacing with second coordinate,
Obtain the replaced script of coordinate;Implementation sub-module is operated, is configured as after second equipment executes the coordinate replacement
Script.
Technical solution of the present invention same target coordinate according to caused by distinct device screen resolution, screen density difference is not
Unanimously, thus according to the Horizontal number of pixels of the first device screen resolution ratio, the first coordinate, and, the second device screen resolution ratio
Horizontal number of pixels, calculate the horizontal seat of second coordinate of the corresponding first object of first coordinate on the second device screen
Mark, according to the screen density of first coordinate, the screen density of the first equipment and the second equipment, calculates the second coordinate
Ordinate, so that the coordinate adaptation of striding equipment screen is realized, and, the operation equipment of the coordinate adaptation based on striding equipment screen
Method is achieved so that positioning target by coordinate striding equipment and carrying out operation to target.
Other features and advantages of the present invention will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
The drawings are intended to provide a further understanding of the invention, and constitutes part of specification, with following tool
Body embodiment is used to explain the present invention together, but is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is implementation environment schematic diagram shown according to an exemplary embodiment.
Fig. 2 is the process of the method for realizing striding equipment screen coordinate adaptation shown in an exemplary embodiment according to the present invention
Figure.
Fig. 3 is the stream of the method for realizing striding equipment screen coordinate adaptation shown in another exemplary embodiment according to the present invention
Cheng Tu.
Fig. 4 is the frame of the device for realizing striding equipment screen coordinate adaptation shown in an exemplary embodiment according to the present invention
Figure.
Fig. 5 is the frame of the device for realizing striding equipment screen coordinate adaptation shown in another exemplary embodiment according to the present invention
Figure.
Fig. 6 is the flow chart of the method for the operation equipment shown in an exemplary embodiment according to the present invention.
Fig. 7 is the block diagram of the device of the operation equipment shown in an exemplary embodiment according to the present invention.
Fig. 8 is the block diagram of the device of the operation equipment shown in another exemplary embodiment according to the present invention.
Specific embodiment
Below in conjunction with attached drawing, detailed description of the preferred embodiments.It should be understood that this place is retouched
The specific embodiment stated is merely to illustrate and explain the present invention, and is not intended to restrict the invention.
Fig. 1 is implementation environment schematic diagram shown according to an exemplary embodiment.As shown in Figure 1, the implementation environment can be with
It include: equipment 110, equipment 120.Equipment 110,120 can be the equipment that mobile phone, tablet computer etc. have screen.In Fig. 1,
Equipment 110,120 takes the mobile phone as an example to illustrate.In a kind of application scenarios, mobile phone 110 can be for for recording setting for test script
Standby, mobile phone 120 can be the tested mobile phone for playback script.In another application scenarios, in user's operation mobile phone 110,
The same operation of mobile phone 120 can be triggered simultaneously, realize the effect of the multiple mobile phones of once-through operation.
Fig. 2 is the process of the method for realizing striding equipment screen coordinate adaptation shown in an exemplary embodiment according to the present invention
Figure.This method can be applied to the equipment with screen.For example, can be applied to equipment 120 shown in FIG. 1.As shown in Fig. 2,
This method may include:
In step 210, the Horizontal number of pixels of the first device screen resolution ratio of acquisition, screen density, the first coordinate,
In, when first coordinate is that first device screen shows the first picture, the seat of the first object on first picture
Mark.
In a step 220, Horizontal number of pixels, the screen density of the second device screen resolution ratio are obtained.
In step 230, according to the Horizontal number of pixels of the first device screen resolution ratio, first coordinate, and,
The Horizontal number of pixels of the second device screen resolution ratio, the abscissa for calculating the second coordinate, wherein second coordinate is
When second device screen shows the first picture, the coordinate of the first object on first picture.
It is understood that exhibition method of first picture in the first equipment and the second equipment is (for example, scaling
Ratio, relative position of relative screen frame etc. in screen) it can be identical, it is also possible to different.In different feelings
Under condition, then calculated second coordinate can be translated accordingly, details are not described herein according to exhibition method.
For example, the abscissa and horizontal pixel ratio of first coordinate can be equal to according to the abscissa of second coordinate
Product, calculate the abscissa of second coordinate, wherein the horizontal pixel ratio be equal to the second device screen resolution ratio
Horizontal number of pixels divided by the first device screen resolution ratio Horizontal number of pixels.It is expressed with formula i.e. are as follows: BX=AX*
(BResX/AResX), wherein BX is the abscissa of the second coordinate, and X is the abscissa of the first coordinate, and BResX is the second equipment screen
The Horizontal number of pixels of curtain resolution ratio, AResX are the Horizontal number of pixels of the first device screen resolution ratio.
In step 240, according to first coordinate, the screen density of first equipment and second equipment
Screen density calculates the ordinate of second coordinate.
For example, the ordinate and screen density ratio of first coordinate can be equal to according to the ordinate of second coordinate
Product, obtain the ordinate of second coordinate, wherein the screen density ratio be equal to the second device screen density divided by
The first device screen density.It is expressed with formula i.e. are as follows: BY=AY* (Bdensity/Adensity), wherein BY
The ordinate of two coordinates, AY are the ordinate of the first coordinate, and Bdensity is the second device screen density, Adensity first
Device screen density.
As it can be seen that the present invention considers same target coordinate caused by distinct device screen resolution, screen density difference
It is inconsistent, thus according to the Horizontal number of pixels of the first device screen resolution ratio, the first coordinate, and, the second device screen is differentiated
The Horizontal number of pixels of rate, the horizontal seat for calculating second coordinate of the corresponding target of first coordinate on the second device screen
Mark, according to the screen density of the first equipment and the screen density of the second equipment, calculates the ordinate of the second coordinate, thus real
The coordinate adaptation of striding equipment screen is showed.
Fig. 3 is the stream of the method for realizing striding equipment screen coordinate adaptation shown in another exemplary embodiment according to the present invention
Cheng Tu.This method can be applied to the equipment with screen.For example, can be applied to equipment 120 shown in FIG. 1.Such as Fig. 3 institute
Show, this method may include:
In the step 310, the Horizontal number of pixels of the first device screen resolution ratio of acquisition, screen density, the first coordinate,
In, when first coordinate is that first device screen shows the first picture, the seat of the first object on first picture
Mark.
In step 320, Horizontal number of pixels, the screen density of the second device screen resolution ratio are obtained.
In a step 330, according to the Horizontal number of pixels of the first device screen resolution ratio, first coordinate, and,
The Horizontal number of pixels of the second device screen resolution ratio, the abscissa for calculating the second coordinate.
In step 340, according to first coordinate, the screen density of first equipment and second equipment
Screen density calculates the ordinate of second coordinate.
In step 350, by the abscissa of second coordinate multiplied by preset abscissa coefficient of rectifying deviation, after obtaining correction
Abscissa, and, the vertical seat by the ordinate of second coordinate multiplied by preset ordinate coefficient of rectifying deviation, after being rectified a deviation
Mark.
For example, being expressed with formula i.e. are as follows: BX=AX* (BResX/AResX) * correctionX, BY=AY*
(Bdensity/Adensity)*correctionY.Wherein, correctionX is abscissa coefficient of rectifying deviation, correctionY
For ordinate coefficient of rectifying deviation.Wherein, the correction factor is 1 under normal circumstances, that is, does not have to correction.It is special in two device screen differences
When big, the correction factor may be set according to actual conditions.The correction factor can be obtained by artificial test of many times, alternatively, can also
To be obtained by calculating.For example, can by the first coordinate known on the first device screen, and, on the second device screen with
Its corresponding known second coordinate, Horizontal number of pixels, screen density substitute into above-mentioned formula, and then the correction for calculating can be used
The factor, to be calculated on, the second device screen corresponding with other coordinates on the first device screen using the correction factor
Other coordinates.
As it can be seen that the embodiment of the present invention calculate the second device screen coordinate when, not only introduce device screen resolution ratio,
Screen density, and the correction factor is also introduced, so that it is more accurate to remain to be calculated when device screen differs greatly
Coordinate.
Fig. 4 is the device 400 of the realization striding equipment screen coordinate adaptation shown in an exemplary embodiment according to the present invention
Block diagram.The device can be configured at the equipment with screen.For example, equipment 120 shown in FIG. 1 can be configured at.Such as Fig. 4 institute
Show, the apparatus may include: first obtains module 410, abscissa computing module 420, ordinate computing module 430.
The first acquisition module 410, can be configured as Horizontal number of pixels, the screen for obtaining the first device screen resolution ratio
Density, the first coordinate, wherein when first coordinate is that first device screen shows the first picture, first picture
On first object coordinate;And obtain the Horizontal number of pixels of the second device screen resolution ratio, screen density.
The abscissa computing module 420 can be configured as the horizontal pixel according to the first device screen resolution ratio
Several, described first coordinate, and, the Horizontal number of pixels of the second device screen resolution ratio, the horizontal seat for calculating the second coordinate
Mark, wherein first object when second coordinate is that second device screen shows the first picture, on first picture
Coordinate.
For example, the abscissa computing module 420 can be configured as according to the abscissa of second coordinate equal to described
The abscissa of first coordinate and the product of horizontal pixel ratio, calculate the abscissa of second coordinate, wherein the horizontal pixel
Than being equal to the Horizontal number of pixels of the second device screen resolution ratio divided by the horizontal pixel of the first device screen resolution ratio
Number.
The ordinate computing module 430 can be configured as close according to the screen of first coordinate, first equipment
The screen density of degree and second equipment, calculates the ordinate of second coordinate.
For example, the ordinate computing module 430 can be configured as according to the ordinate of second coordinate equal to described
The ordinate of first coordinate and the product of screen density ratio, obtain the ordinate of second coordinate, wherein the screen density ratio
Equal to the second device screen density divided by the first device screen density.
As it can be seen that the present invention considers same target coordinate caused by distinct device screen resolution, screen density difference
It is inconsistent, thus according to the Horizontal number of pixels of the first device screen resolution ratio, the first coordinate, and, the second device screen is differentiated
The Horizontal number of pixels of rate, the horizontal seat for calculating second coordinate of the corresponding target of first coordinate on the second device screen
Mark, according to the screen density of the first equipment and the screen density of the second equipment, calculates the ordinate of the second coordinate, thus real
The coordinate adaptation of striding equipment screen is showed.
Fig. 5 is the frame of the device for realizing striding equipment screen coordinate adaptation shown in another exemplary embodiment according to the present invention
Figure.The device can be configured at the equipment with screen.For example, equipment 120 shown in FIG. 1 can be configured at.As shown in figure 5,
The device can also include: correction module 440, can be configured as the abscissa of second coordinate multiplied by preset horizontal seat
Mark coefficient of rectifying deviation, the abscissa after being rectified a deviation;By the ordinate of second coordinate multiplied by preset ordinate coefficient of rectifying deviation,
Ordinate after being rectified a deviation.
Fig. 6 is the flow chart of the method for the operation equipment shown in an exemplary embodiment according to the present invention.This method can be with
Applied to the equipment with screen.For example, can be applied to equipment 120 shown in FIG. 1.As shown in fig. 6, this method can wrap
It includes:
In step 610, the first operational order is obtained, wherein first operational order is aobvious in the first device screen
To the first operational order executed at the first coordinate on the first picture shown.
It, can be by first operational order executed on said first device in a kind of possible embodiment
Script is carried out to record to obtain the script comprising the first operational order.For example, method provided in an embodiment of the present invention can be used for answering
With in the application scenarios of test.First operational order can be the corresponding operation tested.
In step 620, it using the method for realizing striding equipment screen coordinate adaptation as described in any embodiment of the present invention, obtains
To the second coordinate.
In act 630, the first behaviour described to execution at the second coordinate on the first picture that the second device screen is shown
It instructs.
The embodiment of the first operational order is obtained in conjunction with above by recording script, it can be by first in the script
Coordinate replaces with second coordinate, obtains the replaced script of coordinate, after second equipment executes the coordinate replacement
Script.
As it can be seen that the embodiment of the present invention is adapted to by striding equipment screen coordinate, distinct device can be accurately positioned according to coordinate
Same target on screen, according to the operation on a device screen to target, on another device screen to same target into
Row same operation.
For example, use can be recorded on mobile phone 110 as shown in connection with fig. 1 in a kind of possible application scenarios of implementation environment
In the script of test application 1101, using the method for operation equipment provided in an embodiment of the present invention on mobile phone 120, according to mobile phone
110, the Horizontal number of pixels of 120 screen resolution, screen density, on 110 screen of mobile phone using the coordinate at 1101, calculate
The coordinate at 1101 is applied on 120 screen of mobile phone, and the coordinate in script is replaced with to the seat applied at 1101 on 120 screen of mobile phone
Mark, then the script is played back, to realize the automatic test to applying 1101 on mobile phone 120.Implementation environment is another as shown in connection with fig. 1
In a kind of application scenarios, in user's operation mobile phone 110, sent by the operational order on mobile phone 110 and by operation coordinate
To mobile phone 120, using the method for operation equipment provided in an embodiment of the present invention on mobile phone 120, according to the screen of mobile phone 110,120
The curtain Horizontal number of pixels of resolution ratio, screen density, on 110 screen of mobile phone by operation coordinate, calculate and grasped on 120 screen of mobile phone
Make coordinate, can automatically on mobile phone 120 corresponding position execute same operation, realize the multiple mobile phones of once-through operation effect.
Fig. 7 is the block diagram of the device 700 of the operation equipment shown in an exemplary embodiment according to the present invention.The device can be with
It is configured at the equipment with screen.For example, equipment 120 shown in FIG. 1 can be configured at.As shown in fig. 7, the device can wrap
Include: second obtains module 710, coordinate adaptation module 720 and operation executing module 730.
The second acquisition module 710, can be configured as and obtain the first operational order, wherein first operational order
For on the first picture that the first device screen is shown at the first coordinate execute the first operational order.
The coordinate adaptation module 720 can be configured as using the realization striding equipment screen as described in any embodiment of the present invention
The method of curtain coordinate adaptation, obtains the second coordinate.
The operation executing module 730 can be configured as and sit on the first picture that the second device screen is shown to second
First operational order is executed at mark.
In a kind of possible embodiment, the second acquisition module 710 be can be configured as by aobvious in the first device screen
The progress of the first operational order described in first object script is recorded to obtain the foot comprising the first operational order on the first picture shown
This.
The embodiment of the first operational order is obtained in conjunction with by recording script, another exemplary of the present invention as shown in Figure 8
Implement the block diagram of the device 700 of the operation equipment exemplified, operation executing module 730 may include: coordinate replacement submodule
731, it can be configured as and the first coordinate in the script is replaced with into second coordinate, obtain the replaced foot of coordinate
This.Implementation sub-module 732 is operated, can be configured as and execute the replaced script of coordinate in second equipment.
As it can be seen that the embodiment of the present invention is adapted to by striding equipment screen coordinate, distinct device can be accurately positioned according to coordinate
Same target on screen, according to the operation on a device screen to target, on another device screen to same target into
Row same operation.
It is described the prefered embodiments of the present invention in detail above in conjunction with attached drawing, still, the present invention is not limited to above-mentioned realities
The detail in mode is applied, within the scope of the technical concept of the present invention, a variety of letters can be carried out to technical solution of the present invention
Monotropic type, these simple variants all belong to the scope of protection of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, it can be combined in any appropriate way.In order to avoid unnecessary repetition, the present invention to it is various can
No further explanation will be given for the combination of energy.
In addition, various embodiments of the present invention can be combined randomly, as long as it is without prejudice to originally
The thought of invention, it should also be regarded as the disclosure of the present invention.
Claims (8)
1. a kind of method for realizing striding equipment screen coordinate adaptation characterized by comprising
Obtain Horizontal number of pixels, the screen density of the first device screen resolution ratio, the first coordinate, wherein first coordinate is
When first device screen shows the first picture, the coordinate of the first object on first picture;
And
Obtain Horizontal number of pixels, the screen density of the second device screen resolution ratio;
According to the Horizontal number of pixels of the first device screen resolution ratio, first coordinate, and, second device screen
The Horizontal number of pixels of resolution ratio, the abscissa for calculating the second coordinate, wherein second coordinate is second device screen
When showing the first picture, the coordinate of the first object on first picture;It is described according to the first device screen resolution ratio
Horizontal number of pixels, first coordinate, and, the Horizontal number of pixels of the second device screen resolution ratio calculates second
The abscissa of coordinate includes: the abscissa and horizontal pixel ratio for being equal to first coordinate according to the abscissa of second coordinate
Product, calculate the abscissa of second coordinate, wherein the horizontal pixel ratio be equal to the second device screen resolution ratio
Horizontal number of pixels divided by the first device screen resolution ratio Horizontal number of pixels;According to first coordinate, described first
The screen density of the screen density of equipment and second equipment calculates the ordinate of second coordinate;The basis
The screen density of first coordinate, the screen density of first equipment and second equipment, calculates described second
The ordinate of coordinate includes:
It is equal to the ordinate of first coordinate and the product of screen density ratio according to the ordinate of second coordinate, obtains described
The ordinate of second coordinate, wherein the screen density ratio is equal to the second device screen density divided by first equipment
Screen density.
2. the method according to claim 1, wherein the method also includes:
Abscissa by the abscissa of second coordinate multiplied by preset abscissa coefficient of rectifying deviation, after being rectified a deviation;
Ordinate by the ordinate of second coordinate multiplied by preset ordinate coefficient of rectifying deviation, after being rectified a deviation.
3. a kind of device for realizing striding equipment screen coordinate adaptation characterized by comprising
First obtains module, is configured as obtaining Horizontal number of pixels, the screen density of the first device screen resolution ratio, first sits
Mark, wherein first object when first coordinate is that first device screen shows the first picture, on first picture
Coordinate;And obtain the Horizontal number of pixels of the second device screen resolution ratio, screen density;
Abscissa computing module is configured as the Horizontal number of pixels according to the first device screen resolution ratio, first seat
Mark, and, the Horizontal number of pixels of the second device screen resolution ratio, the abscissa for calculating the second coordinate, wherein described the
When two coordinates are that second device screen shows the first picture, the coordinate of the first object on first picture;
Ordinate computing module is configured as according to first coordinate, the screen density of first equipment and described
The screen density of two equipment calculates the ordinate of second coordinate;
The abscissa computing module is configured as being equal to the horizontal seat of first coordinate according to the abscissa of second coordinate
The product of mark and horizontal pixel ratio, calculates the abscissa of second coordinate, wherein the horizontal pixel ratio is equal to described second
The Horizontal number of pixels of device screen resolution ratio divided by the first device screen resolution ratio Horizontal number of pixels;
The ordinate computing module is configured as being equal to the vertical seat of first coordinate according to the ordinate of second coordinate
The product of mark and screen density ratio, obtains the ordinate of second coordinate, wherein the screen density ratio is equal to described second and sets
Standby screen density is divided by the first device screen density.
4. device according to claim 3, which is characterized in that described device further include:
Correction module, is configured as being rectified a deviation the abscissa of second coordinate multiplied by preset abscissa coefficient of rectifying deviation
Abscissa afterwards;Ordinate by the ordinate of second coordinate multiplied by preset ordinate coefficient of rectifying deviation, after being rectified a deviation.
5. a kind of method for operating equipment characterized by comprising
Obtain the first operational order, wherein first operational order is right on the first picture that the first device screen is shown
The first operational order executed at first coordinate;
Using the method as claimed in claim 1 or 2 for realizing striding equipment screen coordinate adaptation, the second coordinate is obtained;
To execution first operational order at the second coordinate on the first picture that the second device screen is shown.
6. according to the method described in claim 5, it is characterized in that, the first operational order of the acquisition includes:
Obtain include first operational order script, wherein the script, by executing on said first device
First operational order carries out script and records to obtain;
It is described to include: to execution first operational order at the second coordinate on the first picture that the second device screen is shown
The first coordinate in the script is replaced with into second coordinate, obtains the replaced script of coordinate;
The replaced script of coordinate is executed in second equipment.
7. a kind of device for operating equipment characterized by comprising
Second obtains module, is configured as obtaining the first operational order, wherein first operational order is in the first equipment screen
To the first operational order executed at the first coordinate on first picture of curtain display;
Coordinate adaptation module is configured to apply realization striding equipment screen coordinate adaptation according to any one of claims 1-4
Method, obtain the second coordinate;
Operation executing module is configured as on the first picture that the second device screen is shown to executing described the at the second coordinate
One operational order.
8. device according to claim 7, which is characterized in that the second acquisition module is configured as obtaining comprising described
The script of first operational order, wherein the script, by first operational order executed on said first device
Script is carried out to record to obtain;
The operation executing module includes:
Coordinate replaces submodule, is configured as the first coordinate in the script replacing with second coordinate, obtains coordinate
Replaced script;
Implementation sub-module is operated, is configured as executing the replaced script of coordinate in second equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610452989.9A CN106095373B (en) | 2016-06-21 | 2016-06-21 | Realize striding equipment screen coordinate adaptation, the method for operation equipment and corresponding device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610452989.9A CN106095373B (en) | 2016-06-21 | 2016-06-21 | Realize striding equipment screen coordinate adaptation, the method for operation equipment and corresponding device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106095373A CN106095373A (en) | 2016-11-09 |
CN106095373B true CN106095373B (en) | 2019-05-03 |
Family
ID=57238870
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610452989.9A Active CN106095373B (en) | 2016-06-21 | 2016-06-21 | Realize striding equipment screen coordinate adaptation, the method for operation equipment and corresponding device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106095373B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107153520B (en) * | 2017-05-08 | 2019-03-19 | 广州美凯信息技术股份有限公司 | Multi-screen cooperation control method, device and multi-screen management system |
CN107450841B (en) | 2017-08-08 | 2019-05-07 | 腾讯科技(深圳)有限公司 | Interactive object control method and device |
CN109925675B (en) * | 2019-01-15 | 2020-08-25 | 河南翔宇医疗设备股份有限公司 | Intelligent frosted plate touch screen vision synchronization method, device and system and mobile terminal |
CN110543278B (en) * | 2019-08-19 | 2021-08-13 | 广州点云科技有限公司 | Cross-device screen coordinate adaptation method and device and storage medium |
CN112685279B (en) * | 2019-10-17 | 2024-02-20 | 深圳市腾讯网域计算机网络有限公司 | Script recording method, script recording device and terminal equipment |
CN111124567B (en) * | 2019-12-02 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Operation recording method and device for target application |
CN111600995A (en) * | 2020-05-15 | 2020-08-28 | 上海莉莉丝科技股份有限公司 | Mobile device and method for correcting deviation of game user interface of mobile device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104750388A (en) * | 2015-03-31 | 2015-07-01 | 努比亚技术有限公司 | Screen expanding method and device |
CN105335288A (en) * | 2015-10-27 | 2016-02-17 | 东软集团股份有限公司 | Positioning method and device of mobile application page object |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2192545B1 (en) * | 2008-11-27 | 2014-01-08 | Agfa Healthcare | Method of changing at least one of density and contrast of an image |
KR102124043B1 (en) * | 2013-07-25 | 2020-06-18 | 삼성디스플레이 주식회사 | Pixel array structure and display device employing the same |
-
2016
- 2016-06-21 CN CN201610452989.9A patent/CN106095373B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104750388A (en) * | 2015-03-31 | 2015-07-01 | 努比亚技术有限公司 | Screen expanding method and device |
CN105335288A (en) * | 2015-10-27 | 2016-02-17 | 东软集团股份有限公司 | Positioning method and device of mobile application page object |
Also Published As
Publication number | Publication date |
---|---|
CN106095373A (en) | 2016-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106095373B (en) | Realize striding equipment screen coordinate adaptation, the method for operation equipment and corresponding device | |
TWI490772B (en) | Method and apparatus for adapting custom control components to a screen | |
US20150363913A1 (en) | Adaptive filter demosaicizing for super resolution | |
CN103941958B (en) | A kind of method and terminal device of desktop management | |
CN104394313A (en) | Special effect video generating method and device | |
WO2012030869A4 (en) | Multi-image face-based image processing | |
US9633443B2 (en) | Image processing device, image processing method, and program for cutting out a cut-out image from an input image | |
CN105874776A (en) | Image processing apparatus and method | |
CN104238869B (en) | Float icon display system and method | |
CN104090689B (en) | A kind of method and system of mobile terminal and its interactive projection | |
CN105991925A (en) | Scene composition indicating method and indicating device | |
US20190053607A1 (en) | Electronic apparatus and method for providing makeup trial information thereof | |
CN104572123B (en) | A kind of scenario generation method and device | |
CN104574491A (en) | Multi-lattice special effect rendering method and system based on mobile terminal platform | |
CN103873759B (en) | A kind of image pickup method and electronic equipment | |
CN103873760B (en) | A kind of focusing method of adjustment and electronic equipment | |
CN105472245A (en) | Photographing method and electronic device | |
CN105808184B (en) | The method, apparatus of display Android 2D application image and a kind of helmet | |
JP6026650B2 (en) | Widget adjustment method, apparatus, terminal, program, and recording medium | |
CN104104874A (en) | Orbit shooting method and shooting method and device of object motion trails | |
CN103853534B (en) | A kind of photo instant playback method and device | |
CN105677155B (en) | The setting method and system of intelligent terminal application icon | |
CN105320506B (en) | A kind of method and device obtaining image | |
CN109448085A (en) | Image rendering device, method and its non-transient computer-readable storage medium | |
JP5645448B2 (en) | Image processing apparatus, image processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |