Help setting mouse position

Hello,

I would like the mouse cursor to be located at the centre of the default pushbutton, (named OK Pushbutton), when a modal window, (named MyModalWindow), is shown.

How do I do that?

Thanks.

Lennox

For mac see https://www.boxedbyte.com/xippet-128 for setting the mouse position

For windows see https://www.boxedbyte.com/xippet-124 for the same.

Just add the code to the open event of pushbutton on the modal window and set the position to the centre of the button

Thanks Mike,

I am using it for Mac

movecursor(0,100,100) // Set your X/Y to your liking.
Is the 0 the element for the screen -> Screen(0)
and the X and Y would be with reference to 0,0 on Screen(0) ?

It works great.

Thanks again.

Lennox