Update AutoHotInterception.ahk

pull/100/head
Ryan 1 year ago committed by GitHub
parent 503da542fd
commit 63d1225b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -166,7 +166,13 @@ class AutoHotInterception {
; ---------------------- Subscription Mode ----------------------
SubscribeKey(id, code, block, callback, concurrent := false) {
this.Instance.SubscribeKey(id, code, block, callback, concurrent)
switch callback.MaxParams
{
case 1:
this.Instance.SubscribeKey(id, code, block, callback, concurrent)
case 2:
this.Instance.SubscribeKeyEx(id, code, block, callback, concurrent)
}
}
UnsubscribeKey(id, code){
@ -261,4 +267,4 @@ class AutoHotInterception {
this.parent.Instance.RemoveContextCallback(this.id)
}
}
}
}

Loading…
Cancel
Save