Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubscribeKey Extended for v1 #100

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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