Move the Mouse

Bob Sneidar bobsneidar at iotecdigital.com
Mon Oct 1 18:02:57 EDT 2018


Thanks Colin. I discovered that right after I posted (as usual). :-) 

I have two buttons, an up and a down button, which move a line in a datagrid up or down respectively, and the buttons reposition themselves to be next to the hilitedLine whenever the datagrid gets a selectionChanged message. I wanted the mousePointer to advance with it so the user can progressively move a line up or down a number of times without having to reposition the mouse! 

I got it working just before you posted. <sigh> Thanks. 

Bob S


> On Oct 1, 2018, at 14:55 , Colin Holgate via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> There is the screenMouseLoc, which is the cursor’s location on the whole screen. To move it to be on a button I guess you would add the left and top of the card window, to the x and y position you want to move to.



More information about the use-livecode mailing list