Or, you can just use an alias that calls a timer that calls that alias...

Code:
alias PicDisplay {
  [display command for picture]
  inc %filenumber
  if (%filenumber > %total_files) { unset %filenumber | halt }
  .timer 1 10 PicDisplay photo- $+ %filenumber $+ .jpg
}


Note that you have to set up the total files variable manually or have it check total files in a folder or whatever. All pictures would have to be named the same way that you showed without any missing numbers. If numbers are missing, you'll want to have it verify the file exists prior to the timer. Change the "10" to the interval you're looking for. Throw in your display commands and you should be fine. If you want it to loop rather than just go through one time, change the /unset and /halt to just /set %filenumber 1 and it will start from the beginning again.

As a note, I put the timer command using $+ just to make it easy to understand, but you can shorten it to:

Code:
  .timer 1 10 PicDisplay $+(photo-, %filenumber ,.jpg)


EDIT: An alternative method if you don't care about the order and nothing else is in the folder except the images, you can use $findfile() and $rand to randomly get a file.

Last edited by Riamus2; 31/03/08 10:47 PM.

Invision Support
#Invision on irc.irchighway.net