Create an Idle Script Event
To create an idle script event, use the MMScript_CreateIdleScriptEvent function. The format of the function is as follows:
MMScript_CreateIdleScriptEvent( EventName ; Script ; IdleTime {; DB {; EventValue {; Repeat {; Persistent }}}} )
The quickest way to schedule a script using this function is:
MMScript_CreateIdleScriptEvent( “MyIdleEvent” ; “Time Out” ; “15m” )
The above code will run the script “Time Out” if the user does not interact with FileMaker for 15 minutes.
If you want the event to activate again once the user does interact, then you want to set the “Repeat” parameter to True….
MMScript_CreateIdleScriptEvent( “MyIdleEvent” ; “Time Out” ; “15m” ; Get ( FileName ) ; “MyValue” ; True )
