Hi, That's what I was also thinking, thanks! Sean.
From: Aaron Smith [mailto:[email protected]] Sent: 12 August 2013 15:58 To: [email protected] Subject: Re: Quick suggestions for Window-Eyes com collections I assume you could do something like this: IEnumVARIANT* pVar = NULL; hr = hotkeys->QueryInterface(IID_IEnumVARIANT, (void**)&pVar); if ( SUCCEEDED(hr) ) { // Got IEnumVARIANT } Aaron On 8/12/2013 10:37 AM, Sean Farrow wrote: Hi, Thanks Aaron. I'm not having a problem, What I'd ideally like is to be able to get hold of an IEnumVariant from the Hotkeys object (c++). I've got an iterator that allows me to go through the hotkeys (much like the c# example you sighted below). I'm assuming I can just do a QueryInterface and end up with the required interface. Thanks for any help. Sean. From: Aaron Smith [mailto:[email protected]] Sent: 12 August 2013 13:33 To: [email protected]<mailto:[email protected]> Subject: Re: Quick suggestions for Window-Eyes com collections 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. -- 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.
