r-larch / mousetrap Goto Github PK
View Code? Open in Web Editor NEWA small tool to map the cursor between monitors with different DPIs
License: MIT License
A small tool to map the cursor between monitors with different DPIs
License: MIT License
Hi,
Your program is great and uses much less resources than competition in form of LittleBigMouse.
However is there a way to implement dragging resized windows? so the transition from bigger to smaller monitor looks seamless?
There are two things that I think can be improved with the temporary disabling of mouse teleportation.
Commandline support for reinit command would be great. Currently if you resume from sleep, you need to do "reinit" from tray bar. It would be easier if we could just add a task to do this and call reinit via commandline.
Would be a nice feature if the tool automatically disabled itself when entering e.g. a game that contains/locks the cursor ๐
I looked through Mousetrap and Git pages, but didn't find any support for separate monitors w/separate computers.
Mousetrap would benefit from incorporating Wi-Fi KVM switch functionality, like Mouse with Borders, Symless, etc. Adapting the simpler form of Wi-Fi KVM switch, like Mouse Without Borders does, is the perfect fit for Mousetrap.
With that requested, I have a small bug.
I installed Mousetrap on one machine and it works great. However, the second's Mousetrap app wouldn't detect .NET runtime installed. When Mousetrap doesn't find .NET, it offers a dialog to download that package. However, when I'd click Yes to download the .NET, nothing happened.
Then, after manually installing .NET runtime v8.02, Mousetrap doesn't detect it. After the .NET install, I also gave the machine a reboot, in case that was needed. However, executing the Mousetrap command still results in a hard stop - the dialog box to download .NET runtime. Only v8.02 was installed, so no other .NET versions are present. TIA
I'm using Windows 10 Pro Build 19045 with PowerShell v7.4.1.
on some passes between monitors, the cursor will jump to the center of the next screen
Hello!
Sometimes when I move the mouse from one screen to another, it will not correctly move the cursor.
For these times, it will behave as if the application was not enabled (default mouse move behavior)
I believe I was able to catch these events using the diagnostics tool
The message seems to be
0:00:01,4019406 3 [ ] Cursor( 55, 546) MouseTrap({X=0,Y=0,Width=2560,Height=1440}) system had wrong clip: {X=-1920,Y=0,Width=4480,Height=1440} -- IsInputDesktop: True
Update:
Never mind the previous log after playing around a bit more I was able to get:
0:00:47,6273076 477 [โ] Cursor( 0, 1063) MouseTrapClear(0)
0:00:47,6274518 479 [โ] Cursor( 0, 1063) Move To Screen -> {X=-1920,Y=0,Width=1920,Height=1080}
0:00:47,6274475 478 [โ] Cursor( 0, 1063) ฮ src-dst: -2 - 2 smallJump: True
0:00:47,627455 480 [โ] Cursor( 0, 1063) MouseMove ( -3, 797)
0:00:47,6277254 481 [โ] Cursor( 0, 1063) Move Failed ! ( 0, 1063) - Retry
But it doesn't always seem to log this when the switching fails. So I don't really know what's going on.
New diagnostics
mousetrap-diag.txt
Despite the last message saying "Retry", it didn't really retry
Hi, I use a 3 monitors set-up, with a widescreen (21:9 25") over my laptop monitors (16:9, 15"), as shown in the picture bellow.
Unfortunately, I can't setup 2 screen bridges on the same side of my monitor. It would be perfect if I could, as my widescreen is placed over my two other screens.
If I put only one bridge, I have, depending on how far I stretch the upper bridge, either one of my 2 other screen is left-off, either an uncomfortable experience with the 2 bellow monitors sharing the same bridge of the upper monitor (picture bellow).
Can you help me through this?
Thank you for you help!
Application: MouseTrap.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
at System.Linq.Enumerable.First[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Collections.Generic.IEnumerable1<System.__Canon>, System.Func
2<System.__Canon,Boolean>)
at MouseTrap.MouseBrigeService.Loop()
at MouseTrap.MouseBrigeService.Run()
at MouseTrap.ServiceThread+<>c__DisplayClass7_0.b__0()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
I understand a port would be challenging but have you seen anything similar to this built for Macs?
Hello
There is a problem that occures in certain games. Lately i discovered it in Layers of Fear 2 , and Pacify. When you turn to one side mouse can go to the second monitor and click out of the game. After closing MouseTrap the problem is gone. I believe it's bad implementation of Fullscreen mode of the game but is there any way to fix it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.