ui automation - Error attempting to set up UIAutomation in Delphi -
i'm trying follow advice here @ utilize uiautomation in place of likes of sendkeys, etc, , getting show-stopping error "error accessing ole registry" seek it.
i'm running xe4 in win7pro 64-bit (vmware) vm.
following advice here , elsewhere encountering error messaage:
i'm using built-in administrator business relationship (in place of own admin business relationship first encountered error).
i've run regsvr32 on uiautomationcore.dll , reports "call registerserver succeeded".
i have user business relationship command set "never notify"
i'm starting xe4 using "run administrator"
in xe4, go component | import component | import activex control, click add together , browse \windows\system32\uiautomationcore.dll (or version in syswow64 , suppose sub-question 1 should trying, same error either of them). click open , error pop-up "error accessing ole registry" message. clicking details button shows error occurring in tlib180.bpl, phone call tlibutils.loadandregistertypelibrary.
i'm not sure whether i'm missing step or doing wrong ...
create type library this:
component | import component. import type library. select uiautomationclient. click through end of wizard , on final page select create unit. click finish.you have type library derived unit named uiautomationclient_tlb
can utilize other. can gain access iuiautomation
interface with:
automation := cocuiautomation.create;
and @ point , running.
you don't need register anything. scheme component registered. don't need changing uac settings, or running elevated.
delphi ui-automation
No comments:
Post a Comment