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 01:33 PM.
|