David, To extend Jackie's idea, then, using stringContains with "AfxFrameOrView" would probably negate the need for specific class instances. Sean. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of David Mehler Sent: Tuesday, October 13, 2009. 09:56 PM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: testing for multiple window classes Hi, Thanks for your reply. The main window class that i want to figure out screen echo on keeps changing between versions. For example in previous versions, this is only an approximation, the class is AfxFrameOrView42, another is AfxFrameOrView80u, and AfxFrameOrView90u they change depending on the version of the SecureCRT executable installed. The program itself doesn't return a specific version number, or if it does i haven't found it, so i need to test for the classes that i know. I was wanting to put this in to a constant file or if there's a better way. Thanks. Dave. On 10/13/09, Jackie McBride <abletec@xxxxxxxxx> wrote: > U could do that, Dave. I'm not precisely understanding what the > problem is--perhaps if u could give a bit more details... Also, if the > root word of the class is similar, e.g., it all contains the word > "terminal", for example, then u could do an if > StringContains(GetWindowClass(Getfocus()... > > On 10/13/09, David Mehler <dave.mehler@xxxxxxxxx> wrote: >> Hello, >> I'm using jfw10 and am writing scripts for the latest SecureCRT >> terminal emulator software package. I've noticed that they've changed >> window classes, it seems as if each version changes the class. I was >> wondering if there was a way i could test for that? That led me to >> instead of typing out all these class names could i include them in a >> constant file, and load them up that way? >> Thanks. >> Dave. >> __________ >> Visit and contribute to The JAWS Script Repository >> http://jawsscripts.com >> >> View the list's information and change your settings at >> //www.freelists.org/list/jawsscripts >> >> > > > -- > Change the world--1 deed at a time > Jackie McBride > Check out my homepage at: > www.abletec.serverheaven.net > & please join my fight against breast cancer > <http://teamacs.acsevents.org/site/TR?px=1790196&pg=personal&fr_id=348 > 9> > __________ > Visit and contribute to The JAWS Script Repository > http://jawsscripts.com > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts