#
Include Phantom Target Declarations
use "PhantomTarget.dec";
System("PhantomTarget.exe");
# Move the client window using mouse-click and mouse-move
# The -5 is because it is with respect to the client
# area of the child window (which does not include
# the title bar).
PhantomTarget.MDIClient1.Untitled.MouseClick(0, 100, -5, 1);
PhantomTarget.MDIClient1.Untitled.MouseMove(200, 200);
PhantomTarget.MDIClient1.Untitled.MouseClick(0, 100, -5, 2);
# Open the button window
PhantomTarget._Controls.Pus_hButton.Select();
# Use MouseClick (instead of just Click) to
# click the OK button.
Button.OK.MouseClick(0, 3, 3, 0);
# Exit out
PhantomTarget.Close(); |