Giter VIP home page Giter VIP logo

Comments (3)

josephj11 avatar josephj11 commented on August 30, 2024

Hi.

Since this isn't a bug (at least yet), it would probably be better (and be seen by more people) if it was posted on our Google Groups forum (https://groups.google.com/forum/#!forum/autokey-users) or directly to our listserv. Subscribe with ([email protected]).

Your notes don't quite make sense to me. If you are using things like window filters, then you are inside of AutoKey, but if you are using the scripting module, you're outside of AutoKey. Inside AutoKey, you just say keyboard.send_keys( ... ) without importing and using the scripting module.

If you are inside AutoKey, you can only bind a macro to one (possibly multi-key) hotkey so I'm not sure where key_sym is getting a value.

All of these technicalities aside, I have no idea what AutoKey will do if a macro emits the hotkey that triggered it (or the hotkey for any other macro, for that matter). I would hope that it doesn't cause infinite recursion, but I haven't tried it. That would be the first thing to test - all by itself.

Other than that, I know X11 has a number of primitives in its API for dealing with the keyboard, but I have no idea what that would do with AutoKey running either.

Maybe what you really want is to swap keyboard layouts on the fly. I haven't experimented with this, but a good place to start looking would be man xmodmap.

Joe

from autokey-python2.

QiangF avatar QiangF commented on August 30, 2024

Thank you Joe.
I finally managed to find a solution.
https://github.com/metakermit/dotfiles/tree/master/autokey
But the window filter doesn't work as window fileter in the autokey gui, maybe it is because the recursive hot-key calling.
Feel free to close this issue.

from autokey-python2.

josephj11 avatar josephj11 commented on August 30, 2024

Closing. Referred to development for consideration.

from autokey-python2.

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.