Phantom Documentation

[Help Home] [Phantom Home]
Click

window.Click();

Applicable Classes: Button

Parameters: None
Return Value: None

Description:
The Click function sends a single left-click mouse message to Window.  The receiving window will act as though a mouse click occurred manually.  This function only works for the 'Button' class, although other windows can handle mouse-click messages.  Graphic buttons, check boxes, and radio buttons also support this function. Click is also used to change the states of check boxes and radio buttons.

The MainWin function MouseClick can also be used.

Example Code

use "PhantomTarget.dec";
System("PhantomTarget.exe");

# Open the Button Dialog
PhantomTarget._Controls.Pus_hButton.Select();

# Push some buttons
Button.Button.Click();
Button._Default.Click();
Button.GBUTTON.Click();
Button.OK.Click();

PhantomTarget.Close();



See Also: Button Functions



Copyright 2000-2011 Phantom Automated Solutions