BadMusician Posted June 2, 2019 Share Posted June 2, 2019 Как открыть браузер в ангаре? @ Quote Link to comment Short link Share on other sites More sharing options...
Ekspoint Posted June 2, 2019 Share Posted June 2, 2019 https://github.com/Mododejl/code-example/blob/master/browserWindow/example.py @ Quote Link to comment Short link Share on other sites More sharing options...
BadMusician Posted June 2, 2019 Author Share Posted June 2, 2019 3 minutes ago, Ekspoint said: https://github.com/Mododejl/code-example/blob/master/browserWindow/example.py Спасибо :) А можно как-то перехватывать лог JS? Например, JS выводит в лог console.log('SendNotification: SAMPLE_TEXT') И питон получает эту стрингу @ Quote Link to comment Short link Share on other sites More sharing options...
Ekspoint Posted June 2, 2019 Share Posted June 2, 2019 4 часа назад, BadMusician сказал: Спасибо :) А можно как-то перехватывать лог JS? Например, JS выводит в лог console.log('SendNotification: SAMPLE_TEXT') И питон получает эту стрингу про это не знаю, но говорю сразу что можно забыть про данную затею, сайты которые не внесены в белый список открываться не будут @ Quote Link to comment Short link Share on other sites More sharing options...
DIVlNATOR Posted February 24, 2020 Share Posted February 24, 2020 @Ekspoint На уровне сервера проверяется запрос???ERROR: [WebBrowser] FAILED Url: https://www.google.ru/, Http code: 418, Browser error:None Как я понял из вики, возможно меняется протокол? Поэтому проэкт "VERSUS mod" закрылся? @ Quote Link to comment Short link Share on other sites More sharing options...
DIVlNATOR Posted March 5, 2020 Share Posted March 5, 2020 @Kotyarko_O@EkspointБольше нет способов отобразить web-страницу, не используя интерфейс встроенного браузера движка игры (Как я понял по коду. не работал с питоном, может не правильно интерпретирую синтаксис)? Например в JavaFX есть WebView и WebEngine (webkit). Что то типа открываем окно добавляем WebView c указанным URI. @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.