The funny, if somewhat rude, production of a selected card from the trousers fly, rather than from the pocket, was established in print by Sid Fleischman in Genii, Vol. 5 No. 4, Dec. 1940, p. 107; see “Make No Mistake”.
John Thompson reports that London's Bobby Bernard was performing the effect some years before this, in the 1930s.