Don't think it's this, since it sounds more like a tapping than a scratching, but might help. I had woodpeckers come and do damage to the house. Put up all the things to scare them away (ballons that look like owl eyes, shiny tape, shiny windcatchers, etc) and they'd work for about a week then...