请教, autohotkey 的功能可以有吗?
Tofloor
poster avatar
luampm
deepin
2018-03-22 22:48
Author
请教,深度有没有类似 window 下类似 autohotkey的软件。

目前我在window的操作, 使用autohotkey时会将 ctrl+s  更改成alt + s (当然还有其它的), 在深度一直没有找到合适的方法 解决这个问题!

上网查了很久,找到一个autokey的方案,但奇怪的是我一直安装不了。追踪到最后的问题就是 python gi 的问题了,搞了很久不行, 不想再折腾了。
请教深度的大牛有没有办法解决这个问题的方案?
谢谢!



有兴趣的可以看看。
root@lu:/var/lib/dpkg# autokey
Unable to init server: Could not connect: Connection refused
Unable to init server: 无法连接:Connection refused
Traceback (most recent call last):
  File "/usr/bin/autokey", line 20, in
    from autokey.gtkapp import Application
  File "/usr/local/lib/python3.5/dist-packages/autokey/gtkapp.py", line 30, in
    from autokey import service, monitor
  File "/usr/local/lib/python3.5/dist-packages/autokey/service.py", line 23, in
    from autokey.iomediator import IoMediator
  File "/usr/local/lib/python3.5/dist-packages/autokey/iomediator.py", line 41, in
    from .iomediator00 import IoMediator, Waiter, KeyGrabber, Recorder
  File "/usr/local/lib/python3.5/dist-packages/autokey/iomediator00.py", line 7, in
    from .interface import XRecordInterface
  File "/usr/local/lib/python3.5/dist-packages/autokey/interface.py", line 34, in
    require_version('Atspi', '2.0')
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 118, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Atspi not available




Reply Favorite View the author
All Replies
avatar
WENWEN
deepin
2018-03-22 23:56
#1
http://www.nongnu.org/xbindkeys/xbindkeys.html
Reply View the author
avatar
WENWEN
deepin
2018-03-23 00:07
#2
https://github.com/autokey/autokey  上面有ppa
Reply View the author
avatar
luampm
deepin
2018-03-23 05:54
#3
首先对你回复表示感谢 ! https://bbs.deepin.org/user/109268   

https://github.com/autokey/autokey  这个安装 好了,却打不开,不知为何?  

http://www.nongnu.org/xbindkeys/xbindkeys.html  这个好像只有发送命令,不适合我现在用的场景 (不知哪个命令 代表 ctrl+s );

Reply View the author
avatar
luampm
deepin
2018-03-23 05:58
#4
在usr/bin  运行时出现  

jianhua@lu:/usr/bin$ sudo autokey-gtk
[sudo] jianhua 的密码:
Traceback (most recent call last):
  File "/usr/bin/autokey-gtk", line 20, in
    from autokey.gtkapp import Application
ImportError: No module named 'autokey'

推测在安装时出现这样的情况,可能是原因
jianhua@lu:~$ sudo add-apt-repository ppa:troxor/autokey
[sudo] jianhua 的密码:
PPA for Autokey (Python 3)
More info: https://launchpad.net/~troxor/+archive/ubuntu/autokey
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox '/tmp/tmp1kk8cc4k/pubring.gpg' created
gpg: failed to start the dirmngr '/usr/bin/dirmngr': 没有那个文件或目录
gpg: connecting dirmngr at '/tmp/tmp1kk8cc4k/S.dirmngr' failed: 没有那个文件或目录
gpg: keyserver receive failed: No dirmngr

Reply View the author
avatar
153******45
deepin
2018-03-23 06:16
#5
dirmngr没有安装请apt安装他
Reply View the author
avatar
luampm
deepin
2018-03-23 08:41
#6
经过各种折腾,最终没有搞掂,放弃,不再处理了,如有大侠成功的话请告知步骤 !   deepin 15.5  谢谢 !
Reply View the author