Giter Site home page Giter Site logo

qunying / x-mouse Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 17 KB

Microsoft Windows CLI utility to manage the active window tracking/raising settings. This is known as x-mouse behavior or focus follows mouse on Unix and Linux systems.

License: GNU General Public License v3.0

Makefile 4.70% C 95.30%

x-mouse's Introduction

x-mouse

This a very simple CLI program to control the mouse behaviour on Windows.

I was searching for a method to make the mouse on Windows to mimic the focus follow mouse behaviour in X11. And found this program X-Mouse Controls, but when I tried to run it, it requires to bring in the .NET dependency.

For such a simple task, I would rather not to bring in a whole .NET runtime. So I serched around and found that it is very simple by calling a single win32 function SystemParametersInfoW with various parameters to get the job done.

Hence born this simple program. It is developed under MSYS2 enviornment and compiled with make and gcc. It is a single/simple executable that does not need to be installed. It could be run in the CMD shell or PowerShell.

The program by default prints out the current settings when run without argument:

   ./x-mouse.exe
   Window tracking: on
   Window raising : off
   Tracking Delay : 50ms

Run it with "x-mouse -h" will print out the usage:

   ./x-mouse.exe -h
   Usage: x-mouse [arguments]
      --win-tracking on/off   Set Windows tracking on/off.
      --win-raising  on/off   Set Windows raising on/off.
      --delay        NUM      Set Windows tracking delay (0~3000ms).

   -h/?,--help                This help.

x-mouse's People

Contributors

qunying avatar

Watchers

 avatar  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.