Skip to content

Send based on active not working #15

@deanjm68

Description

@deanjm68

I've been testing TapHoldManager and it works great. I've noticed the delay problem mentioned elsewhere as I use quite a lot of mods on normal keys. This wouldn't be a problem if I can get the active window criteria to work as the mods are used in apps that don't require much typing. However I'm struggling. In this example it doesn't send either of the modified hotkeys.

`thm := TapHoldManager()

thm.Add("c", Funclc,,,,,"ahk_class Lightroom.exe")
thm.Add("c", Funcpc,,,,,"ahk_class Photoshop.exe")

Funclc(isHold, taps, state){

if (isHold=1) & (taps=1) & (state){
	Send "6"
}	

}

Funcpc(isHold, taps, state){

if (isHold=1) & (taps=1) & (state){
	Send "t"
}	

}`

Any help would be greatly appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions