Once fighting between Austrians and Hungarians really gets going and everyone else is busy with revolutions, the Tsar decides that now is the time to occupy Galicia, and maybe also (bits of) Slovakia.
Afterwards, he throws his support behind whichever power looks like losing (in this case, the Hungarians), so as to keep his enemies divided and keep his gains.