Yeah, the loop stops, but you can auto restart the loop when you load profile b. I use to use a loop to switch profiles when a certain windows title was Active, and just auto start the loop again when the new profile loaded. Worked really well, but found a easier way to do the job for my use, so I don't use it anymore.