internal recording on mac

I am trying to recorde the audio thats playing internally , for argument sake , if i had a virtual piano open on my desktop and play it audacity does not pick up the sound .how can i fix this , what settings do i need . THnaks

This tutorial might help.
– Bill