all useful codes
A framework to allow defining hotkeys with prefix.
define two combine keys. one is prefix, second one is trigger key.
runApplication(path) {
Run %path%
}
hkwp.register("Capslock & y", "!a", Func("runApplication").Bind("https://www.google.com/"))
define one prefix key with one single key.
ppsk := new PrefixPlusSingleKey()
ppsk.on("Capslock & q")
ppsk.add("n", "running commands", Func("runCmd").bind("tasklist"))