You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+21-7
Original file line number
Diff line number
Diff line change
@@ -47,11 +47,8 @@ In either case, `taps` holds the number of taps which occurred.
47
47
For example, if I double-tap, `IsHold` will be false, and `taps` will be `2`.
48
48
If I double-tapped and held on the second tap, then on press the function would be fired once with `IsHold` as true, taps would as `2` and state as `1`. When the key is released, the same but `state` would be `0`
**tapTime** The amount of time after a tap occured to wait for another tap.
57
54
Defaults to 150ms.
@@ -62,18 +59,35 @@ Defaults to infinite.
62
59
Setting this value to `1` will force the callback to be fired after every tap, whereas by default if you tapped 3 times quickly it would fire the callback once and pass it a `taps` value of `3`, it would now be fired 3 times with a `taps` value of `1`.
63
60
If `maxTaps` is 1, then the `tapTime` setting will have no effect.
64
61
**prefix** The prefix used for all hotkeys, default is `$`
62
+
**window** An AHK [WinTitle](https://www.autohotkey.com/docs/misc/WinTitle.htm) string that defines which windows the hotkey will take effect in
63
+
For example, to make Hotkeys only work in Notepad, you could use:
64
+
`thm := new TapHoldManager(,,,,"ahk_exe notepad.exe")`
65
65
66
66
You can pass as many parameters as you want.
67
67
`thm := new TapHoldManager()`
68
68
`thm := new TapHoldManager(100, 200, 1, "$*")`
69
69
70
-
When specifying parameters, you can use `-1` to leave that parameter at it's default.
71
-
For example, if you only wish to alter the `prefix` (3rd) parameter, you could pass `-1` for the first three parameters.
70
+
When specifying parameters, you can omit the parameter (or use `-1`) to leave that parameter at it's default.
71
+
For example, if you only wish to alter the `prefix` (3rd) parameter, you could do:
0 commit comments