Thanks, finally figure it out.

--- In [email protected], "brucexs" <bruc...@...> wrote:
>
> 
> 
> --- In [email protected], "S" <hypersam.tw@> wrote:
> >
> > I have two monitors, resolutions are 1024*768, 1280*1024.
> > What I want is to know the relative positions between monitor 1 and 2.
> > 
> > According to the manual,
> > pts = mappoints(rect1, rect2, ptsIn)
> > here I gave
> > rect1 = 0 24 1024 768 (monitor 1)
> > rect2 = 1024 0 2304 1024 (monitor 2)
> > ptsIn = 1096 21 1695 587 (window's position is in monitor 2)
> > pts == 2394 -4 3143 775
> 
> Did you use 
> win.mappoints(rect2, rect1, ptsIN)
> The function assumes the ptsIn is in coordinates with respect the the first 
> rectangle always.
> 
> Y
>


Reply via email to