Hmm, I may have to play with this, I like the idea.
Here is where I am atm, It seems to be working so far. Simply lets you chose which window you want set as safe, gets the PID and closes the rest.
MsgBox(0, "", "Please click the MyProg Window that you DO NOT want to be closed.", "5")
WinWaitActive("MyProg")
$SafePID = WinGetProcess("[active]")
Msgbox(0, "", "I have recorded " & $SafePID & " as a safe process")
$list = ProcessList("myprog.exe")
for $i = 1 to $list[0][0]
If $list[$i][1] <> $SafePID then
ProcessClose($list[$i][1])
EndIf
next
Anybody see potential problems with this? Better Ideas?