joelpurra / xmouse-controls

Microsoft Windows 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.
https://joelpurra.com/projects/X-Mouse_Controls/
GNU General Public License v3.0
229 stars 18 forks source link

Add Command-Line Options #22

Closed pleappleappleap closed 3 years ago

pleappleappleap commented 3 years ago

This program works great. The only thing I would want is the ability to specify the parameters on the command-line. The program should just execute the requested action and then terminate. The GUI should only come up if no parameters are specified on the command-line.

joelpurra commented 3 years ago

@pleappleappleap: sorry, no plans to add CLI arguments at this time. Mixing CLI and GUI functionality in a single .exe is not good practice; should be two different programs, if you ask me.

There's an answer on SuperUser which shows how to enable SPI_SETACTIVEWINDOWTRACKING using a powershell script though. Perhaps that will suffice as a base for scripting "all" parameters available in X-Mouse Controls?

Closing this issue, since the request is considered out of scope for X-Mouse Controls. Feel free to post follow-up questions anyways, or perhaps a nice powershell script for others to use =)