Hello everybody, Is there a way to move the position of the cursor (the HandMorph) by passing commands to it ? I tried things like "ActiveHand position:" or "ActiveHand moveToEvent:" but nothing worked for me. Thanks, Matthieu
2015-05-12 17:40 GMT+02:00 Matthieu Lacaton <matthieu.lacaton@gmail.com>:
Hello everybody,
Is there a way to move the position of the cursor (the HandMorph) by passing commands to it ?
Not that I know of. There was a primitive for setting the cursorposition, but that was removed: http://bugs.squeak.org/view.php?id=7756 https://pharo.fogbugz.com/default.asp?10026 http://forum.world.st/Changing-mouse-position-from-Pharo-td4676580.html
I tried things like "ActiveHand position:" or "ActiveHand moveToEvent:" but nothing worked for me.
Thanks,
Matthieu
Okay. That was 2 years ago so I was wondering if something had changed since then but apparently not. Thanks a lot, Matthieu 2015-05-12 17:51 GMT+02:00 Nicolai Hess <nicolaihess@web.de>:
2015-05-12 17:40 GMT+02:00 Matthieu Lacaton <matthieu.lacaton@gmail.com>:
Hello everybody,
Is there a way to move the position of the cursor (the HandMorph) by passing commands to it ?
Not that I know of. There was a primitive for setting the cursorposition, but that was removed:
http://bugs.squeak.org/view.php?id=7756
https://pharo.fogbugz.com/default.asp?10026
http://forum.world.st/Changing-mouse-position-from-Pharo-td4676580.html
I tried things like "ActiveHand position:" or "ActiveHand moveToEvent:" but nothing worked for me.
Thanks,
Matthieu
Or maybe have a look at HandMorphForReplay in http://forum.world.st/ANN-EventRecorderMorph-Port-to-3-0-td4736258.html
Oh I didn't know about that, I'll definitely have a look at it, it seems cool ! Thanks, Matthieu 2015-05-12 17:57 GMT+02:00 Matthieu Lacaton <matthieu.lacaton@gmail.com>:
Okay. That was 2 years ago so I was wondering if something had changed since then but apparently not.
Thanks a lot,
Matthieu
2015-05-12 17:51 GMT+02:00 Nicolai Hess <nicolaihess@web.de>:
2015-05-12 17:40 GMT+02:00 Matthieu Lacaton <matthieu.lacaton@gmail.com>:
Hello everybody,
Is there a way to move the position of the cursor (the HandMorph) by passing commands to it ?
Not that I know of. There was a primitive for setting the cursorposition, but that was removed:
http://bugs.squeak.org/view.php?id=7756
https://pharo.fogbugz.com/default.asp?10026
http://forum.world.st/Changing-mouse-position-from-Pharo-td4676580.html
I tried things like "ActiveHand position:" or "ActiveHand moveToEvent:" but nothing worked for me.
Thanks,
Matthieu
Hello again, Just for the record, the EventRecorder source code allowed me to solve my problem. It is apparently not possible to move the main HandMorph but you can create a new secondary one and move it wherever you want ! Thanks again, Matthieu 2015-05-12 17:59 GMT+02:00 Matthieu Lacaton <matthieu.lacaton@gmail.com>:
Or maybe have a look at HandMorphForReplay in
http://forum.world.st/ANN-EventRecorderMorph-Port-to-3-0-td4736258.html
Oh I didn't know about that, I'll definitely have a look at it, it seems cool !
Thanks,
Matthieu
2015-05-12 17:57 GMT+02:00 Matthieu Lacaton <matthieu.lacaton@gmail.com>:
Okay. That was 2 years ago so I was wondering if something had changed since then but apparently not.
Thanks a lot,
Matthieu
2015-05-12 17:51 GMT+02:00 Nicolai Hess <nicolaihess@web.de>:
2015-05-12 17:40 GMT+02:00 Matthieu Lacaton <matthieu.lacaton@gmail.com> :
Hello everybody,
Is there a way to move the position of the cursor (the HandMorph) by passing commands to it ?
Not that I know of. There was a primitive for setting the cursorposition, but that was removed:
http://bugs.squeak.org/view.php?id=7756
https://pharo.fogbugz.com/default.asp?10026
http://forum.world.st/Changing-mouse-position-from-Pharo-td4676580.html
I tried things like "ActiveHand position:" or "ActiveHand moveToEvent:" but nothing worked for me.
Thanks,
Matthieu
A bit extreme, but you could open World >> Tools >> Process Browser and notice "Input Event Fetcher" then put a "self haltOnce" in InputEventFetcher>>signalEvent: and trace through. Or maybe have a look at HandMorphForReplay in http://forum.world.st/ANN-EventRecorderMorph-Port-to-3-0-td4736258.html (disclaimer, I haven't got around to having a look at this myself yet) cheers -ben On Tue, May 12, 2015 at 11:40 PM, Matthieu Lacaton < matthieu.lacaton@gmail.com> wrote:
Hello everybody,
Is there a way to move the position of the cursor (the HandMorph) by passing commands to it ?
I tried things like "ActiveHand position:" or "ActiveHand moveToEvent:" but nothing worked for me.
Thanks,
Matthieu
participants (3)
-
Ben Coman -
Matthieu Lacaton -
Nicolai Hess