Hi, Sean.

Hotkeys do have an enumerator, as this C# example proves:

namespace foreachsample {
    class Program {
        static void Main(string[] args) {
            WindowEyes.Application weapp = new WindowEyes.Application();
            var hotkeys = weapp.ActiveSettings.HotKeys;
            foreach (Hotkey h in hotkeys) {
                Console.Write(string.Format("{0}\n", h.Description));
            }
        }
    }
}

Do you have any sample code that demonstrates the problem you're having?

Aaron

On 8/11/2013 12:08 AM, Sean Farrow wrote:

Hi all,

I'm just doing some work with Window-Eyes scripting from c++.

I'm accessing collections of objects (in this particular case hotkeys).

It would be nice if collections in the WindowEyes object model would support the IEnumxxx interfaces to allow c++/visual basic programmers to use Foreach/stl iterators to move throw the collection.

Is this something that GW are considering?

Cheers

Sean.


--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Reply via email to