Created By  alexey.grinevich Thursday, October 11, 2018

When doing mouse click from Rapise it is sometimes need to use offset coordinates. You will learn:

1. When explicit coordinates are needed

2. How to determine them

Default Click Spot

Suppose we click a combo box.

SeS('MyCombo').DoClick()

Or

When this action is executed mouse cursor should point to a specific point on the screen. And in the case that we don't specify coordinates the click hits the center of the element:

So click moves mouse to the element position and then offsets half width and half height to point to its center. Then click is performed.

Custom Click Spot

Now suppose that we set an offset using optional (x,y)parameters:

SeS('MyCombo').DoClick(60,5)

Or

In this case we explicitly define the click spot position:

 

Here we define an explicit offset in pixels from the left top point of the client's rectangle.

Example

The picture below demonstrates a real live example of the typical situation when click spot is important.

So depending on click position the behavior of the control is different. Combo box may either allow you editing text or show the dropdown, so the click spot is important.

 

Attachments

Selected files will be attached to any email sent on saving ticket.

file selected files selected  () Delete Selected

  • Created:
  • by:

Select files to upload

Or drag and drop files here

Uploading …
Done!
Upload More?
There was an error.
Try again?

Save to upload the selected file(s)

Article Info
  • Last Updated: 10/11/2018
  • Article ID: KB393
  • Views: 70