Giter VIP home page Giter VIP logo

Comments (5)

calmofthestorm avatar calmofthestorm commented on July 28, 2024 1

Sorry about the delay. I believe we added that Control_R way back to deal with VirtualBox capture. The best option there is to comment that out when on OS X.

As to the other issues, this seems to be a reflection of #65. The best option is probably to add some logic in the OS X server to translate keystrokes as appropriate, and/or to modify the relevant grammars to send keys OS X understands.

I don't use OS X or have an install handy so I'm unlikely to do this, but I'm happy to accept PRs to this effect.

from aenea.

seananderson avatar seananderson commented on July 28, 2024 1

Yes, commenting that out works.

Separately, I've been using this full-time for over a year now on OS X / macOS. So first, this project has saved my career, thank you. I can't thank everyone who's worked on this enough.

I don't know if anyone else is using the OS X functionality but I've had to make a number of small changes for it to work.

If the current version is working for others then that's great and carry on, but if you would like the changes then I am happy to make a pull request. This is working on 2 separate computers for me. Previously with 10.11 and now with the latest 10.12.5 (macOS Sierra).

My fork is here: https://github.com/seananderson/aenea

Diff: master...seananderson:master

The major changes are:

  • fix some key names and key translations
  • switch from pasting Text() to simulating keypresses. This is a bit slower but much more functional for me because it lets me type everywhere that I could type with the keyboard. For example, you can't type in the Vim command line with paste and some input forms on websites or application dialog boxes don't allow you to paste. Also, some programs, like MS Word, do weird things with spaces at the end if you paste. Plus, using copy and paste constantly clobbers the clipboard. Recently I had to add a micro pause between keypresses after an operating system update or the typing would sometimes be too fast and letters would be lost.
  • a recent addition that you may not want merged is the ability to execute arbitrary macros with the program Keyboard Maestro by checking if a Text() command starts with "KBM " and then executing the macro by that name. I use that for all sorts of things including application launching and window positioning. I'm sure there's a more elegant way to do this.

(For anyone stumbling on this later, I started adding those macros here and my grammar files are here. They are a mess but they work for me. I also use SmartNav for head tracking and the Kinesis Savant foot pedals for dragging / some clicking.)

from aenea.

dylan-chong avatar dylan-chong commented on July 28, 2024

Commenting out the if ... raise ... lines seems to work

from aenea.

dylan-chong avatar dylan-chong commented on July 28, 2024

That looks awesome! I'm gonna try your stuff out.

I suppose is this is a pull request, it kinda belongs in the pull request section (I'm not a contributor to the project btw)

from aenea.

sweetmandm avatar sweetmandm commented on July 28, 2024

💯 I also had to put in a fix for: "Switch from pasting Text() to simulating keypresses". I didn't want to mess with AppleScript so I just pulled in pyautogui:
sweetmandm@9bf65c6

from aenea.

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.