Jump to content
Sign in to follow this  
bmarlin

Saving SIMIO experiments automatically while they run.

Recommended Posts

I have been running very large experiments that take a few days to run. Murphy's law seems to interfere through either power outages or automatic updates which can cost me a couple of days of computer time. So I found some code using autohotkey and modified it to work great with SIMIO. autohotkey is a free download and easy to use. The below code runs a loop which hits {control S} on the SIMIO window if it is open every 10 minutes.


Persistent

;run a loop 100 times saving every ten minutes if your SIMIO file is open.

loop, 100

{

;save file every 10 minutes

MsgBox, Iteration number is %A_Index%.

setTimer, AutoSave, 6000000,on

AutoSave:

IfWinActive, ;name_of_simio_file_without_spfx_extension

Send {Blind}^s

return

}

return

Share this post


Link to post
Share on other sites
Sign in to follow this  

×