How can I get the size of the currently active window.
I can find no "GetWindowSize" command...
Size of active window?
Moderators: JRL, Dorian (MJT support)
Window size
Thanks for your reply, butAnonymous wrote:Hi Willem,
what's the issue you want to resolve ?
Whould this help ?
GetAvtiveWindow> + ResizeWindow>
No, it won't help: I certainly don't want to resize the window, I only need to know the size of the window in order to determine where I can position the mousepointer and be sure that it is inside the active window.
(I am trying to construct a simple tool which feeds random mouseclicks to an application for testing purposes...)
Hi,
I think the previous poster was pointing out that if you first resize the window to a known size you now know the dimensions of the window and can then proceed reliably.
You could instead/also use MouseMoveRel and then you know you will always be inside the window.
I think the previous poster was pointing out that if you first resize the window to a known size you now know the dimensions of the window and can then proceed reliably.
You could instead/also use MouseMoveRel and then you know you will always be inside the window.
MJT Net Support
[email protected]
[email protected]