分页: 1 / 1

不要autohotkey但要它的功能

发表于 : 2009-12-10 15:43
n992242
我想问下linux能不能实现下面的功能

替换某个键位另外一个,貌似有帖子说了方法了

另外我想问:按下( 可以打出()同时把鼠标移到括号中间直接输入? 我用autohotkey可以。

还有能不能实现特定窗口的快捷键,比如在浏览器中F4是关闭标签,其他程序中是打开文件?

autohotkey只有几句话就搞定了:
+9::sendplay (){left} ;Chinese parentheses are also OK.

[::sendplay []{left}

+[::sendplay {{}{}}{left} ;use {} to escape { and }

+<::sendplay <>{left}

;replace tilde with backspace, so that I can easily press backspace with my left hand.
sc029::sc00E

;replace capslock with enter, so that I can easily press enter with my left hand.
Capslock::sc01C

;move carets to the up, down, left and right--ideas from emacs and joystick games.
^i::sendinput {up}
^k::sendinput {down}
^j::sendinput {left}
^l::sendinput {right}
^u::sendinput {home}
^o::sendinput {end}

Re: 不要autohotkey但要它的功能

发表于 : 2009-12-10 15:44
n992242
还有能不能禁用shift+delete

autohotkey能wine吗?

Re: 不要autohotkey但要它的功能

发表于 : 2009-12-10 15:53
eexpress
● g '()<ESC' .vimrc
imap ( ()<ESC>i

Re: 不要autohotkey但要它的功能

发表于 : 2009-12-10 15:57
zsf245
在VIM里可以,但是其它的编辑器就不好说了。不象AHK,哪个编辑器里都可以用。操作是不限系统,不限软件的

Re: 不要autohotkey但要它的功能

发表于 : 2009-12-10 16:07
eexpress
不知道那软件怎么区分不同软件的。
如果你一定要这样,xmodmap或者xbindkey。用ctrl-( 输入就是。这不能区分软件。