Screen resolution X autorun

I have two projector, one is for 800x600 fullscreen and the other is 1024x768 fullscreen also.

Is there a way of making an autorun for each one, according of the screen resolution?