This may sound simpe but I don't know the command or if there is one. I want to know if a child window is maximized. I am trying to capture the location on a child window regardless of where it is and I can without issues provided that it is not maximized.
What happens is when it is maximized the Title Bar Disapears and the positon of the data changes. I could handle this if I knew if it was maximized.
I realize the perfered method is to just maximize the Window so it would be constant, howver three people last week complained about maximizing the windows to capture data.
Any ideas?
Determine if child window is maximized
Moderators: JRL, Dorian (MJT support)
Have you tried using GetActiveWindow>. In my experience a maximized window will reside at x=-4, y=-4. Therefore:
Not to say a normal window couldn't be placed at the -4,-4 location. In that case use the optional width and height values for GetActiveWindow> and compare to the values of your window when it is maximized.SetFocus>YourWindow
GetActiveWindow>Title,X,Y
If>{(%X%=-4)and(%Y%=-4)},Maximised,NotMaximised
Label>Maximised
MDL>Window is Maximised
Label>NotMaximised
MDL>Window is Not Maximised
Telling if Window is maximized
That works on everything I tried and to tell if a Child Window is maximized I just get the positon of the child window and it if match the parent window it is maximized. Perfect