Auto Updatey Thing
Posted: Tue Apr 16, 2019 8:26 pm
Having to re-load bitmaps whenever you tinker in an image editor can be a PITA; even a global "update" trigger is a faff if you don't happen to have the right schematic module visible at the time. So I thought I'd see if I could find a way to do this automatically (partly because I'd also like to make editing Ruby in a proper code editor easier - hopefully coming soon!)
Using Ruby's 'Win32API' module, I've managed to make a couple of little modules that will send out a trigger whenever the window focus returns to FlowStone after you've been using a different application - and there are some ready-made modules for using this to auto-update bitmaps (just dropping in a few wireless receivers should work to add this feature to existing schematics without having to rewire everything.)
Note that these are strictly "developer tools" only, intended for automatic re-loading of resources that you're editing elsewhere during the creation of a schematic. Unfortunately Ruby's 'Win32API' library doesn't work in exports, so they can't work in plugins/executables (hence modules have been made purgable where appropriate.)
FlowStone 3.0.6 or above is required.
Using Ruby's 'Win32API' module, I've managed to make a couple of little modules that will send out a trigger whenever the window focus returns to FlowStone after you've been using a different application - and there are some ready-made modules for using this to auto-update bitmaps (just dropping in a few wireless receivers should work to add this feature to existing schematics without having to rewire everything.)
Note that these are strictly "developer tools" only, intended for automatic re-loading of resources that you're editing elsewhere during the creation of a schematic. Unfortunately Ruby's 'Win32API' library doesn't work in exports, so they can't work in plugins/executables (hence modules have been made purgable where appropriate.)
FlowStone 3.0.6 or above is required.