Alright dang, tell me few things: 1. why do you want to turn speech off? 2. is there any dialog created wwhen the button is clicked and stays while the preview is in progress? because in other apps like goldwave, soundforge, cake walk and among others, I don't see any dialog. but if it is created and stays, then following may be applied: 1. a script to click the preview button, and turn off the speech as well. 2. using jamal's event tracker (script template), digg-out the event in question. Now, check the following: if the window in question is created, or if there is any other way to find-out the progressing preview (by the status of the preview button, or may be the name change). if it is progressing, and speech is off, turn on when completes. there are no codes in the reply, but I hope that it may be of some help. Thank you, Jitendra. ----- Original Message ----- From: "Dang Manh Cuong" <dangmanhcuong@xxxxxxxxx> To: "Jaws Scripts" <jawsscripts@xxxxxxxxxxxxx> Sent: Sunday, June 15, 2014 9:24 AM Subject: [jawsscripts] Ask about Audacity script To all listers I'm about to add a new feature to my Audacity script. That is: turn speech off when user hit the preview button. I try writing a script for doing this job, but I don't know how to turn back speech on when the preview dialog is gone. I think we should modify the focusChaneEvent, or handleCustomWindow function, but don't have a clue, so please help me. Thank you. -------------- Dang Manh Cuong The Assistive technology specialest Sao Mai Vocational and assistive center for the blind 74/17 Bui Quang La, ward 12, Go Vap Dst, HCMC, Vietnam Tel: +84862573309 E-mail: trungtamsaomai2001@xxxxxxxxx Website: http://www.saomaicenter.org http://www.sinhvienkhiemthi.org Mobile: +84 902-572-300 E-mail: dangmanhcuong@xxxxxxxxx Yahoo! ID: manhcuong0312 Skype name: dangmanhcuong facebook: http://facebook.com/dangmanhcuong Twitter: ManhCuongPSY Website: http://ngoisaodanduong.com Projec-Website: http://dangmanhcuong.googlecode.com __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts --- Disclaimer --- The information in this mail is confidential and is intended solely for addressee. Access to this mail by anyone else is unauthorised. Copying or further distribution beyond the original recipient may be unlawful. Any opinion expressed in this mail is that of sender and does not necessarily reflect that of State Bank group. --- __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts