 When Charles Poletti succeeded to the governor's office upon Herbert H. Lehman's resignation in December 1942, Hanley became acting lieutenant governor of New York for four weeks.When Lieutenant Governor Thomas W. Wallace died on July 17, 1943, Hanley again became acting lieutenant governor.In the 1943 New York state election, he defeated Democrat William N. Haskell in a special election for lieutenant governor.