!if $click_x$click_y!=$empty and $status=waiting
click_x=$[$click_x]

!advance clickcnt

xc=!eval $xx_size*($click_x-$border)/$inssize+$xsize1
U=!item $clickcnt of $liste
dessin1=$dessin1\
arrow $xc,2,$xc,0,7,black\
text black ,$xc,4,medium,$U

!ifval abs($click_x-$(X$clickcnt))<$arrondi
color=orange
!advance cnt_orange
!else
color=red
!endif

dessin3=$dessin3\
arrow $xc,2,$xc,0,7,$color\
text $color ,$xc,4,medium, $U 

erreur=$[$erreur+min(10,3*rint(abs($click_x-$(X$clickcnt))/10))]
!ifval $xc*$(date$clickcnt) <-0.01
!advance miss
!endif

click_x=
click_y=

!if $clickcnt=$cnt_date 
status=done
module_score=$[10^(-2)*rint(10^2*max(10-min(10,$erreur/$cnt_date)-2*$miss,0))]
!endif

