Slide Show

Darrel, here is another way of doing it with a global timer script. In this way, it is totally automatic - the timer script senses if a user is active using the fpmi.system.getInactivitySeconds() function. Just put the list of window names you want to swap between in the windows variable. (Note - you need FactoryPMI 3.0 to use this script because of the use of the fpmi.nav module)

Put this script in a global timer script that runs every 15,000 milliseconds. It won’t run the slideshow if the user has been active in the last 10 seconds. You can play with the timing to get the effect you want.

[code]windows = [‘Window 10’, ‘Window 11’, ‘Window 12’, ‘Window 13’]

seconds = fpmi.system.getInactivitySeconds()
if seconds > 10:
global position
try:
position = (position + 1) % len(windows)
except NameError:
# This will initialize it the first time
position=1

fpmi.nav.swapTo(windows[position])[/code]