I have read where ships would use the big guns to create a plume of water in hopes of attacking planes would hit it.
I shot down a Spitfire Mk XVI that way in a B-25H. He overshot me on the deck and as he flew past, I fired my 75mm at him. It went low, passing below the Spitfire, exploding right in front of it. Since we were both on the deck, probably no higher than 50ft, the Spitfire got caught in the splash damage and blew up.
There is also a well known story of a P-38 during World War II that dropped a bomb in the water in front of a Zero that was just finishing taking off, killing it.
As for the ship thing, I believe the Bismark was trying that against the attack Swordfish planes but didn't get any kills.
ack-ack