window.MoveWin(iX,
iY);
Applicable Classes: MainWin
Parameters:
int iX - The new x-axis position, in pixels, of Window,
relative to the upper left hand corner of the screen. The value
increases from left to right.
int iY - The new y-axis position, in pixels, of Window,
relative to the upper left hand corner of the screen. The value
increases top to bottom.
Return Value: None
Description:
MoveWin moves the window relative to the upper left
hand corner of the screen (0,0). The function places the upper
left hand corner of the window (0,0 in local window coordinates) at
the position indicated by iX,iY. iX and iY can be negative values.
Example
Code |
#
Include Phantom Target Declarations
use "PhantomTarget.dec";
System("PhantomTarget.exe");
int W = PhantomTarget.GetWindowWidth();
int H = PhantomTarget.GetWindowHeight();
int X = PhantomTarget.GetWindowX();
int Y = PhantomTarget.GetWindowY();
disp("Width: " + string(W));
disp("Height: " + string(H));
disp("X: " + string(X));
disp("Y: " + string(Y));
PhantomTarget.MoveWin(X + 100, Y + 100);
PhantomTarget.ResizeWin(W/2, H/2);
# Exit out
PhantomTarget.Close();
|
See Also: MainWin
Functions