anko / hudkit

transparent fullscreen on-top click-through WebKit web view, for making cool desktop HUDs
ISC License
100 stars 14 forks source link

Research brain-dump: Possible implementation paths for handling input events while also passing them through #5

Open anko opened 5 years ago

anko commented 5 years ago

As pointed out in #3, Hudkit currently passes through all input events. This is by design, but that's because the design is not ambitious enough. :fire:

If desktop input events could be duplicated to the Hudkit page in addition to the passthrough, that would open up many interactive "applications"—which is to say I really wanna resurrect this ancient hypergurl.com mouse-trailing clock that I thought was cool when I was 12, and I was so disappointed that the page said "This script works on webpages only and cannot be installed to desktops". Now, 15 years of programming later, something is flickering at the end of this tunnel. Maybe.


Notes for possible implementation paths:

If anyone reading knows anything even a little bit related to this, please link!

criticalsoft commented 4 years ago

This library seems not complete. Please chek my project. I Want to make two kind of App With this project, Maybe we are the same thought:

A: Desktop interactive web HUD:

  1. MouseClick Desktop Web page element to interactive with it
  2. Click Front Window do daily job Solution: accept_focus -> true

B: Desktop annotation tool:

  1. MouseClick HUD Overlay Web page canvas to interactive with it
  2. Passtrough Click Behind Window do daily job Solution: Could you merge this kind of Library to your project And redirect events to Webpage Javascript ?