Computer auto turn off

How do you tell Windows XP not to go into standby only when you’re rendering some 3D, exporting Flash, sending a file over AIM, etc…?

Just recently, I got cut off on AIM when I left the house. And I wasted an hour trying to send a file.