Jump to content

BitAND Function


Guest jeremyts
 Share

Recommended Posts

Guest jeremyts

Hi,

Does the BitAND function exist in the AutoITX library? The Help file sort of refers to it in the WinGetState Function, but I can't seem to use it as per the following example.

; Check if a new notepad window is minimized

$state = WinGetState("Untitled", "")

; Is the "minimized" value set?

If BitAnd($state, 16) Then

MsgBox(0, "Example", "Window is minimized")

EndIf

Cheers,

Jeremy.

Link to comment
Share on other sites

Guest jeremyts

And of course a follow up question is, how does one use the WinGetState function without the ability to extact the part I am interested in.

Cheers,

Jeremy.

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...