Hi Jeff,

I'm just learning this, but if your change made the difference, why was
he hearing the "Listening  for key" message?  I mean, it must have fired
and called his routine for him to hear that message right?

thanks.

Chip






------------------------------

Chip Orange
Database Administrator
Florida Public Service Commission

[email protected]
(850) 413-6314

 (Any opinions expressed are solely those of the author and do not
necessarily reflect those of the Florida Public Service Commission.)
 

> -----Original Message-----
> From: jeff weiss [mailto:[email protected]] 
> Sent: Thursday, January 08, 2009 3:36 PM
> To: [email protected]
> Subject: Re: capture key
> 
> Try this: I changed the first line.
>  
> Dim myHotkey : Set myHotkey = 
> Keyboard.RegisterHotkey("f2","ListenForKey")
>  
> sub listenforkey()
> speak " listening for key input"
> dim mykey : set mykey = keyboard.Capture()
>  
> speak "the key pressed was " & mykey.name
> end sub
> 
>  
> 
>       ----- Original Message ----- 
>       From: Juan Hernandez <mailto:[email protected]>  
>       To: [email protected] 
>       Sent: Thursday, January 08, 2009 11:51 AM
>       Subject: capture key
> 
>       Hi guys,
>        
>       so I'm trying to setup a method when I hit a key, like 
> f2, to put window-eyes in a small wait period. and allow me 
> to hit a letter on my keyboard, and perform a certain task, 
> below is some really basic code.
>        
>       dim myreghotkey = set myreghotkey = 
> keyboard.registerhotkey("f2","listenforkey",clientinformation.
> applicationprocess)
>       sub listenforkey()
>       speak " listening for key input"
>        
>       dim mykey : set mykey = keyboard.Capture()
>       speak "the key pressed was " & mykey.name
>       end sub
>        
>        
>       when I hit f2 it says  listening for key input.  and I 
> would assume that because I have the capture next, that it 
> should take in my next key press?  nothing happens, it 
> doesn't speak the text that is in the sub.
>        
>       any ideas? I'm sure I'm doing something really stupid.
>        
>       Thanks.
>         
>        
>       Juan Hernandez
>       [email protected]
>       858-699-2105
>        
> 
> 

Reply via email to