algiuxas Posted September 16, 2015 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.
jguinch Posted September 16, 2015 Posted September 16, 2015 BitAnd ? algiuxas 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
mikell Posted September 16, 2015 Posted September 16, 2015 HaveAnEfficientLookInTheHelpFile() ? benched42 1
algiuxas Posted September 17, 2015 Author 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.
AZJIO Posted September 17, 2015 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
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