jgpaiva,
Once you are sure the Options dialogs are working ok, you might (or
might not
) 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.
Andy
WinGetPos,WinX,WinY, WinWidth, WinHeight,ahk_id %ActiveWindow%
if WinWidth =
return
WinGetClass,WinClass
WinGetTitle,WinTitle,ahk_id %ActiveWindow%
WinClass=ahk_class%A_space%%Winclass%
If NotDetectableWindow(WinTitle,WinClass)
return
If DetectableWindow(WinTitle,WinClass)
gosub movewindow
If WinHeight < 140 ;I added
gosub movewindow ;I added
If WinHeight > %PredefWinHeight%
return
If WinWidth > %PredefWinWidth%
return