From the original SynthMaker forum (2004–2014), with its members’ names and dates.
tinkergnome ·
are there any examples of code/assembler syntax i could find in here that could allow me
to manipulate a *.osm file in order to save data without clicking "save as...." or "CTRL+S". i understand
that may sound far fetched but if there's some type of editing i could achieve in manipulating a
project that way,.... i'd like to find it. there's a recent project i have worked on that is pointing
toward my finding a way to being able to save the *.osm while its open within the synthmaker program.
i realize that may sound a bit dangerous to actively try to use some functionality to save an active
document,.... it seems that may be the only way i can go with the idea i have been attempting.
trogluddite ·
No, you cannot alter the basic behaviour of SM using code/assembly. They are designed only to interface in the same way as regular stream components - any attempt to access memory space outside of that defined in the code will normally result in an instant crash.
The only way that I can think you might do this would be to use the 'shell execute' primitive to call an outside program which simulates the keystrokes or mouse movements needed to manipulate the SM windows/menus
lesobrod ·
You may pay your attention to this:
http://www.autoitscript.com/site/
This is powerfull and not complicated instrument. I use it with Wolfram Math and Finale SongWriter.
In these programs "Hot keys" mechanism are small and week, so AutoIt make a great help.
Just now I'm trying to do some script for SM and SM-exe/vst. May be later.. 😉
infuzion ·
Menu:Options/Aplication.../[X]Autosave
trogluddite ·
lesobrod wrote: You may pay your attention to this:
http://www.autoitscript.com/site/
I used it many years ago to speed up my photo cataloguing in photoshop - looks like it has much more power now.
Weird that I never though of it - I have wanted a quick 'Save as new version' shortcut feature for a long time in SM, but had forgotten all about that software. Thanks for the reminder.
I wonder if I can still remember how it works!? 😕
You'll have to use something like AutoItScript to copy the files.
trogluddite ·
Sorry I was being a bit oblique there!
Personally I never use AutoSave - too may programs in the past that always did a CPU stalling save at precisely the wrong moment. I have evolved a powerful CTRL-S reflex (inversely proportional to the importance of the work I've just done, of course!).
Maybe I am thinking of a different piece of software, but I seem to remember that AutoIt is capable of such things as this...
1) Test if SM is open and in focus - if so, intercept the CTRL-S key combo.
2) Read the current file name by parsing the title bar label of the active SM Window..
3) Fiddle with the name.
4) Call up 'Menu - Save As...'
5) Auto-enter the new name into the file dialogue (lucky it defaults to the most recent directory!)
Hmm, looks like I've found myself another little project!
infuzion ·
trogluddite wrote: Hmm, looks like I've found myself another little project!
trogluddite wrote: (inversely proportional to the importance of the work I've just done, of course!).
Yes.... Murphys Law is all aoround!
trogluddite wrote: 1) Test if SM is open and in focus - if so, intercept the CTRL-S key combo.
2) Read the current file name by parsing the title bar label of the active SM Window..
3) Fiddle with the name.
4) Call up 'Menu - Save As...'
5) Auto-enter the new name into the file dialogue (lucky it defaults to the most recent directory!)
There're some apps which do this very comfotable itself. E.g. a feature i never ever want to miss in Cubase. ctrl-alt-s saves a new version of the actual project with an increasing number appended! Could be easy implemented into SM as well.
trogluddite ·
stw wrote: Could be easy implemented into SM as well.
For sure, and it has been requested on the forum, and directly to the developers for some time (likewise for many other simple enhancements).
But while we are waiting for action from OutSim, we could make our own 'add-on' with AutoIt.
It only has to be made once - then can be shared here for all who need it.
I will investigate further - when I did my photoshop scripts, I did much, much more complex things than this - the photoshop GUI did not even use standard Windows handles for many controls (guess because cross-platform app), I had to develop a way using pixel-peeping to even find some of the controls!
Aha, but there is an old saying, "Treat them mean, to keep them keen!" 😈
But really it is bugging me too, that I haven't found time for this - though be warned, I have a beer festival to attend this weekend, and crazy work deadlines (for a Texan company - suddenly my life is now plagued with demanding Americans!) 😉
So maybe no progress until next month. (and after beer festival maybe more than usual 2am, drunk, not-making-much-sense posts!). 😕
infuzion ·
trogluddite wrote: So maybe no progress until next month. (and after beer festival maybe more than usual 2am, drunk, not-making-much-sense posts!). 😕
Might have to attach a breathalyzer to your computer?
trogluddite ·
infuzion wrote: Might have to attach a breathalyzer to your computer?
He he - I'm not sure how silicon would react to such noxious fumes - it might invalidate the warranty!
Wrote something here? To have a post removed or your name hidden, write to [email protected].