Hi Rick, I think I didn't make my point well. Check out the keyboard object's registerCursorKey method; it's just like registering a hotkey, except the application program gets to see the keystroke as well as your app (which is what you want in this case). Chip
_____ From: RicksPlace [mailto:[email protected]] Sent: Saturday, May 26, 2012 9:05 PM To: [email protected] Subject: Re: KeyProcessedUp and KeyProcessedDown Events Hi Chip: I used the KeyProcessed Event Handlers. I picked up the Key Object from the Keyboard Object instead of from a CursorKey object which I think is the same Key object but defined in diferent places. That said I see where a CursorKey itself might offer the execution of the first and second event without impacting the Target Application since it is a WE operation. Perhaps it's Key Object is somehow diferent than the Keyboard Object's Key Object. I am thinking of defining a CursorKey in the We Dialog with undefined actions and then accessing it in my script where I can tweak the scope and action properties which are likely irrelevant to this requirement but may be somehow helpful. Then I can pull the Key Property from the CursorKey object. What about the actions? I have never worked with Actions but an action might not require an event handler. Otherwise can you or Steve give me an idea of how best to define a CursorKey to work with from within an external script? I should think the Key object is going to have the same problematic event handlers in the KeyProcessed Events but I will try out your suggestions if I can define a CursorKey to use. Any suggestions on adding one to the WE Dialog and using the Keys Object to then pkull it into my script? Rick USA. from ----- Original Message ----- From: Chip <mailto:[email protected]> Orange To: [email protected] Sent: Saturday, May 26, 2012 12:13 PM Subject: RE: KeyProcessedUp and KeyProcessedDown Events Rick, Steve and I have both suggested you use a cursor key for this (it prevents any possibility of effecting the underlying program); Bruce suggeested the same idea with the onKeyProcessed event. I don't see why you would pass these over. Chip _____ From: RicksPlace [mailto:[email protected]] Sent: Saturday, May 26, 2012 9:18 AM To: [email protected] Subject: Re: KeyProcessedUp and KeyProcessedDown Events Hi Bruce: I ran some more tests and found that when I closed all windows I could still tab around to the buttons for hidden items of varying sorts. Also, Automation Focus tracked the Tab item being found. It appears that what is shown depends on the Selected Item in the Tab Group rather than what has focus. So I will be trying to figure out how to work with the Selection Pattern or the SelectionItem patterns to see if there is anything there. What a friggen pain in the colon! Rick USA
