Skip to content
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

Trigger FancyZone for windows that are dragged not by the TitleBar. #4679

Open
MikeKholomeev opened this issue Jul 1, 2020 · 2 comments
Open
Labels
Idea-Enhancement New feature or request on an existing product Issue-DCR A request to change the way an existing feature works Product-FancyZones Refers to the FancyZones PowerToy

Comments

@MikeKholomeev
Copy link

Summary of the new feature/enhancement

I have the script at my PC, written on AutoHotkey, which allows me to Move Windows using Any It Parts. This functionality mapped to Middle Mouse Button. FancyZone feature works only if I drag window by TitleBar. It would be nice if we could make it work with any dragged window.
Not sure if it possible at all, but may be you have some ideas.

@ghost ghost added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Jul 1, 2020
@enricogior enricogior added Issue-DCR A request to change the way an existing feature works Product-FancyZones Refers to the FancyZones PowerToy and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jul 2, 2020
@enricogior
Copy link
Contributor

@MikeKholomeev
FancyZones needs to detect the difference between a window being moved or being resized. I assume that when you move a window using the AutoHotkey script, FZ doesn't detect it as a move and assumes it's a resize or doesn't even receive the event in the first place. We may look into it, but not any time soon.

@enricogior enricogior added the Idea-Enhancement New feature or request on an existing product label Oct 2, 2020
@enricogior enricogior reopened this Apr 19, 2021
@Korkman
Copy link

Korkman commented Mar 28, 2024

Dropping an idea here how it could work. FancyZones should NOT attempt to detect and interpret window movements from AutoHotkey in general, as scripted window movements can have varying intentions. But it could offer some kind of API for AutoHotkey and others to consume, so an application can signal a few things:

  • it is in the process of moving a window, providing the window handle and, potentially, virtual XY mouse coordinates
  • finished moving, accepting FancyZones resize
  • finished moving, rejecting FancyZones resize

That way AutoHotkey users can script the behavior as they like. I think this would be the minimum effort required and have the most impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-Enhancement New feature or request on an existing product Issue-DCR A request to change the way an existing feature works Product-FancyZones Refers to the FancyZones PowerToy
Projects
None yet
Development

No branches or pull requests

3 participants