Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[建议]快速选择组合键前缀希望能支持自定义 #50

Open
godefy opened this issue Apr 12, 2022 · 2 comments
Open

[建议]快速选择组合键前缀希望能支持自定义 #50

godefy opened this issue Apr 12, 2022 · 2 comments
Labels
enhancement New feature or request
Projects

Comments

@godefy
Copy link

godefy commented Apr 12, 2022

image
目前限定固定为alt,但有时候alt+数字习惯了给其它功能使用。这个alt前缀就希望可以自定义了,比如ctrl什么的(在listary里,默认也是ctrl+数字快速选择,但目前固定了alt就没法同步这个习惯了)。
现在试了下还不可以这样配置。

@Chaoses-Ib Chaoses-Ib added the enhancement New feature or request label Apr 12, 2022
@Chaoses-Ib
Copy link
Owner

临时解决方案:使用 AutoHotkey 映射:
quickselect_keymap.zip

#UseHook
SendMode "Input"

#HotIf ActiveWindowIsEverything() and ActiveControlIsOfClass("Edit")

^1::!1
^2::!2
^3::!3
^4::!4
^5::!5
^6::!6
^7::!7
^8::!8
^9::!9
^0::!0

#HotIf

ActiveWindowIsEverything() {
    window_class := ""
    try window_class := WinGetClass("A")
    return (window_class ~= "^EVERYTHING") != 0
}

ActiveControlIsOfClass(Class) {
    FocusedControl := 0
    try FocusedControl := ControlGetFocus("A")
    FocusedControlClass := ""
    try FocusedControlClass := WinGetClass(FocusedControl)
    return (FocusedControlClass = Class)
}

@godefy
Copy link
Author

godefy commented Apr 12, 2022

非常感谢~~
条件判定得很精确,而且还与时俱进的用上了v2版本👍
要是我自己实现估计就直接图省事用WinActive("ahk_exe Everything.exe")了。
期待后续版本在配置里进行支持,如果实现复杂的话,其实仅支持增加可选用ctrl为前缀就能覆盖很大一部分使用需求啦。

@Chaoses-Ib Chaoses-Ib added this to To do in v1.0 Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
v1.0
To do
Development

No branches or pull requests

2 participants