LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change default web browser from LabVIEW

Solved!
Go to solution

Hi

 

I would like to open some web pages in various web browsers installed in the PC, programatically from LabVIEW.

 

I could see only Open URL in Default Browser.vi. if there any way to change the default web browser from LabVIEW

 

Can anyone please help me on this?

 

Thanks in advance

 

Regards,

Loka Prakash

 

Can anyone let me know how to change the default web browser setting of a PC from LabVIEW?
0 Kudos
Message 1 of 5
(3,797 Views)
Solution
Accepted by topic author Loka Prakash

Hi loka,

 

you could use the SystemExec function to call those browsers directly by command line (like "firefox www.cnn.com" in command shell)!

 

Or you use ActiveX components of those browsers - when they support this...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,795 Views)

Hi

 

Thanks for the quick reply GerdW.

 

I could able to use the System Exec VI for opening the browser command line approach.

I am not very much familiar with activex concept.

Can you please share how to get the same done from activeX point of view?.

 

Thanks,

 

Regards

Prakash

0 Kudos
Message 3 of 5
(3,787 Views)

I think Gerd was referring to using the ActiveX controls of browsers so you can embed a web page onto the front panel of a VI. Internet Explorer, for example, has an ActiveX control so you can place it on a front panel and browse that way. There is an example that ships with LabVIEW that shows you this. Just open the Example Finder (Help -> Find Examples) and search for "ActiveX".

 

You can launch some applications in their own window via ActiveX, but if you want to open the browser as its own process, then Gerd's suggestion of using System Exec is far easier.

Message 4 of 5
(3,772 Views)

Thanks Smercurio_fc

 

 

 

0 Kudos
Message 5 of 5
(3,756 Views)