Code: Select all
XButton2::TimeG:= A_PriorHotkey = "XButton2" ? TimeG : A_TickCount + 300 ;tap < 300ms
XButton2 Up::Send,% A_TickCount < TimeG ? "XButton2" : "{Esc}" ;sends either "XButton2" or "{Esc}"
HOLD> XButton2 for 300ms and it sends "ESC"
Once I have held the XButton2 for the necessary 300ms, I wish there to be a 3500ms delay PRIOR to the "ESC" key being
triggered.
PS> This script was given to me by Rohwedder back in December