Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using UIAutomation
Message
 
 
À
12/04/2011 00:44:17
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01506966
Message ID:
01506982
Vues:
74
Try
oUIA = CREATEOBJECTEX("{ff48dba4-60ef-4201-aa87-54103eef594e}", "", "{30CBE57D-D9D0-452A-AB13-7AC5AC4825EE}")
You can use VFP Object Browser to look for more info in C:\WINDOWS\SYSTEM32\UIAUTOMATIONCORE.DLL


>
>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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform