I rewrote the script a bit, so it checks whether the cursor is in the middle or not: Since it's very unlikely that I go to that exact position very often on the PC itself, that'd be a good way to tell where my mouse is. Thanks for the script! I noticed that the cursor on the PC is set to the middle of the screen when I move the mouse to the Mac. I also tried the bottom example script from SysGet, but it (obviously) still shows the same monitor because the mouse only moves 'away' over the LAN, not to another Windows monitor. The log (Active Window Info) doesn't show anything about moving out of the screen. I just can't figure out how to detect this. I need to use ctrl+c for cmd+c).ĭoes anyone know how I can detect that I moved my mouse out of the screen and onto the other computer? If I can detect that change, I can simply disable the AHK rewrites when Synergy activates the keyboard/mouse on my Mac, and re-activate it when I go back to the PC. The problem is that I swapped the keys around, and now they are wrong on the Mac (e.g. Now, whenever I move my PC mouse out of the screen on Windows, it shows up on my Mac, and I can use my PC mouse and keyboard on that. I use on the Mac to connect to the PC to use its mouse/keyboard I also have a Synergy server running on the Windows PC: to share my mouse/keyword I wrote an AHK script for Windows to switch some keys around so the shortcuts work the same as on my Mac (cmd+c instead of ctrl+c, etc).
0 Comments
Leave a Reply. |