CN106095373A - Realize striding equipment screen coordinate is adaptive, operate equipment method and the device of correspondence - Google Patents

Realize striding equipment screen coordinate is adaptive, operate equipment method and the device of correspondence Download PDF

Info

Publication number
CN106095373A
CN106095373A CN201610452989.9A CN201610452989A CN106095373A CN 106095373 A CN106095373 A CN 106095373A CN 201610452989 A CN201610452989 A CN 201610452989A CN 106095373 A CN106095373 A CN 106095373A
Authority
CN
China
Prior art keywords
coordinate
screen
equipment
abscissa
pixels
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.)
Granted
Application number
CN201610452989.9A
Other languages
Chinese (zh)
Other versions
CN106095373B (en
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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201610452989.9A priority Critical patent/CN106095373B/en
Publication of CN106095373A publication Critical patent/CN106095373A/en
Application granted granted Critical
Publication of CN106095373B publication Critical patent/CN106095373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

The invention discloses and a kind of realize that striding equipment screen coordinate is adaptive, the method for operation equipment and the device of correspondence.Wherein, the method realizing striding equipment screen coordinate adaptive includes: obtain the Horizontal number of pixels of the first device screen resolution, screen density, the first coordinate, wherein, first coordinate is the first device screen when showing 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, screen density;Horizontal number of pixels according to the first device screen resolution, the first coordinate, and, the Horizontal number of pixels of the second device screen resolution, calculate the abscissa of the second coordinate, wherein, second coordinate is the second device screen when showing the first picture, the coordinate of the first object on the first picture;According to the first coordinate, the screen density of the first equipment and the screen density of the second equipment, calculate the vertical coordinate of the second coordinate, it is achieved thereby that the coordinate of striding equipment screen is adaptive.

Description

Realize striding equipment screen coordinate is adaptive, operate equipment method and the device of correspondence
Technical field
The present invention relates to electronic device field, in particular it relates to one realizes striding equipment screen coordinate adaptation, operation equipment Method and the device of correspondence.
Background technology
At present, when the application in equipment is operated, many employings method based on object location.Namely by setting In Bei, object is identified, and then according to the object identity identified, object is operated.But, have and much apply Cannot be identified in equipment.In this case, it is desirable to by target position in screen, location, it is right to come Application operates.But, owing to the same target (such as, button) of the same frame coordinate on the screen of distinct device has May be incomplete same so that this idea cannot be achieved.
Therefore, how striding equipment screen carries out coordinate and is adapted to for people's problem in the urgent need to address.
Summary of the invention
It is an object of the invention to provide a kind of realize that striding equipment screen coordinate is adaptive, the method for operation equipment and the dress of correspondence Put.
In first aspect of the embodiment of the present invention, it is provided that a kind of method realizing striding equipment screen coordinate adaptation.Should Method may include that the acquisition Horizontal number of pixels of the first device screen resolution, screen density, the first coordinate, wherein, and described the One coordinate is described first device screen when showing the first picture, the coordinate of the first object on described first picture;And, obtain Take the Horizontal number of pixels of the second device screen resolution, screen density;Level picture according to described first device screen resolution Prime number, described first coordinate, and, the Horizontal number of pixels of described second device screen resolution, calculate the horizontal stroke of the second coordinate Coordinate, wherein, described second coordinate is described second device screen when showing the first picture, the first mesh on described first picture Target coordinate;According to described first coordinate, the screen density of described first equipment and the screen density of described second equipment, meter Calculate the vertical coordinate of described second coordinate.
Alternatively, the described Horizontal number of pixels according to described first device screen resolution, described first coordinate, and, The Horizontal number of pixels of described second device screen resolution, the abscissa calculating the second coordinate include: sit according to described second Target abscissa is more long-pending than with horizontal pixel equal to the abscissa of described first coordinate, calculates the horizontal seat of described second coordinate Mark, wherein, described horizontal pixel than the Horizontal number of pixels equal to described second device screen resolution divided by described first equipment The Horizontal number of pixels of screen resolution.
Alternatively, described according to described first coordinate, the screen density of described first equipment and described second equipment Screen density, the vertical coordinate calculating described second coordinate includes: be equal to described first according to the vertical coordinate of described second coordinate The vertical coordinate of coordinate and screen density are more long-pending than, obtain the vertical coordinate of described second coordinate, and wherein, described screen density ratio is equal to Described second device screen density is divided by described first device screen density.
Alternatively, described method also includes: the abscissa of described second coordinate is multiplied by default abscissa coefficient of rectifying deviation, Abscissa after being rectified a deviation;The vertical coordinate of described second coordinate is multiplied by default vertical coordinate coefficient of rectifying deviation, after being rectified a deviation Vertical coordinate.
In second aspect of the embodiment of the present invention, it is provided that a kind of device realizing striding equipment screen coordinate adaptation.Should Device may include that the first acquisition module, is configured to obtain the Horizontal number of pixels of the first device screen resolution, screen close Degree, the first coordinate, wherein, described first coordinate is described first device screen when showing the first picture, on described first picture The coordinate of first object;And, obtain the Horizontal number of pixels of the second device screen resolution, screen density.Abscissa calculates Module, is configured to the Horizontal number of pixels according to described first device screen resolution, described first coordinate, and, described The Horizontal number of pixels of two device screen resolution, calculating the abscissa of the second coordinate, wherein, described second coordinate is described When two device screens show the first picture, the coordinate of the first object on described first picture.Vertical coordinate computing module, is configured According to described first coordinate, the screen density of described first equipment and the screen density of described second equipment, calculate institute State the vertical coordinate of the second coordinate.
Alternatively, described abscissa computing module is configured to the abscissa according to described second coordinate equal to described first The abscissa of coordinate and horizontal pixel are more long-pending than, calculate the abscissa of described second coordinate, wherein, and described horizontal pixel ratio etc. In the Horizontal number of pixels of described second device screen resolution divided by the Horizontal number of pixels of described first device screen resolution.
Alternatively, described vertical coordinate computing module is configured to the vertical coordinate according to described second coordinate equal to described first The vertical coordinate of coordinate and screen density are more long-pending than, obtain the vertical coordinate of described second coordinate, and wherein, described screen density ratio is equal to Described second device screen density is divided by described first device screen density.
Alternatively, described device also includes: correction module, is configured to be multiplied by default by the abscissa of described second coordinate Abscissa coefficient of rectifying deviation, the abscissa after being rectified a deviation;The vertical coordinate of described second coordinate is multiplied by default vertical coordinate entangle Parital coefficient, the vertical coordinate after being rectified a deviation.
In 3rd aspect of the embodiment of the present invention, it is provided that a kind of method operating equipment.The method may include that and obtains Taking the first operational order, wherein, described first operational order is to sit first on the first picture that the first device screen shows The first operational order performed at mark;The application side realizing striding equipment screen coordinate adaptation as described in any embodiment of the present invention Method, obtains the second coordinate;On the first picture that the second device screen shows, first operation described to execution at the second coordinate refers to Order.
Alternatively, described acquisition the first operational order includes: obtains and comprises the script of described first operational order, wherein, Described script, obtains by described first operational order performed on said first device carries out script recording.Described On the first picture that second device screen shows, described first operational order of execution at the second coordinate is included: by described script The first coordinate replace with described second coordinate, obtain coordinate replace after script, described second equipment perform described coordinate Script after replacement.
In 3rd aspect of the embodiment of the present invention, it is provided that a kind of device operating equipment.This device may include that Two acquisition modules, are configured to obtain the first operational order, and wherein, described first operational order is to show at the first device screen The first picture on at the first coordinate perform the first operational order.Coordinate adaptation module, is configured to apply right such as and wants Seek the method realizing striding equipment screen coordinate adaptation described in any one of 1-4, obtain the second coordinate.Operation executing module, is joined It is set on the first picture that the second device screen shows performing described first operational order at the second coordinate.
Alternatively, described second acquisition module is configured to obtain the script comprising described first operational order, wherein, institute Stating script, obtaining by described first operational order performed on said first device being carried out script recording.Described operation Execution module includes: coordinate replaces submodule, is configured to the first coordinate in described script is replaced with described second coordinate, Obtain the script after coordinate is replaced;Operation implementation sub-module, is configured to after described second equipment performs the replacement of described coordinate Script.
The same target coordinate that technical solution of the present invention causes according to distinct device screen resolution, screen density difference is not Unanimously, thus according to the Horizontal number of pixels of the first device screen resolution, the first coordinate, and, the second device screen resolution Horizontal number of pixels, calculate the horizontal seat of first object corresponding to described first coordinate the second coordinate on the second device screen Mark, according to described first coordinate, the screen density of the first equipment and the screen density of the second equipment, calculates the second coordinate Vertical coordinate, it is achieved thereby that the coordinate of striding equipment screen is adaptive, and, the operation equipment that coordinate based on striding equipment screen is adaptive Method, so that by coordinate striding equipment ground location target and target is carried out operation be achieved.
Other features and advantages of the present invention will be described in detail in detailed description of the invention part subsequently.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and constitutes the part of description, with following tool Body embodiment is used for explaining the present invention together, but is not intended that limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the implementation environment schematic diagram shown in an exemplary embodiment.
Fig. 2 is according to the flow process realizing the adaptive method of striding equipment screen coordinate shown in the present invention one exemplary embodiment Figure.
Fig. 3 is according to the stream realizing the adaptive method of striding equipment screen coordinate shown in another exemplary embodiment of the present invention Cheng Tu.
Fig. 4 is according to the frame realizing the adaptive device of striding equipment screen coordinate shown in the present invention one exemplary embodiment Figure.
Fig. 5 is according to the frame realizing the adaptive device of striding equipment screen coordinate shown in another exemplary embodiment of the present invention Figure.
Fig. 6 is the flow chart of the method according to the operation equipment shown in the present invention one exemplary embodiment.
Fig. 7 is the block diagram of the device according to the operation equipment shown in the present invention one exemplary embodiment.
Fig. 8 is the block diagram of the device according to the operation equipment shown in another exemplary embodiment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the detailed description of the invention of the present invention is described in detail.It should be appreciated that this place is retouched The detailed description of the invention stated is merely to illustrate and explains the present invention, is not limited to the present invention.
Fig. 1 is according to the implementation environment schematic diagram shown in an exemplary embodiment.As it is shown in figure 1, this implementation environment is permissible Including: equipment 110, equipment 120.Equipment 110,120 can be the equipment that mobile phone, panel computer etc. have screen.In FIG, Equipment 110,120 is illustrated as a example by mobile phone.In a kind of application scenarios, mobile phone 110 can be for recording setting of test script Standby, mobile phone 120 can be the tested mobile phone for playback script.In another kind of application scenarios, when user operation mobile phone 110, The same operation of mobile phone 120 can be triggered, it is achieved the effect of the multiple mobile phone of once-through operation simultaneously.
Fig. 2 is according to the flow process realizing the adaptive method of striding equipment screen coordinate shown in the present invention one exemplary embodiment Figure.The method can apply to the equipment with screen.For example, it is possible to be applied to the equipment 120 shown in Fig. 1.As in figure 2 it is shown, The method may include that
In step 210, obtain the Horizontal number of pixels of the first device screen resolution, screen density, the first coordinate, its In, described first coordinate is described first device screen when showing the first picture, the seat of the first object on described first picture Mark.
In a step 220, the Horizontal number of pixels of the second device screen resolution, screen density are obtained.
In step 230, according to Horizontal number of pixels, described first coordinate of described first device screen resolution, and, The Horizontal number of pixels of described second device screen resolution, calculating the abscissa of the second coordinate, wherein, described second coordinate is When described second device screen shows the first picture, the coordinate of the first object on described first picture.
It is understood that exhibition method (such as, the scaling that described first picture is in the first equipment and the second equipment Ratio, in screen the relative position etc. of relative screen frame) can be identical, it is also possible to be different.In different feelings Under condition, then the second coordinate calculated can be translated accordingly according to exhibition method, is not repeated them here.
For example, it is possible to be equal to abscissa and the horizontal pixel ratio of described first coordinate according to the abscissa of described second coordinate Long-pending, calculate the abscissa of described second coordinate, wherein, described horizontal pixel ratio is equal to described second device screen resolution Horizontal number of pixels divided by the Horizontal number of pixels of described first device screen resolution.Express with formula and be: 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, AResX is the Horizontal number of pixels of the first device screen resolution.
In step 240, according to described first coordinate, the screen density of described first equipment and described second equipment Screen density, calculates the vertical coordinate of described second coordinate.
For example, it is possible to be equal to vertical coordinate and the screen density ratio of described first coordinate according to the vertical coordinate of described second coordinate Long-pending, obtain the vertical coordinate of described second coordinate, wherein, described screen density than equal to described second device screen density divided by Described first device screen density.Expressing with formula and be: BY=AY* (Bdensity/Adensity), wherein, BY is The vertical coordinate of two coordinates, AY is the vertical coordinate of the first coordinate, and Bdensity is the second device screen density, and Adensity is first Device screen density.
The same target coordinate that visible, the present invention take into account distinct device screen resolution, screen density difference causes Inconsistent, thus according to the Horizontal number of pixels of the first device screen resolution, the first coordinate, and, the second device screen is differentiated The Horizontal number of pixels of rate, calculate the horizontal seat of target corresponding to described first coordinate the second coordinate on the second device screen Mark, according to screen density and the screen density of the second equipment of the first equipment, calculates the vertical coordinate of the second coordinate, thus real The coordinate having showed striding equipment screen is adaptive.
Fig. 3 is according to the stream realizing the adaptive method of striding equipment screen coordinate shown in another exemplary embodiment of the present invention Cheng Tu.The method can apply to the equipment with screen.For example, it is possible to be applied to the equipment 120 shown in Fig. 1.Such as Fig. 3 institute Showing, the method may include that
In the step 310, obtain the Horizontal number of pixels of the first device screen resolution, screen density, the first coordinate, its In, described first coordinate is described first device screen when showing the first picture, the seat of the first object on described first picture Mark.
In step 320, the Horizontal number of pixels of the second device screen resolution, screen density are obtained.
In a step 330, according to Horizontal number of pixels, described first coordinate of described first device screen resolution, and, The Horizontal number of pixels of described second device screen resolution, calculate the abscissa of the second coordinate.
In step 340, according to described first coordinate, the screen density of described first equipment and described second equipment Screen density, calculates the vertical coordinate of described second coordinate.
In step 350, the abscissa of described second coordinate is multiplied by default abscissa coefficient of rectifying deviation, after being rectified a deviation Abscissa, and, the vertical coordinate of described second coordinate is multiplied by default vertical coordinate coefficient of rectifying deviation, the vertical seat after being rectified a deviation Mark.
Such as, express with formula and be: BX=AX* (BResX/AResX) * correctionX, BY=AY* (Bdensity/Adensity)*correctionY.Wherein, correctionX is abscissa coefficient of rectifying deviation, correctionY For vertical coordinate coefficient of rectifying deviation.Wherein, the correction factor is generally 1, i.e. need not rectify a deviation.Special two device screen differences Time big, the correction factor can be set according to practical situation.The correction factor can be obtained by artificial test of many times, or, it is possible to To be obtained by calculating.For example, it is possible to by the first coordinate known on the first device screen, and, on the second device screen with Known second coordinate of its correspondence, Horizontal number of pixels, screen density substitute into above-mentioned formula, and then the correction calculating to use The factor, thus utilize this correction factor to calculate on, the second device screen corresponding with other coordinates on the first device screen Other coordinates.
Visible, the embodiment of the present invention calculate the second device screen coordinate time, not only introduce device screen resolution, Screen density, but also introduce the correction factor, during so that device screen differs greatly, it is the most accurate to remain to be calculated Coordinate.
Fig. 4 is according to the device 400 realizing striding equipment screen coordinate adaptation shown in the present invention one exemplary embodiment Block diagram.This device can be configured at the equipment with screen.For example, it is possible to be configured at the equipment 120 shown in Fig. 1.Such as Fig. 4 institute Showing, this device may include that the first acquisition module 410, abscissa computing module 420, vertical coordinate computing module 430.
This first acquisition module 410, can be configured to obtain the Horizontal number of pixels of the first device screen resolution, screen Density, the first coordinate, wherein, described first coordinate is described first device screen when showing the first picture, described first picture On the coordinate of first object;And, obtain the Horizontal number of pixels of the second device screen resolution, screen density.
This abscissa computing module 420, can be configured to the horizontal pixel according to described first device screen resolution First coordinate several, described, and, the Horizontal number of pixels of described second device screen resolution, calculate the horizontal seat of the second coordinate Mark, wherein, described second coordinate is described second device screen when showing the first picture, the first object on described first picture Coordinate.
Such as, this abscissa computing module 420 can be configured to the abscissa according to described second coordinate equal to described The abscissa of the first coordinate and horizontal pixel are more long-pending than, calculate the abscissa of described second coordinate, wherein, and described horizontal pixel Than equal to the Horizontal number of pixels of described second device screen resolution divided by the horizontal pixel of described first device screen resolution Number.
This vertical coordinate computing module 430, can be configured to the screen according to described first coordinate, described first equipment close Degree and the screen density of described second equipment, calculate the vertical coordinate of described second coordinate.
Such as, this vertical coordinate computing module 430 can be configured to the vertical coordinate according to described second coordinate equal to described The vertical coordinate of the first coordinate and screen density are more long-pending than, obtain the vertical coordinate of described second coordinate, wherein, and described screen density ratio Equal to described second device screen density divided by described first device screen density.
The same target coordinate that visible, the present invention take into account distinct device screen resolution, screen density difference causes Inconsistent, thus according to the Horizontal number of pixels of the first device screen resolution, the first coordinate, and, the second device screen is differentiated The Horizontal number of pixels of rate, calculate the horizontal seat of target corresponding to described first coordinate the second coordinate on the second device screen Mark, according to screen density and the screen density of the second equipment of the first equipment, calculates the vertical coordinate of the second coordinate, thus real The coordinate having showed striding equipment screen is adaptive.
Fig. 5 is according to the frame realizing the adaptive device of striding equipment screen coordinate shown in another exemplary embodiment of the present invention Figure.This device can be configured at the equipment with screen.For example, it is possible to be configured at the equipment 120 shown in Fig. 1.As it is shown in figure 5, This device can also include: correction module 440, can be configured to the abscissa of described second coordinate is multiplied by default horizontal seat Mark coefficient of rectifying deviation, the abscissa after being rectified a deviation;The vertical coordinate of described second coordinate is multiplied by default vertical coordinate coefficient of rectifying deviation, Vertical coordinate after being rectified a deviation.
Fig. 6 is the flow chart of the method according to the operation equipment shown in the present invention one exemplary embodiment.The method is permissible It is applied to the equipment with screen.For example, it is possible to be applied to the equipment 120 shown in Fig. 1.As shown in Figure 6, the method can be wrapped Include:
In step 610, obtaining the first operational order, wherein, described first operational order is to show at the first device screen To the first operational order performed at the first coordinate on the first picture shown.
In a kind of possible embodiment, can be by described first operational order performed on said first device Carry out script and record the script obtaining comprising the first operational order.Such as, the method that the embodiment of the present invention provides may be used for should In application scenarios with test.Described first operational order can be corresponding with carrying out the operation tested.
In step 620, application realizes the method that striding equipment screen coordinate is adaptive as described in any embodiment of the present invention, To the second coordinate.
In act 630, to performing described first behaviour at the second coordinate on the first picture that the second device screen shows Instruct.
In conjunction with obtaining the embodiment of the first operational order above by recording script, can be by first in described script Coordinate replaces with described second coordinate, obtains the script after coordinate is replaced, after described second equipment performs the replacement of described coordinate Script.
Visible, the embodiment of the present invention is adaptive by striding equipment screen coordinate, it is possible to be accurately positioned distinct device according to coordinate Same target on screen, according to operation to target on a device screen, enters same target on another device screen Row same operation.
Such as, in conjunction with in a kind of possible application scenarios of implementation environment shown in Fig. 1, use can be recorded on mobile phone 110 In the script of test application 1101, mobile phone 120 is applied the method operating equipment that the embodiment of the present invention provides, according to mobile phone 110, apply the coordinate at 1101 on the Horizontal number of pixels of the screen resolution of 120, screen density, mobile phone 110 screen, calculate Apply the coordinate at 1101 on mobile phone 120 screen, the coordinate in script is replaced with and on mobile phone 120 screen, applies the seat at 1101 Mark, then play back this script, thus realize the automatic test applying 1101 on mobile phone 120.Another in conjunction with implementation environment shown in Fig. 1 In a kind of application scenarios, when user operation mobile phone 110, send by the operational order on mobile phone 110 and by operation coordinate To mobile phone 120, mobile phone 120 is applied the method operating equipment that the embodiment of the present invention provides, according to the screen of mobile phone 110,120 By operation coordinate on the curtain Horizontal number of pixels of resolution, screen density, mobile phone 110 screen, calculate and grasped on mobile phone 120 screen Make coordinate, can automatically on mobile phone 120 corresponding position perform same operation, it is achieved the effect of the multiple mobile phone of once-through operation.
Fig. 7 is the block diagram of the device 700 according to the operation equipment shown in the present invention one exemplary embodiment.This device is permissible It is configured at the equipment with screen.For example, it is possible to be configured at the equipment 120 shown in Fig. 1.As it is shown in fig. 7, this device can wrap Include: the second acquisition module 710, coordinate adaptation module 720 and operation executing module 730.
This second acquisition module 710, can be configured to obtain the first operational order, wherein, described first operational order For on the first picture of showing at the first device screen to the first operational order performed at the first coordinate.
This coordinate adaptation module 720, can be configured to apply as described in any embodiment of the present invention and realize striding equipment screen The method that curtain coordinate is adaptive, obtains the second coordinate.
This operation executing module 730, can be configured on the first picture that the second device screen shows sit second Described first operational order is performed at mark.
In a kind of possible embodiment, the second acquisition module 710 can be configured to show at the first device screen On the first picture shown, the first operational order described in first object is carried out script and records the foot obtaining comprising the first operational order This.
In conjunction with obtaining the embodiment of the first operational order, another exemplary the most of the present invention by recording script The block diagram of the device 700 of the operation equipment shown in embodiment, operation executing module 730 may include that coordinate replaces submodule 731, can be configured to the first coordinate in described script is replaced with described second coordinate, obtain the foot after coordinate is replaced This.Operation implementation sub-module 732, can be configured to perform the script after described coordinate is replaced at described second equipment.
Visible, the embodiment of the present invention is adaptive by striding equipment screen coordinate, it is possible to be accurately positioned distinct device according to coordinate Same target on screen, according to operation to target on a device screen, enters same target on another device screen Row same operation.
The preferred embodiment of the present invention is described in detail above in association with accompanying drawing, but, the present invention is not limited to above-mentioned reality Execute the detail in mode, in the technology concept of the present invention, technical scheme can be carried out multiple letter Monotropic type, these simple variant belong to protection scope of the present invention.
It is further to note that each the concrete technical characteristic described in above-mentioned detailed description of the invention, at not lance In the case of shield, can be combined by any suitable means.In order to avoid unnecessary repetition, the present invention to various can The compound mode of energy illustrates the most separately.
Additionally, combination in any can also be carried out between the various different embodiment of the present invention, as long as it is without prejudice to this The thought of invention, it should be considered as content disclosed in this invention equally.

Claims (10)

1. one kind realizes the method that striding equipment screen coordinate is adaptive, it is characterised in that including:
Obtaining the Horizontal number of pixels of the first device screen resolution, screen density, the first coordinate, wherein, described first coordinate is When described first device screen shows the first picture, the coordinate of the first object on described first picture;
And,
Obtain the Horizontal number of pixels of the second device screen resolution, screen density;
Horizontal number of pixels according to described first device screen resolution, described first coordinate, and, described second device screen The Horizontal number of pixels of resolution, calculating the abscissa of the second coordinate, wherein, described second coordinate is described second device screen When showing the first picture, the coordinate of the first object on described first picture;
According to described first coordinate, the screen density of described first equipment and the screen density of described second equipment, calculate The vertical coordinate of described second coordinate.
Method the most according to claim 1, it is characterised in that the described level according to described first device screen resolution Pixel count, described first coordinate, and, the Horizontal number of pixels of described second device screen resolution, calculate the second coordinate Abscissa includes:
Abscissa according to described second coordinate is more long-pending than with horizontal pixel equal to the abscissa of described first coordinate, calculates institute Stating the abscissa of the second coordinate, wherein, described horizontal pixel is than the Horizontal number of pixels equal to described second device screen resolution Horizontal number of pixels divided by described first device screen resolution;
Described according to described first coordinate, the screen density of described first equipment and the screen density of described second equipment, meter The vertical coordinate calculating described second coordinate includes:
Vertical coordinate according to described second coordinate is more long-pending than with screen density equal to the vertical coordinate of described first coordinate, obtains described The vertical coordinate of the second coordinate, wherein, described screen density than equal to described second device screen density divided by described first equipment Screen density.
3. according to the method described in claim 1 or 2 any one claim, it is characterised in that described method also includes:
The abscissa of described second coordinate is multiplied by default abscissa coefficient of rectifying deviation, the abscissa after being rectified a deviation;
The vertical coordinate of described second coordinate is multiplied by default vertical coordinate coefficient of rectifying deviation, the vertical coordinate after being rectified a deviation.
4. one kind realizes the device that striding equipment screen coordinate is adaptive, it is characterised in that including:
First acquisition module, is configured to obtain the Horizontal number of pixels of the first device screen resolution, screen density, and first sits Mark, wherein, described first coordinate is described first device screen when showing the first picture, the first object on described first picture Coordinate;And, obtain the Horizontal number of pixels of the second device screen resolution, screen density;
Abscissa computing module, is configured to the Horizontal number of pixels according to described first device screen resolution, described first seat Mark, and, the Horizontal number of pixels of described second device screen resolution, calculate the abscissa of the second coordinate, wherein, described the Two coordinates are described second device screen when showing the first picture, the coordinate of the first object on described first picture;
Vertical coordinate computing module, is configured to according to described first coordinate, the screen density of described first equipment and described The screen density of two equipment, calculates the vertical coordinate of described second coordinate.
Device the most according to claim 4, it is characterised in that described abscissa computing module is configured to according to described The abscissa of two coordinates is more long-pending than with horizontal pixel equal to the abscissa of described first coordinate, calculates the horizontal stroke of described second coordinate Coordinate, wherein, described horizontal pixel sets divided by described first than equal to the Horizontal number of pixels of described second device screen resolution The Horizontal number of pixels of standby screen resolution;
Described vertical coordinate computing module is configured to the vertical seat equal to described first coordinate of the vertical coordinate according to described second coordinate Marking more long-pending than with screen density, obtain the vertical coordinate of described second coordinate, wherein, described screen density sets than equal to described second Standby screen density is divided by described first device screen density.
6. according to the device described in claim 4 or 5 any one claim, it is characterised in that described device also includes:
Correction module, is configured to the abscissa of described second coordinate is multiplied by default abscissa coefficient of rectifying deviation, is rectified a deviation After abscissa;The vertical coordinate of described second coordinate is multiplied by default vertical coordinate coefficient of rectifying deviation, the vertical coordinate after being rectified a deviation.
7. the method operating equipment, it is characterised in that including:
Obtaining the first operational order, wherein, described first operational order is right on the first picture that the first device screen shows The first operational order performed at first coordinate;
The application method realizing striding equipment screen coordinate adaptation as described in any one of claim 1-3, obtains the second coordinate;
To performing described first operational order at the second coordinate on the first picture that the second device screen shows.
Method the most according to claim 7, it is characterised in that described acquisition the first operational order includes:
Obtaining and comprise the script of described first operational order, wherein, described script, by performing on said first device Described first operational order carries out script recording and obtains;
Described on the first picture that the second device screen shows at the second coordinate perform described first operational order include:
The first coordinate in described script is replaced with described second coordinate, obtains the script after coordinate is replaced;
The script after described coordinate is replaced is performed at described second equipment.
9. the device operating equipment, it is characterised in that including:
Second acquisition module, is configured to obtain the first operational order, and wherein, described first operational order is at the first equipment screen To the first operational order performed at the first coordinate on first picture of curtain display;
Coordinate adaptation module, be configured to apply as described in any one of claim 1-4 to realize striding equipment screen coordinate adaptive Method, obtain the second coordinate;
Operation executing module, is configured on the first picture that the second device screen shows performing described the at the second coordinate One operational order.
Device the most according to claim 9, it is characterised in that described second acquisition module is configured to acquisition and comprises institute State the script of the first operational order, wherein, described script, by described first operation performed on said first device is referred to Order carries out script recording and obtains;
Described operation executing module includes:
Coordinate replaces submodule, is configured to the first coordinate in described script is replaced with described second coordinate, obtains coordinate Script after replacement;
Operation implementation sub-module, is configured to perform the script after described coordinate is replaced at described second equipment.
CN201610452989.9A 2016-06-21 2016-06-21 Realize striding equipment screen coordinate adaptation, the method for operation equipment and corresponding device Active CN106095373B (en)

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 true CN106095373A (en) 2016-11-09
CN106095373B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153520A (en) * 2017-05-08 2017-09-12 广州美凯信息技术股份有限公司 Multi-screen cooperation control method, device and multi-screen management system
CN107450841A (en) * 2017-08-08 2017-12-08 腾讯科技(深圳)有限公司 interactive object control method and device
CN109925675A (en) * 2019-01-15 2019-06-25 河南翔宇医疗设备股份有限公司 Intelligent matte board touch screen visual synchronization method, apparatus, system and mobile terminal
CN110543278A (en) * 2019-08-19 2019-12-06 广州点云科技有限公司 Cross-device screen coordinate adaptation method and device and storage medium
CN111124567A (en) * 2019-12-02 2020-05-08 腾讯科技(深圳)有限公司 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
CN112685279A (en) * 2019-10-17 2021-04-20 腾讯科技(深圳)有限公司 Script recording method and device and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100189375A1 (en) * 2008-11-27 2010-07-29 Agfa Healthcare Nv Method and System for Changing Image Density and Contrast
US20150029208A1 (en) * 2013-07-25 2015-01-29 Samsung Display Co., Ltd. Pixel array structure and display apparatus including the same
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100189375A1 (en) * 2008-11-27 2010-07-29 Agfa Healthcare Nv Method and System for Changing Image Density and Contrast
US20150029208A1 (en) * 2013-07-25 2015-01-29 Samsung Display Co., Ltd. Pixel array structure and display apparatus including the same
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

Cited By (13)

* Cited by examiner, † Cited by third party
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
CN107153520A (en) * 2017-05-08 2017-09-12 广州美凯信息技术股份有限公司 Multi-screen cooperation control method, device and multi-screen management system
US10963100B2 (en) 2017-08-08 2021-03-30 Tencent Technology (Shenzhen) Company Limited Interactive object control method and apparatus, terminal, and computer-readable storage medium
CN107450841B (en) * 2017-08-08 2019-05-07 腾讯科技(深圳)有限公司 Interactive object control method and device
CN107450841A (en) * 2017-08-08 2017-12-08 腾讯科技(深圳)有限公司 interactive object control method and device
CN109925675A (en) * 2019-01-15 2019-06-25 河南翔宇医疗设备股份有限公司 Intelligent matte board touch screen visual synchronization method, apparatus, system and mobile terminal
CN109925675B (en) * 2019-01-15 2020-08-25 河南翔宇医疗设备股份有限公司 Intelligent frosted plate touch screen vision synchronization method, device and system and mobile terminal
CN110543278A (en) * 2019-08-19 2019-12-06 广州点云科技有限公司 Cross-device screen coordinate adaptation method and device and storage medium
CN112685279A (en) * 2019-10-17 2021-04-20 腾讯科技(深圳)有限公司 Script recording method and device and terminal equipment
CN112685279B (en) * 2019-10-17 2024-02-20 深圳市腾讯网域计算机网络有限公司 Script recording method, script recording device and terminal equipment
CN111124567A (en) * 2019-12-02 2020-05-08 腾讯科技(深圳)有限公司 Operation recording method and device for target application
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

Also Published As

Publication number Publication date
CN106095373B (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN106095373A (en) Realize striding equipment screen coordinate is adaptive, operate equipment method and the device of correspondence
TWI490772B (en) Method and apparatus for adapting custom control components to a screen
CN104822093B (en) Barrage dissemination method and device
US9485435B2 (en) Device for synthesizing high dynamic range image based on per-pixel exposure mapping and method thereof
US20150363913A1 (en) Adaptive filter demosaicizing for super resolution
CN104090689B (en) A kind of method and system of mobile terminal and its interactive projection
CN104867113B (en) The method and system of perspective image distortion correction
WO2012030869A4 (en) Multi-image face-based image processing
EP2738743A3 (en) Generating and reproducing augmented reality contents
CN106056663A (en) Rendering method for enhancing reality scene, processing module and reality enhancement glasses
CN104853172B (en) A kind of information processing method and a kind of electronic equipment
US20110304636A1 (en) Wallpaper image generation method and portable electric device thereof
CN105069812A (en) Image processing apparatus, setting device and method for image processing apparatus
CN103870138A (en) Information processing method and electronic equipment
CN104104872A (en) Object movement trajectory image synthesis method and device
CN106408518A (en) Image fusion method and apparatus, and terminal device
CN105574813A (en) Image processing method and device
CN106296624A (en) A kind of image interfusion method and device
CN104679462A (en) System and method for detecting screen
CN106875328A (en) Image processing method and device
CN105472245A (en) Photographing method and electronic device
CN104104874A (en) Orbit shooting method and shooting method and device of object motion trails
ATE499666T1 (en) DEVICE AND METHOD FOR GENERATING A SALANCE MAP OF AN IMAGE
CN111818382A (en) Screen recording method and device and electronic equipment
CN103780828A (en) Image acquisition method and electronic device

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