I understand completely - did you look at my example?
 Code:
$TaskBar = ReadValue('HKEY_USERS\'+@SID+'\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop','TaskbarWinXP')

; look only at bit 0
$TBFlag = Val('&' + Right($TaskBar, 1)) & 1
; determine if it is on or off
If $TBFlag
 'Enabled!' ?
Else
  'Not Enabled.' ?
EndIf

What I'm saying is that you can't assume a setting of 2/3, because bitwise, only bit 0 is changing. If whatever controls bit 1 is turned off, the values will become 0/1, not 2/3. By ANDing, you look only at the appropriate BIT.

My Second message was presented just to review some common bitwise operations, since they aren't commonly seen here - they have nothing to do with your specific need (which was addressed first). Sorry for the confusion.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D