Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Check if maximized?


  • Please log in to reply
2 replies to this topic
dijiyd
  • Members
  • 87 posts
  • Last active: Oct 22 2005 01:29 PM
  • Joined: 31 Mar 2004
I was wondering if there was a function to check if a window is maximized. I tried looking for it in the helpfile, but I don't know if I just couldn't find it.

Anyway, I was trying to set a same key for my maximize and restore, so I want to check if a window is maximized, then I will restore and vice versa. Thanks.

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
There isn't one currently, but it's a good idea for a feature. Since this is an easy item, I'll put it high on the list.

In the meantime, you might be able to use WinGetPos to determine the width and height of the window as in these examples:

WinGetPos, , , w, h, Untitled - Notepad ; Get the width & height.
WinGetPos, , , w, h, Program Manager ; Get the size of the desktop.

  • Guests
  • Last active:
  • Joined: --
Thanks, it's fine now.