LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open web page in Internet Explorer

Hello,

I am trying to open a webpage using IE with labview 7. I wrote a vi
using ActiveX controls. My problem is IE opens, but it opens
underneath all of the LabVIEW windows. I searched online, and I found
an example from NI that was similar to my code, however, it still does
not open IE as the top window. Is there anyway to make the IE window
the top window?

The NI example is located here:

http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB9AD111EE034080020E74861&p_node=DZ52051&p_submitted=N&p_rank=&p_answer=&p_source=External

Thank You,

Sean Reminga
Purdue PRIME Lab
reminga@purdue.edu
0 Kudos
Message 1 of 4
(3,367 Views)
Two things you could try.

Drop a property node and set the VI Server Class to 'VI'. Then select as the property either "Front Panel Window>Is Frontmost" and create a false constant for the property or "Front Panel Window>State" and create a constant and set it to Minimized.

Run this property node after you open the browser window and your VI should either remove itself from the front position or minimize itself.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 4
(3,367 Views)
I dont know how to do it in ActiveX, but another way might be to load your page in a frameset and use the onLoad = focus() tag for the frameset. Once the page loads the window will focus. Here is a sample frameset (I'll attach as well in case the code gets messed up) You can probably make your frameset better than mine as frames code confuses me.



Loader







<body><br></body>

Message 3 of 4
(3,367 Views)
You might try setting IE to be front most. There is a VI in Windows API Function Utilities (32-bit) for LabVIEW
for doing this.
Message 4 of 4
(3,367 Views)