Windows 8 som click

2

When using the TWebBrowser component (which is from Internet Explorer) running on the Win7 platform, every time you navigate a boring click sound is made.

So far I have not seen anything in forums about this behavior in Windows 8, this question and answer will help a lot of people.

So, does an application made in Delphi 7 using the TWebBrowser (IE) component while running in Windows 8 continue to click when you're browsing?

    
asked by anonymous 19.04.2015 / 15:17

1 answer

0
const
  SET_FEATURE_ON_PROCESS = $00000002;
  FEATURE_DISABLE_NAVIGATION_SOUNDS = 21;

function CoInternetSetFeatureEnabled(FeatureEntry: DWORD;
  dwFlags: DWORD; fEnable: BOOL): HRESULT; stdcall; external 'urlmon.dll';

Just add the following line in Form Load

CoInternetSetFeatureEnabled(FEATURE_DISABLE_NAVIGATION_SOUNDS, SET_FEATURE_ON_PROCESS, True);

Good luck with these testers.

    
01.08.2015 / 21:27