Hi Rick,

    I think you will find that the data is not there until the key is released, 
only a guess. 
    Look at my Uninstall program, and the addition to my Trek game. In both 
.vbs files I watch for the key down and connect for the key up process. I think 
you will find that data and such is not ready until the key processed up 
happens.

        Bruce

  To: [email protected] 
  Sent: Wednesday, May 23, 2012 7:12 AM
  Subject: KeyProcessedUp and KeyProcessedDown Events


  Hi Guys:
  In my external script while testing against the Target App vb.net 2010 
Express: 
  The KeyProcessedDown event fires the target subroutine specified in the 
AddressOf parameter.
  The KeyProcessedUp does not.
  Is the functionallity of these keys dependent on whether the Target 
Application being scripted specifies the KeyUp or KeyDown Methods in the source 
code or are the WE versions suppose to execute upon actual user interaction 
with the Keyboard regardless of whether the programmer used the KeyDown or 
KeyUp or KeyPressed methods?
  Also:
  When I do not use the OnKeyProcessedDown event 
  handlers the screen goes dark when I press Shift-Escape to close the Solution 
Explorer.
  The screen does not go dark when I cllose the Solution Explorer while using 
the OnKeyProcessedDown Event Handler.
  The OnKeyProcessedUp Event handler does not fire in any case - thus the first 
question.
  If I understand these events they should not impact the operation of the 
Target Application being scripted so the screen should still go dark when the 
Shift-Escape keys are pressed without doing any handling of passing keys 
through to it, or am I wrong on that?
  Rick USA

Reply via email to