Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

157
Visualizações
How to programmatically allow Internet Explorer to use javascript and to play videos without user confirmation?

I am able to control Internet Explorer window in C++ using:

IWebBrowser2 *browser
CoCreateInstance(
    CLSID_InternetExplorer, 
    NULL, 
    CLSCTX_SERVER, 
    IID_IWebBrowser2, 
    (void**)&browser
);

And I navigate to a local html file that contains the following:

<video controls width="640" height="480">
    <source src="video.mp4"></source>
</video>

When I run the program the internet explorer opens fine but it asks me to "Allow blocked content" in order for the video to be able to be played. Same thing happens when I for example add some javascript in html file.

This is how it looks

My question is next: How can i prevent IE from showing me that popup and allow it to use ActiveX or Javascript programmatically. Any help would be much appreciated.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can't prevent IE from showing that popup and allow it to use ActiveX or Javascript programmatically. Just like the first comment saying, if you can do that programmatically, that means any app can control your computer which is unsafe.

These settings can only be configured by the user or administrator of the computer in IE Security Settings.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda