Code Monkey home page Code Monkey logo

Comments (8)

caseyscarborough avatar caseyscarborough commented on July 24, 2024 1

@mattalexander-pantheon Thanks for the bump. I've have left this unmaintained for a long time, but I've just done some much needed house cleaning. Hopefully it meets your needs now.

from keylogger.

RSully avatar RSully commented on July 24, 2024

IMO it would be even more helpful if it said "[left-shift down][left-shift up]" so in the case of uppercase words you know the begin/end

from keylogger.

mattalexander-pantheon avatar mattalexander-pantheon commented on July 24, 2024

2016? I think I'll uninstall rather than hold my breath.

from keylogger.

caseyscarborough avatar caseyscarborough commented on July 24, 2024

Resolved.

from keylogger.

RSully avatar RSully commented on July 24, 2024

Any thoughts on handling up/down events for something like shift? Hard to know which letters are capitalized if we don't know when it was released

from keylogger.

caseyscarborough avatar caseyscarborough commented on July 24, 2024

@RSully I made an update tonight that applies the shift key state to the output of the log file. If the shift key is held it will show the proper special character or capital letter that corresponds to the combination of the two keys.

In the process I removed the [left-shift] and [right-shift] outputs from the log file which seemed like the most appropriate solution. I'm definitely open to suggestions if you think it should work differently.

from keylogger.

RSully avatar RSully commented on July 24, 2024

Cool, glad to see some attention here. With that said, I think the current implementation doesn't lend itself too well to supporting international keyboard layouts in the future (?)

from keylogger.

andmis avatar andmis commented on July 24, 2024

You can figure out whether the key event was an up or down event by inspecting the flags of the event @caseyscarborough (note this also works for regular events, like kCGEventKeyDown):

    // In CGEventCallback
    printf("%llu\n", CGEventGetFlags(event));

from keylogger.

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.