-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find my mouse: set spotlight duration #20718
Comments
I would like to give this a go if possible? |
@fredso90 |
I have a question. Now I've made it so that Duration (ms) is an actual setting, but I can't seem to figure out how to update the labels. As seen in the screenshot above, the setting has no name on the settings screen :( |
@fredso90 I hope that helps you. |
Here's what the SettingsCard looks like. I can't find the resource file, which, from your previous reply, should be where to find the Header and Description of all the labels. I'm sorry if my questions are annoying. Just trying to learn :( |
@fredso90 |
@htcfreek Thank you so much. |
@htcfreek may I trouble you with yet another question? More concretely, I wonder where I should implement the spotlight duration. I assume it's in the FindMyMouse.cpp file? |
@jaimecbernardo |
Hi @fredso90, The module interface per se is in https://github.com/microsoft/PowerToys/blob/812b343776b5f0cbda734182e4996571803c35d8/src/modules/MouseUtils/FindMyMouse/dllmain.cpp to deal with PowerToys integration and the Find My Mouse logic is in https://github.com/microsoft/PowerToys/blob/812b343776b5f0cbda734182e4996571803c35d8/src/modules/MouseUtils/FindMyMouse/FindMyMouse.cpp By the way, GdiSonar and GdiSpotlight are not really used and are there from previous experiments. They're kept around mostly for reference. CompositionSpotlight is the SuperSonar implementation that's actually in use. Hope this helps! |
Thank you for your detailed reply. It does help. Now I know where to look and what code is relevant. |
I wrote a duplicate request, so I am very much in favor of this suggestion. 👍 I did however also add another suggestion as part of it that it should not be required to stop moving the mouse completely for the spotlight to be able to go away. It should be enough to stop shaking it. If it can detect me shaking the mouse, it can also detect me having stopped shaking it and just moving the mouse normally. |
@fredso90 please do. |
Duplicate of #16945 |
Description of the new feature / enhancement
I should be able to set the duration the spotlight appears.
Scenario when this would be used?
There exists a delicate balance in the universe: Shake minimum distance. Too much distance, and you look like a crazed maniac shaking your mouse to find it. Too little distance, and your screen flashes like the WOPR learning that nobody wins at Global Thermonuclear War[^1]. If the spotlight duration could be specified, the interruption would be brief, and the cost for a lower Shake minimum distance would be reduced[^2].
[^1]https://www.theaceblackblog.com/2016/10/movie-review-wargames-1983.html
[^2]Yes, I realize the screen would flash more like the War Games movie scene, however, the visualization was too good to resist using the analogy.
Supporting information
No response
The text was updated successfully, but these errors were encountered: