View Single Post
  #2 (permalink)  
Old 28th July 2017
UnknownName UnknownName is offline
Junior Member
BS.Player Newbie
 
Join Date: Apr 2017
Age: 27
Posts: 3
Rep Power: 0
UnknownName is on a distinguished road
Default

Ok. So, i'm going to answer my own question if somebody will be in need ever after this. After a lot of trial and error and some basic math i've found this :

using C# :

public void SetWindowScreen(Screen screen)
{
int PlayWinPos = ((screen.WorkingArea.X + X) * 65536 + screen.WorkingArea.Y + Y);
return PlayWinPos;
}

screen - it's the main screen or secondary screen
X - x position of top left corner of Movie Window
Y - y position of top left corner of Movie Window

Don't ask me why it's multiplied by 65536. Can't seem to find the connection between that value and screen resolution.

A moderator can close this thread.

Last edited by UnknownName; 28th July 2017 at 02:33 PM.
Reply With Quote
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19