Well, it's a hex value, right? Thus, it's a string. We're only interested in the last hex value, which is either 2 or 3. Thus, it's bit 0 that's changing to represent the QL state.
 Code:
; make the next line O/S independent - use Select or whatever..
; the result for any O/S is in $Taskbar (assumes that the bit is the same - 
; seems to match in Vista, so quite likely)
$TaskBar = ReadValue('HKEY_USERS\... blah.. blah..)

$TBFlag = Val('&' + Right($TaskBar, 1)) & 1
If $TBFlag
 'Enabled!' ?
Else
  'Not Enabled.' ?
EndIf

So - get the value as you do now, then prepend the "&" so Kix knows its a hex value, then take only the last nybble. Convert it to a value and binary AND it with 1. Thus, when it's 3, you'll get 1, and when it's 2, you'll get 0. Simple, eh?

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