Hi Chip: I tend to agree but I had to try all options before I could say that I 
think there is something wrong with WE or at least that I am not doing 
something right related to COM and using the KeyProcessed Object in WE.
I finished testing the new implementation using the SetFile approach with the 
same results.
When the script is disabled hitting shift-escape hides Solution Explorer.
When the script is running the KeyProcessed event does fire but Solution 
Explorer is not hidden.
This tells me that the instruction, keystroke, shift-escape is not likely 
getting passed through to the Target app, vb.net 2010 express or there is a COM 
problem with the message itself.
This may be a major problem downline when I dig into more complicated stuff, 
ugh!
For now I am thinking there may be a "x" on the Solution Explorer that a 
sighted person clicks to close it.
Microsoft has moved the "x" from the top right to the bottom right, think 
bottom right, of some if not all windows and dialogs etc... in vb.net 2010 for, 
as I mentioned, some or all windows not sure.
I am going to analyze the DOM Tree to see if there is a button labeled "x" or 
something to indicate that button, set focus to it, try and pull the Invoke 
Pattern for it and execute it if I can do all that.
In a Macro I could just execute the "Hide" command but since this is Express 
the IDE Macros and plug-ins are not available.
Anyway, this is the final result unless one of you has another idea or Aaron or 
one of the GW folks chimes in with some further suggestions.
I hope Aaron or someone either gives me some way I might check this out further 
or they have some other ideas on the subject but I guess they are busy since 
they would normally have chimed in on a set of threads this large but I've not 
heard from anyone at GW so far.
That is if Steve is not with GW, not sure about that.
Later and I'll be back after I try finding the "X" button and clicking it - 
that may be another day or 2 of work just to figure out how to do that if it 
can even be done.
Sorry for the long post but I can think of no more tests to run without some 
suggestions from a COM guy like Aaron or someone.
Rick USA

  ----- Original Message ----- 
  From: Chip Orange 
  To: [email protected] 
  Sent: Sunday, May 27, 2012 6:54 PM
  Subject: RE: CursorKeys Object Problem


  I have to give you an A plus for determination Rick!  I really think this is 
doing things the hard way though; defining something as a cursor key in a set 
file doesn't do anything for you at all, unless you define some action you want 
to take place along with it, and there's no action you want to happen.

  Chip




----------------------------------------------------------------------------
    From: RicksPlace [mailto:[email protected]] 
    Sent: Sunday, May 27, 2012 1:59 PM
    To: [email protected]
    Subject: Re: CursorKeys Object Problem


    Oh Ya, I remember actually doing that before and giving up on it for some 
reason.
    I think It was firing but the functionallity of the default vb.net action 
was not working.
    I think this was the same result I was getting as when I used the Key 
object from the Keyboard.
    Anyway, I added a Shift-Escape Cursor Key to the CursorKeys Settings in the 
WE Dialog and saved it in the SetFile for vb.net 2010 express.
    I then Pulled the Keys Object from the SetFile and iterated it to find the 
Shift-Escape Cursor Key I had added and I get that key from the indexed Item 
Property.
    I then use a Key object Property to set up the Handler and it is firing 
properly but I cant tell if the screen is going dark, it is too light in here.
    So I will have to wait until dark to see if the screen goes dark meaning 
the functionallity is passed through to vb.net2010 express as it should be or 
if things are still not working properly.
    Phew!a learning curve this morning but I know how to use a set file from 
within an external script.
    Rick USA
      ----- Original Message ----- 
      From: Stephen Clower 
      To: [email protected] 
      Sent: Sunday, May 27, 2012 8:16 AM
      Subject: Re: CursorKeys Object Problem


      Rick,

      You can do this programatically with Keyboard,RegisterCursorKey. The 
method allows you to filter the key's scope when you initialize it. If you have 
registered hotkeys before then you will have no problems with cursor keys.

      Steve





--------------------------------------------------------------------------
      From: RicksPlace <[email protected]>
      Sent: Sun May 27 07:41:11 EDT 2012
      To: [email protected]
      Subject: CursorKeys Object Problem



      Hi Guys:
      I wanted a CursorKey for my script:
      I opened vb.net 2008 ( My Script )
      Then I went into WE Dialog and in the CursorKeys tab switched to Program 
and 
      entered Shift-Escape as a CursorKey definition.
      Does this sound right?
      Is there a vbs app that uses a CursorKeys object defined in the WE Dialog 
in this way?
      how will WE know which Program to associate the CursorKeys object with at 
run time.
      Rick USA

      --
      Stephen Clower
      App Development & Product Support
      Gw Micro, Inc.
      Sent from my phone.

Reply via email to