Finding programme ID (progid) for chrome or safari

26 views (last 30 days)
Qianqian Pan
Qianqian Pan on 7 Mar 2017
Answered: Kevin Gleason on 14 Mar 2017
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.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?
Jan on 7 Mar 2017
@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.

Sign in to comment.

Answers (1)

Kevin Gleason
Kevin Gleason on 14 Mar 2017
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.
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.


Community Treasure Hunt

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

Start Hunting!