When Unity Open Event ?

How can i handle to open unity3d ?
When user open unity how can i catch my function ?

Hi, this may be what you want: Unity - Manual: Running Editor Script Code on Launch