HidMacros automatically reloading its config
Posted: 07 Nov 2014, 17:54
I made a small "daemon" (alas, in java) that switches the config files of HIdMacros, when the application in foreground changes (I know, window-based macros are somewhere in your todo list, but I had some time and a certain need for it, so I ran forward).
Right now I have said daemon kill the current instance if HIDMacros, and relaunching it after the file switch. However, I realized I need sometimes to open HidMacros so that it "sees" the windows open.
I think that all my problems would be solved if I could just replace the config file, and then HidMacros were to automatically refresh itself.
I have no idea of how complex would it be for you to make this change, but I do not think too much.
The daemon can be found here:
https://www.dropbox.com/sh/ul13bv7xy86p ... 6CVMa?dl=0
The source code is inside the jar (which, famously, is just a renamed zip file with a manifest archive detailing the content), if someone is overtaken by curiosity.
Right now I have said daemon kill the current instance if HIDMacros, and relaunching it after the file switch. However, I realized I need sometimes to open HidMacros so that it "sees" the windows open.
I think that all my problems would be solved if I could just replace the config file, and then HidMacros were to automatically refresh itself.
I have no idea of how complex would it be for you to make this change, but I do not think too much.
The daemon can be found here:
https://www.dropbox.com/sh/ul13bv7xy86p ... 6CVMa?dl=0
The source code is inside the jar (which, famously, is just a renamed zip file with a manifest archive detailing the content), if someone is overtaken by curiosity.