Hey all.
The current way to do what I wish, is to select the window you want to move,
click alt+space -->m-->arrow key
I'd like to create a shortkey that does all that using ctrl+m.
Would be incredible on my ultrawide screen
shortkey to quickly moving windows
- divanebaba
- Posts: 809
- Joined: 20 Dec 2016, 03:53
- Location: Diaspora
Re: shortkey to quickly moving windows
Hi.
My english is not the best, because getting education in Germany for foreigners is like getting american visa for muslims.
But this will not stop solving your problem.
Try this:
Modifiying another position is easy, after understanding the parameters of WinMove command.
My english is not the best, because getting education in Germany for foreigners is like getting american visa for muslims.
But this will not stop solving your problem.
Try this:
Code: Select all
^m::
WinGetActiveStats, Title, W, H, X, Y
WinGetPos, X_Gui, Y_Gui, W_Gui, H_Gui, %Title%
WinGet MX, MinMax, A
IfEqual, Title, Progman, Return
WinMove, A,, 1280, 0, % MonitorRight/2, % MonitorBottom /2
return
Einfach nur ein toller Typ.
Re: shortkey to quickly moving windows
Haha. Thank you for responding divanebaba!
I got your English just fine.
Your script takes the active window to a specific location on the screen. It's quite useful on its own right, but what I was looking for was a little different, and I actually ended up finding it for myself:
I got your English just fine.
Your script takes the active window to a specific location on the screen. It's quite useful on its own right, but what I was looking for was a little different, and I actually ended up finding it for myself:
Code: Select all
^!SPACE:: send !{space}m{Right}
Re: shortkey to quickly moving windows
This will do the same thing as your existing script, but it also allows you to safely hold down the hotkey (without triggering something else by accident):
As with your script, you would need to press Enter to confirm the location, or Esc to cancel. Possibly some other keys would also work.
Using info from:
How to open the context menu of the window's title bar - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 70#p165570
==================================================
Here is a slightly different script, that may also give you quite good results:
Code: Select all
^!Space::
PostMessage, 0x112, 0xF010,,, A ;WM_SYSCOMMAND := 0x112 ;SC_MOVE := 0xF010
Send, {Right}
return
Using info from:
How to open the context menu of the window's title bar - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 70#p165570
==================================================
Here is a slightly different script, that may also give you quite good results:
Code: Select all
q:: ;move window right
WinGetPos, vWinX,,,, A
vWD := A_WinDelay
SetWinDelay, -1
WinMove, A,, % vWinX+17
SetWinDelay, % vWD
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA