12-15-2010 04:15 PM
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.
Solved! Go to Solution.
12-15-2010 04:22 PM
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.
12-15-2010 04:25 PM
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?
12-15-2010 04:34 PM
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.
12-15-2010 06:40 PM
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.
12-16-2010 10:00 AM
@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.
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?
12-16-2010 11:59 AM
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
12-16-2010 12:08 PM
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