Уххх, школьники!
WinAPI в помощь. https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-setwindowpos
IntPtr handle = process.MainWindowHandle;
if (handle != IntPtr.Zero)
{
double radius = 70.0; int centerx = 960, centery = 540;
for(int angle = 0; angle < 720; angle++)
SetWindowPos(handle, (int)(centerx + radius*Mathf.cos((pi*angle)/320.0)), (int)(centery + radius*Mathf.sin((pi*angle)/320.0)), 0, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_SHOWWINDOW);
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Уххх, школьники!
WinAPI в помощь. https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-setwindowpos
IntPtr handle = process.MainWindowHandle;
if (handle != IntPtr.Zero)
{
double radius = 70.0; int centerx = 960, centery = 540;
for(int angle = 0; angle < 720; angle++)
SetWindowPos(handle, (int)(centerx + radius*Mathf.cos((pi*angle)/320.0)), (int)(centery + radius*Mathf.sin((pi*angle)/320.0)), 0, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_SHOWWINDOW);
}