Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using UIAutomation
Message
From
12/04/2011 00:44:17
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Using UIAutomation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01506966
Message ID:
01506966
Views:
231
Greetings all.

I'd like to use the UIAutomation library to automate the handling of some task, but I can't find the name of the object so that I can create it using CreateObject.

The only examples I can find of instantiating the CUIAutomation Object are in C and they don't use the class name. Here's the C code -
#include <uiautomation.h>

// CoInitialize must be called before calling this function, and the  
// caller must release the returned pointer when finished with it.
// 
HRESULT InitializeUIAutomation(IUIAutomation **ppAutomation)
{
    return CoCreateInstance(CLSID_CUIAutomation, NULL,
        CLSCTX_INPROC_SERVER, IID_IUIAutomation, 
        reinterpret_cast<void**>(ppAutomation));
}
Has any one used the CUIAutomation Object, or can give me an idea of where to start? I have some .NET code that uses the .NET wrappers for the object, but I'd rather stick with the Win32API if possible, and preferably just using VFP code.

If it's of any help, the MSDN page for the CUIAutomation Object is http://msdn.microsoft.com/en-us/library/ff384838%28v=vs.85%29.aspx

Ian Simcock.
Next
Reply
Map
View

Click here to load this message in the networking platform