I reported in 2015 a practice of using two or three different codes in a single despatch in French diplomatic correspondence during the American Revolutionary War (see another article). As early as a century earlier, during the reign of Louis XIV, such code switching had been prescribed for French plenipotentiaries for the peace negotiation at Rijswijk, as noted in Jörg Ulbert, "Zur Verschlüsselung französischer Ministerialkorrespondenzen" in Geheime Post (2015) (n.21).
The Treaty of Rijswijk (Ryswick) signed in 1697 ended the War of the Grand Alliance (a.k.a. the Nine Years War) in which the aggression of Louis XIV was held back by the allied forces of England, the Emperor, the Dutch, Spain, etc. The peace, however, left unsolved the issue of the Spanish crown after the expected death of Charles II of Spain and, a few years later, France would fight against another Grand Alliance in the War of Spanish Succession.
As with other French codes at the time (see another article), the codes employed figures to represent single letters, syllables, and words. One had entries 1-500 and the other had entries 1-378. These two codes were intended to be used alternatively in the same message. They are given identifying numbers "379" and "720", which can be used to indicate to the recipient which code is used first.
The Memorandum for the French Plenipotentiaries at the Peace Congress of Rijswijk (1696) is worth quoting in English translation.
The prescribed switching is different from the indicator system at the time of the American Revolutionary War. Still, the evidence for the two periods suggests that code switching may have been a practice during the last century of the ancien regime.