Alexandru <
alexandr...@meshparts.de> wrote:
> Now I want to artificially move the mouse pointer to the middle of
> the rectangle, everytime I select a rectangle. I do this using
> Twapi.
Have you tried using the 'event generate' subcommand with -warp true to
send a motion event for moving the mouse cursor?
Using Tk's event generate might (or might not) to move the mouse to the
center of the rectangle might work better than using twapi to do the
same.
Now, my 2-cents. Please don't do this. I always find it disconcerning
when some program decides to "jump" the mouse pointer around to another
location on screen without my moving the mouse physically to cause such
a change. I.e., let the user be in control. The mouse position
belongs to the user, and only the user's physical manipulation of the
mouse input device should ever cause the pointer to change its on
screen position.