Category : internet-explorer

In my project web browser code that i want to use some embedded web browser. I’m using c++, IWebBrowser2 and OLE automation about connect with java-script. [Example Code] **c++** void BrowserWindow::AddCustomObject(IDispatch * pCustomObject, std::string name) { IHTMLDocument2* pDoc = GetIHtmlDoc(); if (NULL == pDoc) return; IHTMLWindow2* pWindow = NULL; pDoc->get_parentWindow(&pWindow); pDoc->Release(); if (NULL == pWindow) ..

Read more

My application supports the IE (InternetExplorer) browser. When the back/forward buttons are clicked and there is nothing to go back or forward to, Webbrowser.GoBack() and Webbrowser.GoForward() are causing a crash. Is there any way to know if I can go back before I actually call GoBack()? I took a look at the CWebBrowser2 class functions, ..

Read more

Working code in Windows 10 with IE $mod_nums = @(19, 22) $oIE = New-Object -ComObject ‘InternetExplorer.Application’ $my_arr = New-Object System.Collections.Generic.List[System.Object] foreach ($mod_num in $mod_nums) { if ($null -eq $mod_num) { break } $oIE.Navigate("https://wgmods.net/" + "$mod_num") for ($i = 0; $i -le 5; $i++) { do { Start-Sleep -Milliseconds 100 } until ((-not $oIE.Busy) -and ($oIE.ReadyState ..

Read more