Could some one give me the code and a brief explanation for how to perform a mouseevent leftdown? And then how to set it to being left up after?

What i want is for when command1 is clicked, the mouse leftbutton is pressed, then after a 5 second delay its set to up again?

Thanks.