Don. as you are no doubt painfully aware right now, I'm sure no I T/scripting Diva myself, but it occurs to me that maybe if you were to put some of your present code before the list again, and painstakingly remind us of exactly what it is your trying to achieve, how your current code is faling to do that, maybe yu might recieve more joy as to solutions? For although of course your living and breathing the tiny ins and outs of all your experiencing and trying to do, and so you are of course painfully all too familiar with it, I can of course only speak for myself when I posit, that because many of us are facing similar battles of our own, it's easy to forget the ongoing nuances of other's issues. So, putting them all in the one post that your seeking further assistance on resolving, just means that if anyone feels they might have something to throw at it, they don't have to go trapsing through previous emails looking for the plot all over again? ... Just my two bobs worth, as they used to say in australia in the olden days. but don't any more. <grin.> Geoff. From: "Donald Marang" <donald.marang@xxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Wednesday, December 03, 2008 3:03 PM Subject: [jawsscripts] Re: Changing and Saving / Restoring Cursors > Thanks, this seemed to help some. It has not fixed all my problems, vut it > is vetter. I will save this for future reference as well. It is a little > hard to debug with so many events.Today I tried to remove the need for > frames and switch scripts that get called from my own WindowActivatedEvent > function. If I get this working properly, I want to put part of this script > in a similar function in the default script file, so I will get notified by > itscustom "HelpBaloon". > > Right now, I have to press the KeyPad + to force the PCCursor back on after > each time I use the down arrow in a custom list view I am trying to tame. > If I don't, it seems to have the JAWSCursor active, and does not get events > from ActiveItemChangedEvent. There must be something funky I am doing > within my ActiveItemChanggedEvent. I had no idea that my application > woulduse MSAA at all, buut I followed a previous suggestion on this list and > it worked! I have not investigated how to use MSAA any further at this > point. > > Bless the list for its help. > > Don Marang > > > ----- Original Message ----- > From: "James Panes" <jimpanes@xxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Tuesday, December 02, 2008 5:59 PM > Subject: [jawsscripts] Re: Changing and Saving / Restoring Cursors > > > > Yes, the cursors do save on a stack. Another very important thing to > > remember is that JAWS does not save the position of the PC Cursor when it > > is > > saved. There are valid scripting reasons why this is the case. > > > > To save and restore the PC cursor, I do the following: > > InvisibleCursor () > > SaveCursor () ; This saves the original position of the invisible > > cursor > > Move InvisibleToPC () > > SaveCursor () ; This uses the invisible cursor to save the position of > > the PC cursor. > > > > Code that changes positions here > > > > RestoreCursor () ; This moves the invisible cursor to the original > > position of the PC Cursor. > > RoutePCToInvisible () ; Places PC cursor back at its original position. > > RestoreCursor () ; Places Invisible cursor back to its original > > position. > > PCCursor () ; Activates PC cursor. > > > > This places the PC cursor and the invisible cursor back to where they were > > and activates the PC cursor. The other thing is to make sure that the PC > > cursor is active before going to all this trouble. > > > > Some scripters do not bother to save and restore the invisible cursor. > > > > Regards, > > James > > jimpanes@xxxxxxxxx > > jimpanes@xxxxxxxxxxxx > > "Everything is easy when you know how." > > > > ----- Original Message ----- > > From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx> > > To: <jawsscripts@xxxxxxxxxxxxx> > > Sent: Tuesday, December 02, 2008 4:39 PM > > Subject: [jawsscripts] Re: Changing and Saving / Restoring Cursors > > > > > > My standard idiom is saveCursor() invisibleCursor() saveCursor(): The > > first saveCursor keeps track of which cursor was active to begin with, > > and the second saves the position of the invisible cursor before I > > move it. > > > > On Tue, Dec 02, 2008 at 04:32:27PM -0500, Donald Marang wrote: > > In the examples I have seen for using the SaveCursor and RestoreCursor > > functions, they use the following order: > > InvisibleCursor () > > SaveCursor () > > perform statements that move the focus... > > RestoreCursor () > > > > If the save and restore functions work like a stack, wouldn't the > > SaveCursor > > function need to be called first, and then change cursors? I am a little > > confused here. I am finding my application being continually with the > > InvisibleCursor active, and I am not sure why! > > > > Don Marang > > > > > > __________? > > 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 > > > > -- > > Doug Lee, Senior Accessibility Programmer > > SSB BART Group - Accessibility-on-Demand > > mailto:doug.lee@xxxxxxxxxxxxxxxx http://www.ssbbartgroup.com > > "While they were saying among themselves it cannot be done, > > it was done." --Helen Keller > > __________ > > 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 > > > > __________ > 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