GithubHelp home page GithubHelp logo

garzj / windows-stylus-block-input Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 58 KB

A windows service that blocks other user input while a pen is used.

License: GNU General Public License v3.0

Makefile 28.36% C++ 49.20% PowerShell 11.24% Batchfile 11.20%

windows-stylus-block-input's Introduction

windows-stylus-block-input

A windows service that blocks other user input while a pen is used.

Prerequesites

  • MinGW + make
    Best installed with Chocolatey: choco install mingw make -y
  • Windows SDK -> Windows App Certification Kit
    Make sure you add it to your PATH, it's normally in "C:\Program Files (x86)\Windows Kits\10\App Certification Kit"
  • WiX Toolset (to create the installer)
    This should also be added to your PATH: %wix%\bin

Certificates

Note that in order for the program to receive global input messages, it must be digitally signed with a trusted certificate for Windows to grant it UIAccess.

There's already a nice pregenerated certificate in the repository, but if you don't trust it, you can run make cert-regen to generate your own.

Building

Building the executable

Just type make and the program will automatically be compiled, signed and saved into a new build directory.

If you want to execute the program directly, you'll have to run make uiaccess as administrator first and potentially restart your computer. This will try to install the certificate and set a registry entry disabling EnableSecureUIAPaths, because Windows by default doesn't grant UIAccess to programs in insecure locations.

Building the installer

You can skip the previous step, if you just run make installer to build a standalone .msi package (into installer/).

After installing the package, the app will automatically start in the background everytime you login until you uninstall it again.

windows-stylus-block-input's People

Contributors

garzj avatar

Watchers

 avatar

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.