Hi Steve:
  The AddHandler statement uses a Delegate and is set up by the Compiler.
  I have used native Delegates in my script but I dont think I tried using them 
with the Keyboard event handlers.
  Hay, it is something to try and I'll do it and post up if that works later 
today or tomorrow.
  In the meantime, my most recent post tells of something I found:
  Which handler gets executed in my script is dependent on the order in which 
the handlers are added.
  I wonder if the WE Keyboard object can handle  references to more than one 
script based Functions.
  I know it works in VBS but there is allot going on between my Managed Code 
script and the WE COM engine and the vb.net2010 express process.
  Anyway, I will try using straight up delegates, it cant hurt.
  Rick USA
  ----- Original Message ----- 
  From: Stephen Clower 
  To: [email protected] 
  Sent: Friday, June 22, 2012 7:23 AM
  Subject: Re: Question About WE EventHandler And Doc Location


  Rick,

  If memory serves, the VB .net example on App Central employs delegates. I'm 
not currently in a position to review it, but it's well worth a look if you 
haven't gone through it already.

  Steve




------------------------------------------------------------------------------
  From: RicksPlace <[email protected]>
  Sent: Fri Jun 22 03:34:37 EDT 2012
  To: [email protected]
  Subject: Question About WE EventHandler And Doc Location



  Hi Guys: I tried to setup a standard Delegate, could be a error in my code 
but got this message.
  Value of type 
  'VBNet2010WETester.LaunchApp.KeyDownDelegate' 
  cannot be converted to 
  WindowEyes.KeyEvents_OnKeyDownEventHandler
  Is there some documentation on the
  WindowEyes.KeyEvents_OnKeyDownEventHandler?
  I didnt find it in the Objects section under Key or other objects unless I 
missed something and not in the Enumerations under the group of Key related 
enumeration groups unless, again, I missed it.
  I am wondering if I need to assign the WindowEyes handler instead of using a 
native .net Delegate or AddHandler with normal .net parameters as I once saw 
for an Excel or Office related example, forget exactly which.
  I will go back and see if I can find it in the Object Browser within the COM 
definition for WindowEyes objects but I dont recall it off hand.
  If it is in the WE Docs can you point me to where these are defined- at least 
the general object or category of objects?
  Perhaps this is behind the problems I have been having with the Keyboard 
operations, could be.
  Thanks:
  Rick USA

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

Reply via email to