问题描述
在崇高文字2中,您可以按住ctrl + alt +箭头键(上/下)来多选(光标)行.在notepad ++中,您可以通过按住ctrl并单击要编辑的其他行(区域)来完成相同的操作.我认为我可以使用自动热键脚本来完成相同的功能.所以我尝试了
In sublime text 2 you can multi select(cursor) lines by holding ctrl+alt+arrow key (up/down). In notepad++ you can accomplish the same thing by holding ctrl and clicking the additional lines(areas) you would like to edit. I figured I could use a autohotkey script to accomplish the same functionality. So I tried
#IfWinActive, ahk_class Notepad++
^!Down::^Click
但是每次我尝试加载脚本时都会得到
but each time that I try to load the script I get
第2行出现错误
行文本:^点击
错误:此行不包含公认的操作
Error at Line 2
Line Text: ^Click
Error: This line does not contain a recognized action
程序将退出
然后我尝试了
#IfWinActive, ahk_class Notepad++
^!Down::send ^Click
但是在记事本++中显示为ETXClick
but that shows up as ETXClick in notepad++
要使此脚本仅适用于Notepad ++,我还需要什么
What more do I need to get this script to work only for Notepad++
EDIT :似乎自动热键无法在Notepad ++中模仿此行为IT
EDIT: It appears that autohotkey cannot mimic this behavior in Notepad++IT
推荐答案
您可以使用 + +方向键.
You can use + + Arrow keys.
这篇关于使用自动快捷键在Notepad ++中模拟Sublime Text 2多重选择(多重光标)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!