-
Notifications
You must be signed in to change notification settings - Fork 79
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
[Feature request] Add resize option to scroll wheel and title bar scroll action #239
Comments
Maybe the window resizes proportionally when scrolling? |
If you meant :
... then I like this idea. 👍 There might also be an option to set how many pixels (or % of the size) each mouse wheel notch should increase. |
What I meant was:
In this case you are just increasing the window, the decreasing part gets completely left out
This seems like a pretty cool idea |
Here is a quick test version. It is still work in progress. |
I have just tried this "AltSnap1.55test5_x64.zip" version and wow.. this is impressive! |
One suggestion. Let the window border recognize the screen edge, or, preferably, behave accordingly to the |
For sure it is coming... |
Thanks this works great! Would it be possible to add horizontal resizing as well along with the vertical resizing? |
Ok I just noticed that the titlebar zoom window action also uses the window fractions. |
How would that be done?
Usually the Titlebar action is exactly the same than the normal one. |
I'm not a programmer and not sure of the technicalities which is why I am asking if it would be possible.....
Yep, realized that later on. |
Here is an improved version.
|
Actually I was just wondering which key could have been used to invert between horizontal and vertical, but Ctrl is the obvious choice as it can already be used to idicate a vertical only center resize (using the resize action). |
Aah ok, I see. I misunderstood XD The test6 works fine btw |
You mean only in the case of titlebar? |
This one have two zoom option, the second one corresponds to what you want. |
hooks1.55test8_i386.zip Aspect ratio cannot be perfect because there is a minimum step in each direction for snapping, plus there is rounding error at every step. You can prevent AltSnap from resizing windows that are not resizable by disabling the Resize all windows option. this is unrelated and has been the case for a while now. This version also fixes the window running out of the screen when zooming too much problem. |
Thanks, And I can confirm that the running out of screen problem is fixed as well. |
Well I improved slightly the snapping behavior, to make it a bit less snappy in some cases. The other advantage is that it can now keep the aspect ratio of windows much better. Not perfect though. Also you can configure the
|
This build works fine without any problems for me. Regarding the aspect ratio, I'm not really able to tell the difference tbh. Bringing this up just with regards to the mpv player specifically: But if I resize the window with altsnap, it behaves as if the aspect ratio restriction doesn't exist at all, even if the resize all windows option is turned off. Would there be any way to send the normal mouse resizing command instead of the altsnap resizing command? I hope I'm making sense. |
Unfortunately there is only few documented function to move a window and they are all based on SetWindowPos(). I suspect Microsoft added a new way of resizing/moving windows via the DWM but it is not available for programs. |
Ah ok I see. |
@RamonUnch This is a theory based on this post I found on the autohotkey forums: This person was facing a similar issue and was able to solve his problem by sending the WM_EXITSIZEMOVE message. |
I already use the WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE messages in the Move and Resize actions, My observation is that it was mostly a placebo but I forgot to add it to the Zoom action. it will be done for sure. |
@RamonUnch Thanks |
Also since you already use these messages in the resize action, But one last message that I found from the thread is the WM-SIZING message: Do you think that would work? |
Ok nvm this as well, I tried out this as well via authotkey and It didn't have any effect. Let me know if you think otherwise. |
This was one of the first things that I tried to add it wasn't in the options.
Seems like a very intuitive feature.
The text was updated successfully, but these errors were encountered: