Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

run_function

XJK edited this page Apr 22, 2016 · 1 revision

run()函数是OneQuick中很特别的一个函数。

OneQuick对ahk默认的run命令进行了加强。
在run()函数中,你可以输入:

  • cmd命令或网址、文件路径(类似win+R系统运行);
  • OneQuick中定义的function或label标签,function不包括括号,class名用点号.连接
  • b站av号,av数字格式
  • send ***,调用ahk的send方法
  • m:***,弹出msgbox

feature.yaml中定义的快捷键方法,就依托了强大的run() 函数。

你甚至可以扩展run() 函数,只要在ext.ahk中,定义run_user()函数即可:

run_user(command)
{
}

如果run()函数无法执行命令,会尝试寻找执行run_user() 函数.

Clone this wiki locally