mgth / LittleBigMouse

DPI Aware mouse move across screens
GNU General Public License v3.0
3.93k stars 187 forks source link

Command line to start/stop LBM (even after renaming .exe) no longer works #304

Open lolDayus opened 9 months ago

lolDayus commented 9 months ago

Referring to this from the readme:

C:>"C:\Program Files\LittleBigMouse\LittleBigMouse_Daemon.exe" --start

So obviously I've tried the same command line with LittleBigMouse.Ui.Avalonia.exe and LittleBigMouse.Hook.exe subbed in for LittleBigMouse_Daemon.exe but neither works. Tried to use /taskkill as well, same thing. I get an error when using the Avalonia one and the Hook one works but it just opens the hook and doesn't actually run the program.

Just trying to automate starting/stopping the program whenever I switch to multiple/single displays, respectively.

SimplyEagle commented 9 months ago

This could be an issue on particular systems or versions. The cmd line you listed above seems to work for me, both --start and --stop. However, --stop does not visually update my GUI and seems to break it entirely? Right-clicking the system tray icon and using those button still works.

mgth commented 5 months ago

This does not work in V5 will be back soon

axb993 commented 1 month ago

In case someone needs to hear this I found an easy but janky workaround. Just kill the processes. It actually works pretty well for me. Depending on which process(es) you kill you can even disable it for only a ~5 second window.

A little barbaric sure but it gets the job done until V6.0. This issue was interfering with pyautogui but I didn't want to disable LBM each time I wanted to run a script so I just wrote a hook to kill LittleBigMouse.Hook.exe immediately before moving the cursor.