salvadordf / CEF4Delphi

CEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows, Linux and MacOS.
https://www.briskbard.com/forum/
Other
1.2k stars 365 forks source link

Extract response from session 0 (Service) problem #445

Closed hafedh-trimeche closed 1 year ago

hafedh-trimeche commented 1 year ago

Hello,

Please note that when running this executable (https://github.com/wanips7/SyncCEFBrowser) from a session 0 (Service) no output is generated!

Opening a user session and executing the application, the response text is generated.

Best regards.

salvadordf commented 1 year ago

Hi,

I'm not an expert in Windows Services but after searching for more details about creating a CEF browser from a service it seems that it could be possible if we use a browser in OSR mode.

I would probably try to use a different EXE for the CEF subprocesses and use part of the code from the ConsoleBrowser2 or WebpageSnapshot demos.

I might try to create a WindowsServiceBrowser demo in the future. Thanks for the suggestion!

hafedh-trimeche commented 1 year ago

Thank you for proposing creation of a WindowsServiceBrowser demo.

salvadordf commented 1 year ago

I'll keep this issue open as a reminder ;)

salvadordf commented 1 year ago

Download the latest CEF4Delphi version and see the new Delphi_VCL\WindowsServiceBrowser demo