a framework to define prefix keys

Post your working scripts, libraries and tools for AHK v1.1 and older
hoff
Posts: 3
Joined: 20 Jan 2018, 07:17
Contact:

a framework to define prefix keys

20 Jan 2018, 07:23

HotKeyWithPrefix.ahk
A framework to allow defining hotkeys with prefix.

HotKeyWithPrefix
define two combine keys. one is prefix, second one is trigger key.

example

Code: Select all

runApplication(path) {
  Run %path%
}

hkwp.register("Capslock & y", "!a", Func("runApplication").Bind("https://www.google.com/"))
PrefixPlusSingleKey.ahk
define one prefix key with one single key.

example

Code: Select all

ppsk := new PrefixPlusSingleKey()
ppsk.on("Capslock & q")
ppsk.add("n", "running commands", Func("runCmd").bind("tasklist"))
gregster
Posts: 9014
Joined: 30 Sep 2013, 06:48

Re: a framework to define prefix keys

20 Jan 2018, 09:02

I guess something went wrong with the posting. There are only examples, but the actual scripts are missing.
iPhilip
Posts: 822
Joined: 02 Oct 2013, 12:21

Re: a framework to define prefix keys

21 Jan 2018, 00:09

The script is on GitHub. Here is a link to it.
Windows 10 Pro (64 bit) - AutoHotkey v2.0+ (Unicode 64-bit)
hoff
Posts: 3
Joined: 20 Jan 2018, 07:17
Contact:

Re: a framework to define prefix keys

21 Jan 2018, 20:04

you are right. code is in github repo. check https://github.com/alburthoffman/autohotkey.misc

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: No registered users and 158 guests