What I was trying to ask last week was, if you could use FindGraphic or FindString just to search with in one line instead of the whole app or window. For example, I would move the jaws cursor to the beginning of a particular line, and then I would want to search for a graphic only on that line. Is this possible? Thanks! ----- Original Message ----- From: "David Farough" <David.Farough@xxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Tuesday, December 02, 2008 11:15 AM Subject: [jawsscripts] Re: Find Graphic Question > Hi Mark: > usually, when you are using the FindGraphic function, the graphic that > you are looking for is not located within the window that has the focus. > What you usually do is to get the handle for the main window of the > application, or the handle for the dialogue that you are in. > > Here is one example that might work for you. > GetRealWindow (GetFocus ()) > > This is called a nested function call. What you are doing hear is > calling the GetRealWindow function and supplying the handle of the > window which currently has the focus as the parameter for this function > call. The GetRealWindow function Returns the handle of the RealWindow > Or The window which has a title. > > Now to combine this idea with your FindGraphic situation you might have > a function call that looks like this. > FindGraphic (GetRealWindow (GetFocus ()), "Graphic label to find", > S_top, S_UNRESTRICTED) > > The success of whatever approach you take will depend on how your > application is designed. You may have to experiment with different > approaches until you find one which is reliable. > > Some other similar functions which could provide a good starting handle > for the FindGraphic function include: > GetAppMainWindow > GetForegroundWindow > GetParent > GetTopLevelWindow > > HTH > > > > > > David Farough > Application Accessibility Coordinator/coordonateur de l'accessibilité > Information Technology Services Directorate / > Direction des services d'information technologiques > Public Service Commission / Commission de la fonction publique > Email / Courriel: David.Farough@xxxxxxxxxxxxx > Tel. / Tél: (613) 992-2779 > >>>> "Mark" <torgersonenator@xxxxxxxxx> 02:17 pm Monday, December 01, > 2008 >>> > Hi David, > Thank you for your help. This makes much more sense. > Can I ask something else that confounds me? How does one get the > handle > for the handle parameter? In the getGraphic command. > Thank you. > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > http://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 http://www.freelists.org/list/jawsscripts