Jump to content
Edwin Yip

Wke4Delphi​​​​​​​, alternative to dcef3 or cef4delphi

Recommended Posts

This open source project basically can replace dcef3 or cef4delphi (for embedding the Chromium browser into your program), but the size is much smaller - 6mb zipped. I guess not everyone in the English community knows about it since it's hosted in the Chinese version of github :D
 
Basically it's a Delphi wrapper for: https://github.com/weolar/miniblink49
  • Like 2

Share this post


Link to post

@edwinyzh

Thanks for the info, Nice project, but Gitee seems impossible to register for download.

Any hints ?

Share this post


Link to post

@Rollo62, You don't have to register to download, use git clone or click the Download Zip link as illustrated above by Markus.

Share this post


Link to post
9 hours ago, Paul Thornton said:

@edwinyzh - I'm testing out Wke4Delphi, but each time I load a web page it defaults to Chinese. Do you know how to change it to the default locale of the current OS?

 

Cheers,

Paul

Sorry, no idea at all, I'm not using it ATM.

Share this post


Link to post

I downloaded  with SVN checkout

The zip file is too big to put here

if anyone wants the source plz contact me

with email

It seems to be a great replacement for cef4delphi 

Only one dll!!! Node.dll for 32b

https://gitee.com/LangjiApp/Wke4Delphi.git <<< link for download on SVN checkout

 

Edited by limelect

Share this post


Link to post

I tried to compile it was a mess.

Looking for already compiled

Edited by limelect

Share this post


Link to post

programy-na-zlecenie.thumb.png.6b3b44e76c293d49ec27a785eee810c3.pngOK, chinese it's small problem now.

 

I try use TWkeBrowser to "speak" from translate.google.com. But i have problem: "voice playback is not supported by the browser"

 

 

programy-na-zlecenie.jpg

Edited by krystian-broniszewski

Share this post


Link to post
On 2/22/2020 at 9:33 PM, Paul Thornton said:

@edwinyzh - I'm testing out Wke4Delphi, but each time I load a web page it defaults to Chinese. Do you know how to change it to the default locale of the current OS?

 

try send 'Accept-Language: en-us,en' on load event

 

example:

function DoOnLoadUrlBegin(WebView: wkeWebView; param: Pointer; url: PansiChar; job: Pointer): boolean; cdecl;
var
  bhook, bHandled: boolean;
begin
   wkeNetSetHTTPHeaderField(job, PwideChar('Accept-Language'), PWideChar('en-us,en'), False);

 

  • Thanks 1

Share this post


Link to post

I have 2 problems with TWKEBrowser

 

1. How to disable show images

2. How to click button? I try:

  wb.ExecuteJavascript('document.getElementsByClassName("button").click();'); //but not working on most websites

 

but

    wb.ExecuteJavascript('document.getElementById("password").value = "drop"'); // is 100% working

 

Please help and soory for my english.

Share this post


Link to post
On 2/19/2021 at 9:43 AM, Dmitry Sh. said:

try send 'Accept-Language: en-us,en' on load event

 

example:


function DoOnLoadUrlBegin(WebView: wkeWebView; param: Pointer; url: PansiChar; job: Pointer): boolean; cdecl;
var
  bhook, bHandled: boolean;
begin
   wkeNetSetHTTPHeaderField(job, PwideChar('Accept-Language'), PWideChar('en-us,en'), False);

  

What is your version of WKEBrowser? i don't see your function

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×