Coder Social home page Coder Social logo

albinodrought / sharpclap Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 432 KB

Presses user-defined keys when peak volume meets threshold. Uses SendInput and NAudio's implementation of WASAPI

License: GNU General Public License v3.0

C# 100.00%
naudio wasapi

sharpclap's Introduction

SharpClap

SharpClap is a program that can send keys (with delays) when noises within a threshold are heard. It uses SendInput for I/O and NAudio's implementation of WASAPI for listening through both input and output.

Why?

I wanted to rank up my fishing in the game Trove, but I did not have the audacity to sit at my keyboard for hours just to repeatedly press a single button (F) after hearing the "caught-fish" sound. Other solutions to this problem used memory reading and writing, which is too invasive for me (and more likely to be caught by an anti-cheat).

Features

  • Ability to listen to both input and output devices
  • Minimum and maximum noise thresholds
  • User-defined keys
  • Support for static and random delays between presses
  • Saving and loading settings to .xml
  • Customizable cooldown inbetween detection instances

Examples

See the folder inside the SharpClap solution called "Samples" for example xml files you can load through the program.

Currently contains:

  • trove.xml - Sound-based auto-fisher for the F2P Trove MMO
  • loudnoises.xml - Presses a key-combination (ALT-M) when a max-volume noise is heard, waits 3 seconds, and presses it again. Main purpose is to mute my microphone on Skype when the dogs bark.

License

Licensed under GPL-3 - https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3)

Uses NAudio: NAudio is an open source .NET audio library written by Mark Heath ([email protected]) licensed under Ms-PL

sharpclap's People

Contributors

albinodrought avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

darkacid

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.