Sign in to follow this  
Followers 0
PoisonXrX

is there a way to detect if minimized

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0