I have set an array to monitor my mouse via a function. Here's the guts of it...
`Detects Double Click Release ~ 250ms
If (Mouse(Button).Delay-Mouse(Button).Delay_Cache) > 0 And (Mouse(Button).Delay-Mouse(Button).Delay_Cache) < 250
Mouse(Button).Release_Double_Click = 1
Endif
I use IanM's Matrix Utilities HiTimer() to feed the Cache & Delay_Cache variables. Also remember to reset your "Double_Click" back to 0 at the beginning of your mouse function.
By using arrays, it makes it easy for the same function to apply to all of your mouse buttons too. This theory can then be applied to a keyboard too.