Once you are sure the Options dialogs are working ok, you might (or
) want to consider putting in an option labeled "Move any
window under this height, unless it's specifically listed as a window
to not move".
In my case I would select this option and put 140 in the option box.
I've been adding the code below to the .ahk script.
I started doing this because I had two dialog boxes with the same
window name and class, one big and the other wide but not tall. I
didn't want to move the first and always wanted to move the second.
This option not only worked for this scenario, but it takes care of
those pesky wide (wider than %PredefWinWidth%) but short in height
windows. When I click a red x, even the wide "are you sure you want
to exit without saving?" boxes jump right to my cursor.
If you think this option would be too confusing, no problemo. It's a
matter of seconds for me to paste these two lines into the code.
WinGetPos,WinX,WinY, WinWidth, WinHeight,ahk_id %ActiveWindow%
if WinWidth =
If WinHeight < 140 ;I added
gosub movewindow ;I added
If WinHeight > %PredefWinHeight%
If WinWidth > %PredefWinWidth%