You can use the lastRoll property. It will tell you how long
been since the mouse was moved. This code (copied straight
from the help
file) will go to the "Attract Loop" frame after the mouse has
for 45 seconds.
if (_player.lastRoll > (45 * 60)) then
There is also the lastEvent property which does the same
thing but takes
into consideration mouse and keyboard input.