Sign in to follow this  
Followers 0
Guest jeremyts

BitAND Function

4 posts in this topic

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



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

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  
Followers 0