我正在使用Python和PyCharm。在我的脚本中,我试图将鼠标移动到屏幕的顶角(我认为(0,0))。
我用google搜索并发现uinput然后尝试使用以下方法安装它:
sudo pip install python-uinput
我收到以下错误:
/usr/bin/ld: cannot find libudev.so.0
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
我确实安装了libudev和cosponsoring标头。
非常感谢一些建议!
也许是另一个简单的方法将鼠标移动到左上角,因为我仍然非常缺乏经验。
答案 0 :(得分:0)
谢谢!我现在正在使用Mint 16。 求助:使用以下内容:从pymouse导入PyMouse m = PyMouse()m.move(0,0)
要注意我必须安装python-xlib
sudo apt-get install python-xlib