-
Notifications
You must be signed in to change notification settings - Fork 61
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
Key Combo and 'Non-click' window grabbing #29
Comments
Only tested the build for a couple minutes now but the GrabWithAlt config seems to mostly do the trick for me. I am slightly confused how though, since the Meta Key is ... somewhat blocked by AltDrag :). I use the Win Key (also tried it with Alt) and the normal key combinations still work (which is a good thing), only individual presses do not register. They do register above the Taskbar though. Did you implement the functionality by sending a click event as well? I have the added benefit that if I double tab the Hotkey I get a fullscreen window :) The only gripe I have is that the right click resize is not working with this combination. If I left click however the "move cursor" disappears and I can do a right click as normal and resize the window. I am not currently working on a Windows Laptop anymore but my ideal solution would be to have a e.g. a move with one finger on the touchpad and a resize with two. So the current implementation would have gotten me half the way there and for all fairness BTT or many of the other tools on macOS also don't do this. The other method I currently use is to have a Move hotkey (say Alt) and when I press an additional key (say Shift) the move switches to resize. Even with two instances I cannot get this to work. The move instance is set up to use KeyCombo=1 and GrabWithAlt=Resize with the Hotkeys "A0 A4" but when I press both Hotkeys the two instances fight over the window. I don't know if this could at all be relieved but would it be possible to have a setting similar to KeyCombo that tells AltDrag to work if and only if ONE Hotkey is pressed? I.e. the first instance would release its hold over the window when shift is pressed as well? It is amazing to see that you picked up the development on the stagnant piece of software, I am excited now everytime I see a new AltDrag release! 😄 Thank you! |
Yes for now it is quite limited. more work needs to be made on this. If your cursor is pointed to a blacklisted window (like the taskbar) then AltDrad soes not activate. It is a good idea to add a block key list telling AltDrag to disable if one of those is down. It does not send a click but the same function is called and checks for the time between two press so it gives the same result. When using this GrabWithAlt option indeed the mouse buttons can no longer be used to perform other actions. I do not see how to avoid that because the action is running as soon as Alt (or a combo) is down so it blocks other inputs. I will see what I can do. |
@DrBones
When you press Alt, it moves @MarqueIV If you want Ctrl+Alt+Win+LeftClick to move a window and Ctrl+Win+LeftClick to resize it
And if you want Resize to be ONLY from the Lower right then set
in the [Advanced] section of ini file. |
Unfortunately this would require multi touch and I have no idea on how to handle that for now. |
With next release you will be able to do this. |
have a try with this version. |
WIN+LSHIFT to move (without click) works great, if a little laggy with the window border paint. I haven't tested yet, is it possible to set CTRL+LSHIFT to resize (without click)? |
If you set Left Shift Win Left Ctrl as hotkeys (with ini): You should have I would not advise those combo however because when selecting text with Ctrl+Shift it will interfere, maybe you do not care though, it is not very disturbing. So a suggestion to have the minimal intrusiveness would be to use LWin and LAlt as hotkeys and to set one of them as the Invert move resize key and then Alt+Win and Win+Alt will do move/resize depending on the order it was pressed. If you use Windows 8/10 or if you use Aero under Vista/7 then be sure to check that the "Drag Full Window" option is ON in the General config dialog otherwise it will be very laggy because newer windows have buggy GDI drawing. (I was not careful about the content of the ini file and it was setup for my old WinXP.) |
present in release |
@MarqueIV @kdougan @DrBones @pixelbase
Here is a version of AltDrag with an additional
KeyCombo option in the [Input] section of AltDrag.ini:
You can use Alt and Win as hotkey and it will be required to press the combinaison of both keys to enable AltDrag.
This is a way to avoid 99.9% of conflicts with other programs.
Of course you can combine with an other instance of AltDrag in order to have different key combo do different actions with the same click.
An other option added on this build is the Non-click grab feature.
This let you move a window without clicking. set the GrabWithAlt=Move for example.
This makes more sense combined with KeyCombo because otherwise the key is completly reserved to AltDrag.
Again you can combine with an other instance of AltDrag in order to have different key combo do different actions.
AltDrag.zip
The text was updated successfully, but these errors were encountered: