Heres what i think
Clicked? =
{
If <<touching [me]>and<mouse down?>>{
Reset timer
Script var ((a))
Set [a] to (list (mouse x)(mouse y)< >)
Wait until <not>
//(not mouse down. Something is wrong with the forum.
If <(a) = (list (mouse x)(mouse y)< >)>{
Report
}else{
Report
}else{
Report
}
DbClicked=
{
If <clicked?>{
Reset timer
Wait until <<clicked?>or<(timer) more than (desired dbclick speed)>>
If<Not<(timer) more than (desired dbclick speed)>>
Report
}else{
report
}else{
Report
}
}