Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using UIAutomation
Message
De
12/04/2011 00:44:17
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Using UIAutomation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01506966
Message ID:
01506966
Vues:
232
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform