Vic,

To associate a hot key with an application, simply add a third parameter to your RegisterHotKey routine. For example, the following snip registers F9 to do something for whatever my active program happens to be: Dim myKey : Set myKey = Keyboard.RegisterHotkey("F9", "DoSomething", ClientInformation.ApplicationProcess)

Sub DoSomething
    Speak "Howdy there."
End Sub


Steve





On 6/22/2011 3:53 PM, Vic Beckley wrote:
Chip,

Have you covered the advanced hot key topics. I know you mentioned it in an
early class, class 10 I think, but I can't find any reference to it later. I
haven't been able to listen to all your classes, though.

The problem I am having is that it seems the WEScript Framework makes all
the hot keys global. I want to limit them to a specific application that the
app is associated with. What is the easiest way to do this.

Thanks for any help on this and your classes are great.

Vic


--
Stephen Clower
Product support specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

Reply via email to