Size of active window?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
willem boers

Size of active window?

Post by willem boers » Wed Jan 22, 2003 9:54 am

How can I get the size of the currently active window.
I can find no "GetWindowSize" command...

Guest

Post by Guest » Wed Jan 22, 2003 10:26 am

Hi Willem,
what's the issue you want to resolve ?

Would this help you.
GetAvtiveWindow> + ResizeWindow>

Guest

Post by Guest » Wed Jan 22, 2003 10:27 am

Hi Willem,
what's the issue you want to resolve ?

Whould this help ?
GetAvtiveWindow> + ResizeWindow>

willem boers

Window size

Post by willem boers » Wed Jan 22, 2003 2:09 pm

Anonymous wrote:Hi Willem,
what's the issue you want to resolve ?

Whould this help ?
GetAvtiveWindow> + ResizeWindow>
Thanks for your reply, but
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...)

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Wed Jan 22, 2003 3:08 pm

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.
MJT Net Support
[email protected]

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts