evilC / AutoHotInterception

An AutoHotkey wrapper for the Interception driver
MIT License
707 stars 64 forks source link

SubscribeKey Extended for v1 #100

Open bluechipps opened 1 year ago

bluechipps commented 1 year ago

Allows you to optionally add a second parameter to any SubscribeKey callback function for reference purposes. For example, you can subscribe/unsubscribe to individual keys dynamically. Sometimes you may not know which exact keys you want to subscribe to until later in your code. Also can keep some scripts shorter when you can make use of one callback function that only needs minor adjustment based on the key that triggers it.

God-damnit-all commented 1 year ago

It seems like it would complicate the documentation to have a feature added only for v1 and not for v2, especially considering that v2 is now the considered the stable version of AutoHotkey.

evilC commented 1 year ago

It seems like it would complicate the documentation to have a feature added only for v1 and not for v2 I would concur. @bluechipps Also, there should probably be some kind of example script to illustrate a use-case?