Send mouse movements to Minecraft using python on Mac OS X

问题内容:

I’m currently trying to use python to play Minecraft. However, I’m having issues with simulating the right kind of mouse movements on my Mac.

Problem:

The movement in the game seems to work based off of the mouse movement, not cursor location. For example, you can move the mouse infinitely to the left and still see interaction in the game – it never hits an edge. The libraries that I’ve tried, don’t seem to mimic the right behavior.

I’ve tried PyUserInput’s mouse library, and methods that I 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/ and http://metapep.wordpress.com/2009/07/10/control-the-mouse-on-mac-with-python/ and many other posts on stackoverflow for example How to control the mouse in Mac using Python?. None of them worked for me.

Does anyone have any suggestions for what i should do.

问题评论:

原文地址:

https://stackoverflow.com/questions/47756661/send-mouse-movements-to-minecraft-using-python-on-mac-os-x

添加评论