Re: help with FilterBy parameter

2012-02-14 Thread martin webster
Hi Doug and Aaron, I can now see what context I should be using this parameter. Thanks much. Warm regards. Martin Webster. --- On Tue, 2/14/12, Doug Geoffray wrote: > From: Doug Geoffray > Subject: Re: help with FilterBy parameter > To: gw-scripting@gwmicro.com > Date: Tuesday,

Re: help with FilterBy parameter

2012-02-14 Thread Doug Geoffray
isterHotkey method. Aaron On 2/14/2012 12:38 PM, martin webster wrote: Hi Aaron, So what's the point of the FilterBy parameter then?. There is something I'm not understanding. Warm regards. Martin Webster. --- On Tue, 2/14/12, Aaron Smith wrote: From: Aaron Smith Subject: Re: h

Re: help with FilterBy parameter

2012-02-14 Thread Aaron Smith
erHotkey method. Aaron On 2/14/2012 12:38 PM, martin webster wrote: Hi Aaron, So what's the point of the FilterBy parameter then?. There is something I'm not understanding. Warm regards. Martin Webster. --- On Tue, 2/14/12, Aaron Smith wrote: From: Aaron Smith Subject: Re: help

Re: help with FilterBy parameter

2012-02-14 Thread martin webster
Hi Aaron, So what's the point of the FilterBy parameter then?. There is something I'm not understanding. Warm regards. Martin Webster. --- On Tue, 2/14/12, Aaron Smith wrote: > From: Aaron Smith > Subject: Re: help with FilterBy parameter > To: gw-scripting@gwmicro.

Re: help with FilterBy parameter

2012-02-14 Thread Aaron Smith
Martin, You should create (and check the value of) a variable that holds the result of ActiveWindow.Children.FilterByClassAndModule("Edit", "NOTEPAD") because it may come back with Nothing. If you end up passing Nothing as the FilterBy parameter, you're effectively registering a global hotke

help with FilterBy parameter

2012-02-14 Thread martin webster
Hi All, I am trying to use the FilterBy parameter of the registerHotkey property and it doesn't seemed to work for me. The following snippet should be able to detect that the notepad window is active and say "this is notepad" only and only when the notepad window is active, but at present this s