02-19-2007, 10:04 PM
again ty for your response.I have no problem stopping the function with the code i used.I have also tried your way also both work.But the problem is if i have a wait command of any type mainly using 0 WV command the function won't stop until the the window it is waiting 4 appears.So i was trying 2 figure out a way to stop it as soon as i click the x on the toolbar no matter what using get prop and set prop