There is a description of how to define a custom combination in AutoHotkey:
You can define a custom combination of two keys (except joystick buttons) by using " & " between them. In the below example, you would hold down Numpad0 then press the second key to trigger the hotkey:
Numpad0 & Numpad1::MsgBox "You pressed Numpad1 while holding down Numpad0." Numpad0 & Numpad2::Run "Notepad"
But I couldn't find how to set the threshold. for example, I want Numpad0 & Numpad1
only to happen when user presses Numpad1
in less than 300ms after pressing Numpad0
.