Hi Bruce: It sounds like you set up a handler for the KeyProcessedDown event and then, within that code, watch for the subsequent KeyProcessedUp event. Before I spend hours slogging through allot of unfamiliar code is this the case? Can you tell me why you used both the KeyProcessedUp and the KeyProcessedDown Event handlers instead of just the one that applied to your situation? Both event handlers have the same parameters so should work independently unless I am missing something from the Docs. Rick USA
Rick USA From: BT To: gw-scripting@gwmicro.com Sent: Wednesday, May 23, 2012 7:58 AM Subject: Re: KeyProcessedUp and KeyProcessedDown Events 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: gw-scripting@gwmicro.com 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