Hi Rick,

    I sent you a bare bones program you can modify to see if you can get 
something going.

    I am wondering if you turned on all events inside the WE Event so all items 
get looked at. That is one tricky thing you have to do before letting it run. 
    Also make sure that the WE Event is turned on inside the window you are 
monitoring, another tricky thing that is easily over-looked.

        Bruce

  Sent: Monday, June 18, 2012 8:11 AM
  Subject: Re: kdPass And kdProcess


  OK Guys: I ran a test for OnKeyDown and OnKeyUp using kdProcess from my 
external, managed code script.
  The OnKeyDown and OnKeyUp events seem logged in WEEvent properly but...
  No MSAA Events are being executed, or at least logged, and no speech is being 
logged or executed from WEEvent upon hitting keys.
  This tells me that the Keystroke is likely being trapped in my script but 
that  the information about the key is likely not leaving my script or not 
being passed out of the Managed Code environment back to WindowEyes or the 
Underlying Target program.
  It might also indicate that WindowEyes is not getting a valid return code and 
thus doesnt know what to do with the message so does nothing.
  To Ensure my script's Event Handlers are firing I will write a line to a text 
file or load an array to print on shutdown if that is even executed when I hit 
the computer hard shutdown button.
  At least that might tell me that when I hit a key WindowEyes originally 
recognizes it and sends my script a message to fire the appropriate handler sub.
  I will also use WEEvent to match the results with this last test.
  Rick USA

Reply via email to