The only way for this to be accomplished is to disrupt the Habsburg claim to the Hungarian throne. Possibly having them die out of losing Bohemia, but losing the Imperial Election is also important. They need to be neutered so that the Ottomans may establish their presence in the region for a sense of permanence. It is also ethnically divided and if the Ottomans do to the local nobility what they did in the Balkans, you can see a muslim Hungarian elite forming over time. However, come the rise of nationalism, Hungary will go the way of Greece, Serbia, Romania, and the like.