algiuxas Posted September 16, 2015 Share Posted September 16, 2015 Hello,I forgot one function, can somebody remind me it?It works like this:If ???($number,$searchfornumber) = True then ...$number is for example:416 (256+128+32)$searchfornumber is for example 128 and it should return 1, others, like 16 should return 0.What function it is? I totaly forgot it... :/Thanks After switching years ago to Linux, sadly I don't use AutoIt anymore. Link to comment Share on other sites More sharing options...
jguinch Posted September 16, 2015 Share Posted September 16, 2015 BitAnd ? algiuxas 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
mikell Posted September 16, 2015 Share Posted September 16, 2015 HaveAnEfficientLookInTheHelpFile() ? benched42 1 Link to comment Share on other sites More sharing options...
algiuxas Posted September 17, 2015 Author Share Posted September 17, 2015 BitAnd ?Thanks, I was looking for this function! After switching years ago to Linux, sadly I don't use AutoIt anymore. Link to comment Share on other sites More sharing options...
AZJIO Posted September 17, 2015 Share Posted September 17, 2015 Func _ArrGetVal($Value) If $Value = 0 Then Return Local $sOut, $n = 0.5 For $i = 0 To Int(Log($Value) / Log(2)) $n *= 2 If BitAND($Value, $n) Then $sOut &= '0x' & Hex(Int($n), 8) & @LF ; If BitAnd($Value, $n) Then $sOut&='0x'&StringFormat("%08x", $n) &@LF ; If BitAnd($Value, $n) Then $sOut&=StringFormat("%#x", $n) &@LF Next Return StringTrimRight($sOut, 1) EndFunc ;==>_ArrGetValI used in the program "CaptureText" My other projects or all Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now