| 1 | #include <AutoItConstants.au3>
|
|---|
| 2 |
|
|---|
| 3 | Global $aStatesVal[] = [$WIN_STATE_EXISTS, $WIN_STATE_VISIBLE, $WIN_STATE_ENABLED, $WIN_STATE_ACTIVE, $WIN_STATE_MINIMIZED, $WIN_STATE_MAXIMIZED]
|
|---|
| 4 | Global $aStatesString[] = ["$WIN_STATE_EXISTS", "$WIN_STATE_VISIBLE", "$WIN_STATE_ENABLED", "$WIN_STATE_ACTIVE", "$WIN_STATE_MINIMIZED", "$WIN_STATE_MAXIMIZED"]
|
|---|
| 5 | Global $hWnd = WinGetHandle("[Active]")
|
|---|
| 6 | Global $sTitle = WinGetTitle($hWnd)
|
|---|
| 7 |
|
|---|
| 8 | For $i = 0 to UBound($aStatesVal) -1
|
|---|
| 9 | ConsoleWrite("Dialog " & $sTitle & " " & (BitAND(WinGetState("[Active]"), $aStatesVal[$i]) ? "has" : "does not have") & " the state " & $aStatesString[$i] & @CRLF)
|
|---|
| 10 | Next
|
|---|