You're using a Sony DSC H-50 camera which has an aperture priority mode. Your shot is at f4; the camera's widest aperture is f2.7
If you set the camera to aperture priority with the aperture wide open, and the lens as close as possible to the glass of your car window, then you would be more likely to get the dirt on the window completely out of focus.