GetPosition component is enables a user to get the current mouse position value.
GetPosition component exposes Control In, Control Out and Data Out ports by default.
|Control In||Must be connected to the Control Out port of one or more components.|
|Control Out||Must be connected to the Control In port of any other component.|
|Data Out||The GetPosition component exposes the following Data In ports by default:
Left: Return the Mouse position from Left.
Top: Return the Mouse position from Top.
To edit the properties of the GetPosition component, in the Properties window, change the required property. User can edit the following properties.
|Search||Search for the respective property.|
|Delay After Execution||Specifies the wait time (in seconds) after the action is executed.|
|Delay Before Execution||Specifies the wait time (in seconds) before the action is executed.|
Let us consider an example
1.In the Toolbox, expand the Utilities and then expand the Mouse.
GetPosition component and drop it on the Design surface.
3.Connect the Control ports in the activity.
4.In the toolbar, click