Assalamulaiaum...
Hopping for your good health and safety....
I use a AHKv2 script, on windows 11, for setting up and arranging windows on my desktop screen(one monitor only). The script is stated at the end of the thread for your reference.
Please note the following snapshot with issues.
To explain the issue, as you can see, there are gaps among the windows.
I would request anyone to kindly point out the issues, and guide me about the script, so that these gaps among the windows can removed.
A solution script would be a great help in this regard.
Just a History for reference. Using the same script with AHKv1(with minor modifications) in windows 7, there was no problem. As per my understanding, this is due to the borders of windows, which get modified during win7 to win11 transition.
Code: Select all
<^<!Numpad5:: ;first select window then press LCtrl+LAlt+5 to move active window to centre
{
WinMove (A_ScreenWidth/6), (A_ScreenHeight/6), (A_ScreenWidth*2/3), (A_ScreenHeight*2/3), "A"
return
}
<^<!Numpad4:: ;first select window then press LCtrl+LAlt+4 to move active window to left
{
WinMove 0, 0, (A_ScreenWidth*0.500), (A_ScreenHeight*1.00), "A"
return
}
<^<!Numpad6:: ;first select window then press LCtrl+LAlt+6 to move active window to right
{
WinMove (A_ScreenWidth*0.500), 0, (A_ScreenWidth*0.500), (A_ScreenHeight*1.00), "A"
return
}
<^<!Numpad8:: ;first select window then press LCtrl+LAlt+8 to move active window to top
{
WinMove 0, 0, (A_ScreenWidth), (A_ScreenHeight/2), "A"
return
}
<^<!Numpad2:: ;first select window then press LCtrl+LAlt+2 to move active window to bottom
{
WinMove 0, (A_ScreenHeight/2), (A_ScreenWidth), (A_ScreenHeight/2), "A"
return
}
<^<!Numpad7:: ;first select window then press LCtrl+LAlt+7 to move active window to left top
{
WinMove 0, 0, (A_ScreenWidth/2), (A_ScreenHeight/2), "A"
return
}
<^<!Numpad1:: ;first select window then press LCtrl+LAlt+1 to move active window to left bottom
{
WinMove 0, (A_ScreenHeight/2), (A_ScreenWidth/2), (A_ScreenHeight/2), "A"
return
}
<^<!Numpad9:: ;first select window then press LCtrl+LAlt+9 to move active window to right top
{
WinMove (A_ScreenWidth/2), 0, (A_ScreenWidth/2), (A_ScreenHeight/2), "A"
return
}
<^<!Numpad3:: ;first select window then press LCtrl+LAlt+3 to move active window to right top
{
WinMove (A_ScreenWidth/2), (A_ScreenHeight/2), (A_ScreenWidth/2), (A_ScreenHeight/2), "A"
return
}