XUJINKAI / OneQuick.AHK-legacy

windows快捷键工具(屏幕边缘操作, 剪贴板增强). Autohotkey tool (screen border operation, clipboard manager).
http://onequick.org/?f=gh_ahk
495 stars 61 forks source link

如何调用OneQuick.Ext.ahk里的自定义函数? #27

Closed lttlsnk closed 8 years ago

lttlsnk commented 8 years ago

我在feature.yaml里添加了一行 win_`: OneQuick.User.wsl

然后在OneQuick.Ext.ahk里加上 Ini() { this.Run := 1 OneQuick.Editor := "D:\ProgramFiles\VIM\vim74\gvim.exe -p --remote-tab-silent" } wsl() { if !WinExist("ahk_exe mintty.exe") { run d:\ProgramFiles\wsl-terminal\open-wsl.exe wslshow = 1 } else { if wslshow { WinExist("ahk_exe mintty.exe") WinMinimize wslshow = 0 } else { WinExist("ahk_exe mintty.exe") WinRestore WinActivate wslshow = 1 } } return }

保存Reload, 按热键Win+`,提示不能运行命令OneQuick.User.wsl

XUJINKAI commented 8 years ago

不是OneQuick.User.wsl 是class_name.function_name 看wsl所在的class名字 class User_balabala 所以要运行的大概是User_balabala.wsl 嵌套的class同理

lttlsnk commented 8 years ago

呃,酱~