I can see there is a decision that lets me dissolve the HRE as long as I have meet certain conditions which include Ulm and another region not belonging to Austria, it being 1806 and I am at peace with Austria with higher morale.
My question is that currently I have military control of the regions in question but low loyalty (they are still overwhemily loyal to Wuttenburg desite my garrisons and martial law decisions) I am currently marching towards Vienna - when I take Vienna or enough strategic points will a scripted peace event with Autria fire allowing me to meet the conditions (I assume the regions in question will go to Wuttemburg?) or am I going to have to wait until I have enough loyalty in those regions to claim them through a normal peace deal?