Jump to content

is there a way to detect if minimized


Recommended Posts

is there a way to detect if minimized like if a window gets minimized by mistake because autoit clicked off of it is there a way to check if minimized without useing

If WinActive("Prog") = 0 Then

or i dunno.

Edited by PoisonXrX
Link to comment
Share on other sites

You can check with WinGetPos()

$size = WinGetPos("windowname")
MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3])

if minimized, this will return

-32000, -32000, 160, 24

One way to check. I would do an if winexists() first, or you may cause a array variable problem if no window exists.

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...