hm_getwindowarea interactive - This API enables the user to draw a rectangle in the graphics area returning x, y coordinates of top left corner and width and height
These inputs can be used in [hm_windowtofile x y width height image.jpg ] to capture image.
I want to do the same automatically without user intervention.
How can I get these inputs for hm_windowtofile from the comp/assemblies displayed in graphics area