Login  Register

Re: Changing mouse position from Pharo.

Posted by Carla F. Griggio on Mar 13, 2013; 1:29pm
URL: https://forum.world.st/Changing-mouse-position-from-Pharo-tp4676580p4676600.html

Yep, the first thing I tried when I had to deal with this was using InputEventSensor, but  I couldn't manage to use it for changing the mouse position.
As the InputEventSensor takes the position from the hardware cursor as you say, the workaround we found was actually changing the hardware cursor's position using FFI :P

Cheers,
Carla

On Wed, Mar 13, 2013 at 2:25 PM, [hidden email] <[hidden email]> wrote:
The InputEventSensor does some reading about that and at one point
updates the ActiveHand.

But it looks like we do read that from primitives. Not sure there is a
way to do that.
Interesting question!

Phil

2013/3/13 Santiago Bragagnolo <[hidden email]>:
> Hi all!
>
>     I'm doing a bizarre experiment where i need to change the position of
> the mouse to a fixed point (like make the mouse pointer to jump from where
> it is to a button). Does anyone have a clue about how to?
>
>  Thanks in advance!
>
> Santiago