Skip to content

Conversation

bluechipps
Copy link
Contributor

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.

@bluechipps bluechipps marked this pull request as ready for review March 30, 2023 03:22
@God-damnit-all
Copy link

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
Copy link
Owner

evilC commented Apr 27, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants