Hi David, Is the text visible on the machine that isn't working? That'd be my first guess that the text you're searching for isn't actually on the screen, possibly the window is to small, screen is not maximized, the resolution is different so the text doesn?t show up, etc. I prefer to not count on text being visible when possible, though this is not always possible. For example, I am not quite sure what GetListOfObjects() is returning but if it contains the info you're seeking I'd parse it from that instead of doing a text search. -----Original Message----- From: jawsscripts-bounce@xxxxxxxxxxxxx [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of David Newman Sent: Sunday, June 24, 2012 9:16 AM To: jawsscripts@xxxxxxxxxxxxx Subject: [jawsscripts] Re: Word 2010 script Martin, Thanks for the quick reply. However, GetFocus makes no difference. It would be strange if that were *always* correct on one and *never* correct on the other. In particular, after A+R, A+W the cursor and mouse pointer are on the close button in the wordcount window. Also, the GetListOfObjects call shows we always in the right place. Tx David On 24/06/2012 14:14, Martin Slack wrote: > Hi David, > > The function GetCurrentWindow returns the handle of the window > containing the mouse pointer, so you are giving a hostage to fortune > when you hope that the operator doesn't inadvertently move the pointer. > > If you are looking to search the window which has the focus, then > GetFocus may be a more useful function than GetCurrentWindow. > > If not, then more thought will be required. > __________� 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