Jump to content
Sign in to follow this  
Guest jeremyts

BitAND Function

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.

Share this post


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

Share this post


Link to post
Share on other sites
SlimShady

In what language do you use it?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.