If there was an excellence award for the best post on this board this one would be a candidate number one.
And I'm saying this not because this solution helped to revive my otherwise useless remote.
Coming up with this solution requires an excellent debugging skills, know-how, internals of the software and, usually, an access to a source code and a database.
Do you have an access to the source code?
It goes without saying that HK tech support claimed (three calls) that the remote got broken; Logitech (first and second levels) could not transfer my configuration (13 devices, 10 activities, a few learned commands and all arrangements and timeouts) to a new Harmony remote even so they could access my account with HK.
Thank you, superfatman, very much.