I just spent two days of my life madly trying to figure out why a "click" command wouldn't work. My program hinged on being able to click on this one control, an RaGrid in my GUI. It was only on this one computer.
I tried every trick in the book from and every combination, variation, sendmode, and method AHK has, even all the little tricks suggested in the forum. Even spent time on MSN to use PostMessage. No luck.
Turns out this computer had Synergy (free Mouse/Keyboard sharing program) running and that was somehow steeling the mouse click. I terminated "synergy_s" and "syernergy_d" processes ("show processes from all users") in taskman and the script worked.
I wonder what synergy is doing to hook the mouse at such a deep level and why it wasn't passing it forward?
Two days of my life, one line of code: "Click".
Cheers!
Synergy Screenshare Program
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: Synergy Screenshare Program
What about the ahk mouse hook?
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: Synergy Screenshare Program
Yes, with #InstallMouseHook it still did not work until closing these processes:
Re: Synergy Screenshare Program
hmm i dont know ....
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
Re: Synergy Screenshare Program
Nitpick: Synergy is not a screen-sharing program. It does not share a screen, only the keyboard and mouse.
Any old keyboard/mouse hook like the one AutoHotkey uses could easily interfere with keyboard/mouse input, simulated or otherwise. It doesn't have to be at a lower level than AutoHotkey.
Any old keyboard/mouse hook like the one AutoHotkey uses could easily interfere with keyboard/mouse input, simulated or otherwise. It doesn't have to be at a lower level than AutoHotkey.
- metacognition
- Posts: 117
- Joined: 22 Oct 2014, 05:57
- Location: Alaska
- Contact:
Re: Synergy Screenshare Program
Dang, you're right, I don't know why I said that. Yes, it is not a screen sharing application by any means, I knew that, believe me I did!
Okay good to know on the mouse hooks. Thanks!
Okay good to know on the mouse hooks. Thanks!
Return to “Off-topic Discussion”
Who is online
Users browsing this forum: No registered users and 37 guests