Callback function to save all the active Verifier cellviews automatically.
Specify the save interval in seconds as argument, like:
autoSaveVerifierCellView(300)
This will save all opened Verifier cellviews every 5 minutes.
To interrupt the auto saving, set the global variable
_stopAutoSaveVerifier = t
procedure(autoSaveVerifierCellView(saveInterval "x")
Get all opened Verifier sessions
foreach(sessionId verifGetAllSessions()
;; Don't save for the read-only session
unless(verifIsSessionReadOnly(sessionId)
verifSaveSession(sessionId)))
if((boundp('_stopAutoSaveVerifier) && _stopAutoSaveVerifier) then
printf("Auto save interrupted. Set _stopAutoSaveVerifier = nil and start autoSaveVerifierCellView %d again.\n" saveInterval)
else
hiRegTimer(sprintf(nil "autoSaveVerifierCellView(%d)" saveInterval) saveInterval*10)
printf("...done. Next auto save scheduled in %d seconds.\n" saveInterval)))
|