Finding programme ID (progid) for chrome or safari

조회 수: 12 (최근 30일)
Qianqian Pan
Qianqian Pan 2017년 3월 7일
댓글: Ashishkumar Gupta 2023년 2월 27일
Hi
I know the progid for Internet Explorer is internetexplorer.application. What is the progid for chrome or Safari if there is one?
I have two lines of code to open internet explorer in Matlab, see below:
wb=actxserver('internetexplorer.application');
wb.set('visible', true);
I wonder if I would like to open chrome or safari, how should I modify those two lines of code. Does anyone know?
Best
Lily
  댓글 수: 2
Rik
Rik 2017년 3월 7일
I don't know if that is still correct (as it is quite old), but this website suggests that what you want is not possible.
Jan
Jan 2017년 3월 7일
@Rik: This enables the display of ActiveX elements inside a page, but not to control the program itself. I assume there is no ActiveX control of Chrome and Safari, but I'm not sure.

댓글을 달려면 로그인하십시오.

답변 (1개)

Kevin Gleason
Kevin Gleason 2017년 3월 14일
Hi Qianqian,
h = actxserver('progid') creates a local OLE Automation server, where progid is the programmatic identifier of an OLE-compliant COM server, and h is the handle of the server's default interface.
Get progid from the control or server vendor's documentation. To see the progid values for MATLAB® software, refer to Programmatic Identifiers. https://www.mathworks.com/help/matlab/matlab_external/introduction_brd0vd4-1.html#bq54l7x-1
Chrome is not OLE COM compliant and hence does have an associated PROGID that can be used to controll it via ActXServer.
Most likely Safari does not have one either, since COM is a Windows technology and Safari has strong ties to Mac.
  댓글 수: 1
Ashishkumar Gupta
Ashishkumar Gupta 2023년 2월 27일
Hi @Kevin Gleason, How can i find progid of ANSYS Maxwell (Ansoft EDT). I do not understand such deep IT terms.
Code: iMaxwell=actxserver('Ansoft.ElectronicsDesktop');
My issue is I am getting error:
Error using actxserver (line 93)
Server creation failed. Invalid ProgID 'Ansoft.ElectronicsDesktop'.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Use COM Objects in MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by