Does the system you are using to select the FactoryPMI page allow writes to the database? If so, you could use the database to your advantage. For example, you could have a table in the DB with a startup_window_name that is set before you open the FactoryPMI project. In the project, on startup, you could check that table and open the appropriate window, then reset startup_window_name to ‘’ (so the next time it starts, it would default to the main page).
[code]#check what name you put into the db
windowName = fpmi.db.runScalarQuery(“SELECT startup_window_name FROM startup_window_table”)
#open the proper window (or the default if the empty string is there)
if windowName == ‘’:
#reset the table to the empty string
fpmi.db.runUpdateQuery("UPDATE startup_window_table SET startup_window_name = ‘’ ")
Now, assuming people aren’t constantly opening projects, this should work out well.