Git Product home page Git Product logo

Comments (10)

wavexx avatar wavexx commented on August 16, 2024

from screenkey.

CD3 avatar CD3 commented on August 16, 2024

That's what I was afraid of. When my script runner is in keysym mode, it sends key presses to the current window. When I press a key to load the next line, it also gets sent to the same window. Maybe I can have the script runner send keys to a dummy window and then filter as you suggest. Does screenkey have an option to only display keys being sent to a specific window?

from screenkey.

wavexx avatar wavexx commented on August 16, 2024

from screenkey.

CD3 avatar CD3 commented on August 16, 2024

All right, I'll look into that. Thanks for the help.

from screenkey.

Foxboron avatar Foxboron commented on August 16, 2024

I tried looking into this, but ev.xkey.window returns 0 regardless of the window used.

from screenkey.

wavexx avatar wavexx commented on August 16, 2024

Indeed, it looks like it's always 0 also on my system.
I'm unsure if this is expected with XRecord, or if I made some mistake while decoding.

from screenkey.

Foxboron avatar Foxboron commented on August 16, 2024

If you would like to look into getting the window ID, i'd gladly implement rest of the feature requested above.

from screenkey.

wavexx avatar wavexx commented on August 16, 2024

After a cursory look, I don't see any obvious mistake. I fear XRecord might tap into the event before the target window id is calculated. No obvious documentation about this. I'll have to look at where XRecord takes the event.

from screenkey.

Foxboron avatar Foxboron commented on August 16, 2024

Implemented a POC using python-xlib to get the correct window id.
Foxboron@98618e2

from screenkey.

wavexx avatar wavexx commented on August 16, 2024

from screenkey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.