test1
August 19, 2017, 05:39:18 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: You can attach photos hosted by the forum rather than using an external image hosting site, this means they will stay forever and not disappear after a year or two.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: HIDMacros + Daemon  (Read 694 times)
DaBotz
Sr. Member
****
Posts: 215



View Profile WWW
« on: April 27, 2016, 03:59:11 PM »

HIDMacros is a small program that assigns macros to buttons - and mouse vents -   depending on the device HID id.

It has its limits - mainly, he can't switch gears depending on the Windows you are working on.

To juggle around it, I have built a small (big, nowadays) Java "Daemon" that keeps a repository of configuration files (with backups and the possibility of defining forks for specific uses).

It has been a lot of work - sheesh.

Anyway, if you like "Single button" shortcuts, the combination can be useful.

HIDMacros was written in TurboDelphi, and its author (Petr Medek) has decided to drop it, as TurboDelphi has been reverted to commercial software (from freeware that it was).

It has switched to a new project, called "LuaMacros", that has no graphic user interface to speak of and does not handle some inputs like midi instruments (oh, well) and mouses (what?  damn).

I have made my stupid Daemon as simple as possible, and learned what I could from it, but I think that this is the end of the line. 

I posted a last version of it  in a Dropbox folder,

https://www.dropbox.com/sh/ul13bv7xy86pxkg/AACuTFcLK-JcTZDFOFC86CVMa?dl=0

, along with a "turn-key" zip with a clean instance of HIDMacros.

In the long run, if I have time, I will probably build a "Universal HID-devices Handler", that does what HIDMacros do but a bit smarter - (for example, it can already see open windows... it is the first part that I did). 

I also placed a Zip with the project, but you may need to link a copy of the daemon jar

An explicative video:

https://youtu.be/mL50K8--HbU

Anyway, beware... it can become addictive...


* 0D-00001 - ___8565716_5c6cf8137ccf235980a23af729978092.jpg (333.63 KB. 1024x833 - viewed 103 times.)




Logged

The most incredible artist of... Barbanza?
bernard
Administrator
Hero Member
*****
Posts: 2584


pato mania


View Profile
« Reply #1 on: May 13, 2016, 02:24:42 AM »

Cool stuff! Why do you say it is the end of line?


And what a setup!! Comics reader included.
Logged
DaBotz
Sr. Member
****
Posts: 215



View Profile WWW
« Reply #2 on: May 15, 2016, 12:43:15 AM »

The original author of HIDmacros has dropped it... and I have grown weary handling the things from "outside", with the "switch away" of the config files, and killing and relaunching HM.

It works, but it adds some non-banal elements of time-lag.

For example, you can "declare" "variants" on a set of shortcuts - for example, when I draw colors I prefer to have "Alt" - pick color - instead. And it works fine, apart when you have to set them up... I automatized it a bit, so that the creation is handled by the daemon directly, instead of relying on you saving the modified version with the "variant call" active. 

I have started working to reimplement HIDmacros in Java, trying to make it more flexible (for example, I miss the possibility of declaring arbitrary buttons,  as  "Ctrl - Alt - Shifts" that can be held down and left up after a while - as some Linux programs allow to do... had it been there, I'd have a "Shift" on my numeric pad, instead of having to go )

But I fear it would not be so fast, performance-wise... on the other hand, I also fear being swallowed by C, if I reinstall Visual Studio (and the result would be Windows-only, too... I suck at software engineering).

If I go on the Java Road, I will try to leave the door open for others to add OS specific interfaces (right now, I have only a Windows PC) through system specific plugins...

Alas, it is a lot of programming near or beyond my usual level of skill.

And, if I program, I do not draw - the two sets of gears, in my mind, need a bit of time for the set-up change.

However... I have made a couple of changes since this post, as I was fed with the auxiliary windows closing on me so often.

So, I replaced the jar in the "all in" Zip.
Logged

The most incredible artist of... Barbanza?
Pages: [1]
  Print  
 
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!