Hello, I have find the solution :

Code:
#define CLICK_RATE 0.3  // Rate for the click double 

var VL_time_passed = 0;
var doubleclick_right = 0;

if(mouse_right)
{
	while(mouse_right){wait(1);}
	VL_time_passed = 0;
				
	while(VL_time_passed < CLICK_RATE)
	{
		if(mouse_right)
		{
			doubleclick_right = 1;
                        // action if the double click is made
		}
			VL_time_passed += time_step / 16;
			wait(1);
	}
}
else
{
	doubleclick_right = 0;
}



Djfeeler