HidMacros automatically reloading its config

What features you would like to have in HIDmacros?
Post Reply
cristiano_pruneri
Posts: 14
Joined: 19 Jul 2013, 12:43

HidMacros automatically reloading its config

Post by cristiano_pruneri » 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.

admin
Site Admin
Posts: 530
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: HidMacros automatically reloading its config

Post by admin » 10 Nov 2014, 08:23

Noted down already as feature request.
Someone already asked me to have a command in script to read different config file so probably the first thing at my TODO list.
Petr Medek
LUAmacros author

cristiano_pruneri
Posts: 14
Joined: 19 Jul 2013, 12:43

Re: HidMacros automatically reloading its config

Post by cristiano_pruneri » 12 Nov 2014, 19:09

Thanks. It is a good news, for me.

Post Reply