不要autohotkey但要它的功能

其它类软件,非上述版软件
回复
n992242
帖子: 6
注册时间: 2009-12-07 1:43

不要autohotkey但要它的功能

#1

帖子 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}
上次由 n992242 在 2009-12-10 15:45,总共编辑 1 次。
n992242
帖子: 6
注册时间: 2009-12-07 1:43

Re: 不要autohotkey但要它的功能

#2

帖子 n992242 »

还有能不能禁用shift+delete

autohotkey能wine吗?
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 不要autohotkey但要它的功能

#3

帖子 eexpress »

● g '()<ESC' .vimrc
imap ( ()<ESC>i
● 鸣学
zsf245
帖子: 55
注册时间: 2009-10-28 12:42

Re: 不要autohotkey但要它的功能

#4

帖子 zsf245 »

在VIM里可以,但是其它的编辑器就不好说了。不象AHK,哪个编辑器里都可以用。操作是不限系统,不限软件的
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 不要autohotkey但要它的功能

#5

帖子 eexpress »

不知道那软件怎么区分不同软件的。
如果你一定要这样,xmodmap或者xbindkey。用ctrl-( 输入就是。这不能区分软件。
● 鸣学
回复