Color Picker Macro

I have this macro put together with codes from other forums and it didn't work as expected

It should show the picker as shown below

Am I missing something?, please help

Thanks

SolidworksApi macros