Page 1 of 1

cefclient - overwrite commandline

PostPosted: Wed Sep 28, 2022 4:28 am
by TaurusPrime
Hi,

I need to overwrite the full commandline with own arguments. Can you give me an example?

if i change this (original provided sample cefclient_win.cc)
Code: Select all
  // Parse command-line arguments.
  CefRefPtr<CefCommandLine> command_line = CefCommandLine::CreateCommandLine();
  command_line->InitFromString(::GetCommandLineW());

to

command_line->InitFromString("--user-agent=test");

its not working. If i do it per shortcut, its working.

Thanks!

Re: cefclient - overwrite commandline

PostPosted: Wed Sep 28, 2022 9:36 am
by magreenblatt