I finally got it working. I don't know what was happening before but today for some reason it worked. To address the problem that it doesn't retain its settings after its shutdown, I think you should probably have it create an external text file where it stores all of the settings everytime they are changed (i.e.- x,y position on the screen, width and height, and transparency.