ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading Text Into .NET Web Browser Makes Tick Sound

Solved!
Go to solution

Attached is a vi that displays the time in a .NET Web Browser control. It updates once per second.

 

Everything works fine but on each reload Windows 7 causes a tick sound from my speakers. The first load does not make the tick - just each subsequent load.

 

How can I turn that off?

 

I am using LabVIEW 2010 but the attached vi is 8.6 so those of you without 2010 can open it.

=====================
LabVIEW 2012


0 Kudos
Message 1 of 8
(4,171 Views)

That click is generated by windows.  You hear the same thing if you are in Internet Explorer and click on a link.

 

Go to Control Panel,  Sounds and Audio Devices.  Sounds tab.  Browse down until you find  Windows Explorer --  Start Navigation.  Mine is defaulted to Windows XP Start.wav.  Change the setting to (none)  at the top of the list.  Hit OK or Apply and the click will be gone.

0 Kudos
Message 2 of 8
(4,163 Views)

Thanks for the extremely quick reply but I should have been more specific. How can I programatically turn off the tick with LabVIEW just for this .NET container?

=====================
LabVIEW 2012


0 Kudos
Message 3 of 8
(4,160 Views)

You can probably use the Windows API to do this. Haven't a clue how to do it, though. It's not a .NET operation - it's an operating system operation.

0 Kudos
Message 4 of 8
(4,152 Views)
Solution
Accepted by SteveChandler

On the dark side, I can use the Document->OpenNew method and then Document->Write method to update without that stupid click (wonder why I never use IE).  LV seems to give a Null reference to the Document property so that is out.  Using a Stream also gives a click.

 

Nuclear option:  Use the Registry Key: HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current.  At the beginning of the VI, read the value (Default = Windows Navigation Start.wav).  Just before you update the DocumentText, write an empty string to this Key, and immediately after restore the value.

 

Message 5 of 8
(4,139 Views)

 


@Darin.K wrote:

LV seems to give a Null reference to the Document property

 

That kind of blows. Is it a bug or just a missing feature?


Nuclear option:  Use the Registry Key: HKEY_CURRENT_USER\AppEvents\Schemes\Apps\Explorer\Navigating\.Current.  At the beginning of the VI, read the value (Default = Windows Navigation Start.wav).  Just before you update the DocumentText, write an empty string to this Key, and immediately after restore the value.

 


Smiley Surprised

 

Well it works so thanks. I guess sometimes drastic measures are needed.

 

All I want to do is have an html display of some data on the front panel. It does not need to be a full blown browser but I didn't know any other way. Is there a simpler way to just display html on the front panel?

 

=====================
LabVIEW 2012


0 Kudos
Message 6 of 8
(4,110 Views)

Steve,

 

To answer the first question, I found a Volume Control Developer Zone  article that may be of help. If this works out for you, it may eliminate your second question, but I am looking at that as well.

 

Let me know how it goes.

 

Ricky V

National Instruments
Applications Engineer
0 Kudos
Message 7 of 8
(4,100 Views)

Steve,

 

To answer this second question, try looking at these examples.

1)Ex - Programatically Changing HTML Pages to Display on My Front Panel.

2)Ex - Get HTML Source string from URL using ActiveX and Microsoft Internet Explorer

Hope these help.

 

Have a good one!

 

Ricky V

National Instruments
Applications Engineer
0 Kudos
Message 8 of 8
(4,093 Views)