python - How can I simulate mouse movement in OSX, not just change the cursor location -


this question has answer here:

i'm playing leap motion controller , trying use controller game surgeon simulator. if search "leap motion oculus rift surgeon simulator", you'll understand end goal. however, i'm having issues simulating right kind of mouse movements on mac.

problem:

the movement in game seems work based off of mouse movement, not cursor location. example, can move mouse infinitely left , still see interaction in game - never hits edge. libraries i've tried, don't seem mimic right behavior.

i've tried autopy's smooth_move, pyuserinput's mouse library, , methods found on various blogs including http://www.geekorgy.com/index.php/2010/06/python-mouse-click-and-move-mouse-in-apple-mac-osx-snow-leopard-10-6-x/ , http://metapep.wordpress.com/2009/07/10/control-the-mouse-on-mac-with-python/

does have insight i'm missing? there fundamental mouse control i'm not considering?

i'm nearing point of trying out on windows machine instead pywin32 library or something.

https://pypi.python.org/pypi/pyuserinput/0.1.1 

take sir. defeat lot of issues. also, if finish let me know :)


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -