WinGetClass Class, A
If (A_ThisHotKey = A_PriorHotkey && A_TimeSincePriorHotkey < 350)
If Class in MozillaWindowClass,IEFrame
Send ^{vk57} ;Ctrl w
Else
Send !{F4}
For some reason if I hold down the Control button too long, like a long press, it works just like a long press. I want it to work only when I double tap. I want to be able to hold down Control button forever if I want to without it closing down any window.
double click close window default command shorcut
Have you tried checking "Double press" option for the shortcut? Have you tried another key combination?