Hi Jackie and list again Can you help me how to verify that I have a highlighted focus. Let me give a short describe: In audacity or any audio editor programs, when you select a part of sound, this part will be highlighted. In some cases, we can verify by getting its backround and text color I thought, but I don't know it right or wrong. In some other cases, focus still highlight but its color doesn't change, and I don't know how to work with it. If you know, please help me. Many thanks ----- Original Message ----- From: Jackie McBride To: jawsscripts@xxxxxxxxxxxxx Sent: Sunday, July 15, 2012 1:08 AM Subject: [jawsscripts] Re: Script for audacity Dang, that is precisely the point. If there's no file, the name is audacity, & if there is a file, then the name will be the name of the file. I'm not sure precisely what you're trying to do, but if the name of the real window is Audacity, there's no file, if it's something else, then there is 1. If what you're trying to do is to get the script to return the filename, then u test to see if the window name Audacity, & if it does, u return false or "no file"--else, u return the file name or true or whatever it is you're returning. On 7/14/12, Dang Manh Cuong <dangmanhcuong@xxxxxxxxx> wrote: > Hi Jackie > I know your method, but it didn't work in audacity. > In this program, if I name testFile for my project, the window name is > TestFile. If no project, it named Audacity. I'm not a good script writer, so > this is a hard cituation. hihi. > Anyway, thanks for your reply. > ----- Original Message ----- > From: Jackie McBride > To: jawsscripts@xxxxxxxxxxxxx > Sent: Saturday, July 14, 2012 11:28 PM > Subject: [jawsscripts] Re: Script for audacity > > Hi, Dang: > > My suggestion is that u look to the real window, because the file name > is contained there--otherwise, it contains only Audacity. So, if > GetWindowName(GetRealWindow(GetFocus())) is Audacity & > stringSegmentCount == 1, there's no file. > > On 7/14/12, Dang Manh Cuong <dangmanhcuong@xxxxxxxxx> wrote: > > Hi Stefan > > I tried your suggestion of using winDig. However, I don't know why I > can't > > write it. > > In audacity, if user don't open their own project, it will create a > project > > automatically, like untitle in notepad, so I have some difficulty with > it. > > Anyway,, thanks for your suggestion alot. Will try some other methoth > to > > make this scriptp work well. > > Best regard > > ----- Original Message ----- > > From: Stefan Moisei > > To: jawsscripts@xxxxxxxxxxxxx > > Sent: Saturday, July 14, 2012 3:24 PM > > Subject: [jawsscripts] Re: Script for audacity > > > > Hi,` > > I'm a total beginner in this, but since no one has answered... > > Do you mean that you want to write a function that would check if a > file > > is > > opened? > > I don't use audacity, You have to find out what differences occur in > the > > audacity window when you open a file. The first thing which comes to > my > > mind > > is the title of the window. Or it could be that another subwindow is > > created > > in the main audacity window. Use the home row utility or some other > object > > > > exploring program to find out. When there are too many objects and > > navigating with the home row utility is harder, I use windig which > writes > > > > all the objecgts with all their properties in a text file. > > ----- Original Message ----- > > From: "Dang Manh Cuong" <dangmanhcuong@xxxxxxxxx> > > To: <jawsscripts@xxxxxxxxxxxxx> > > Sent: Friday, July 13, 2012 11:33 AM > > Subject: [jawsscripts] Script for audacity > > > > > > > Hi listers > > > I'm currently modify the audacity's script to work better. I want > some > > > script to return when there aren't any file open. I did it before > by > > > getting windows class and control ID. However, the class and Control > ID > > in > > > Audacity are same, although any file open or not. So are their an > other > > > > > methoth for it? > > > Many thanks for your help. > > > Cuong > > > ________________ > > > Dang Manh Cuong > > > HCMC University of Pedagogy: > > > The Psychology and education > > > Mobile: +84 902-572-300 > > > E-mail: dangmanhcuong@xxxxxxxxx > > > Yahoo! ID: manhcuong0312 > > > Skype name: dangmanhcuong > > > facebook: http://facebook.com/dangmanhcuong > > > Blog: http://vi.netlog.com/Cuong_littlecat > > > Website: http://ngoisaodanduong.com > > > http://www.saomaicenter.org > > > Projec-Website: http://dangmanhcuong.googlecode.com > > > __________� > > > > > > View the list's information and change your settings at > > > //www.freelists.org/list/jawsscripts > > > > > > > __________� > > > > View the list's information and change your settings at > > //www.freelists.org/list/jawsscripts > > > > > > ________________ > > Dang Manh Cuong > > HCMC University of Pedagogy: > > The Psychology and education > > Mobile: +84 902-572-300 > > E-mail: dangmanhcuong@xxxxxxxxx > > Yahoo! ID: manhcuong0312 > > Skype name: dangmanhcuong > > facebook: http://facebook.com/dangmanhcuong > > Blog: http://vi.netlog.com/Cuong_littlecat > > Website: http://ngoisaodanduong.com > > http://www.saomaicenter.org > > Projec-Website: http://dangmanhcuong.googlecode.com > > __________� > > > > View the list's information and change your settings at > > //www.freelists.org/list/jawsscripts > > > > > > > -- > Blame the computer--why not? It can't defend itself & occasionally > might even be the culprit > Jackie McBride > Ask Me Computer Questions at: www.pcinquirer.com > Jaws Scripting training materials: www.screenreaderscripting.com > homePage: www.abletec.serverheaven.net > __________� > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > ________________ > Dang Manh Cuong > HCMC University of Pedagogy: > The Psychology and education > Mobile: +84 902-572-300 > E-mail: dangmanhcuong@xxxxxxxxx > Yahoo! ID: manhcuong0312 > Skype name: dangmanhcuong > facebook: http://facebook.com/dangmanhcuong > Blog: http://vi.netlog.com/Cuong_littlecat > Website: http://ngoisaodanduong.com > http://www.saomaicenter.org > Projec-Website: http://dangmanhcuong.googlecode.com > __________� > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > -- Blame the computer--why not? It can't defend itself & occasionally might even be the culprit Jackie McBride Ask Me Computer Questions at: www.pcinquirer.com Jaws Scripting training materials: www.screenreaderscripting.com homePage: www.abletec.serverheaven.net __________� View the list's information and change your settings at //www.freelists.org/list/jawsscripts ________________ Dang Manh Cuong HCMC University of Pedagogy: The Psychology and education Mobile: +84 902-572-300 E-mail: dangmanhcuong@xxxxxxxxx Yahoo! ID: manhcuong0312 Skype name: dangmanhcuong facebook: http://facebook.com/dangmanhcuong Blog: http://vi.netlog.com/Cuong_littlecat Website: http://ngoisaodanduong.com http://www.saomaicenter.org Projec-Website: http://dangmanhcuong.googlecode.com __________� View the list's information and change your settings at //www.freelists.org/list/jawsscripts