revBrowserOpenCEF works in IDE but not standalone?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
bbock12
Posts: 3
Joined: Mon Apr 03, 2017 11:57 am

revBrowserOpenCEF works in IDE but not standalone?

Post by bbock12 » Mon Apr 03, 2017 1:28 pm

Hello all,

This code works in the Livecode IDE environment, but when it is made into a standalone program for Windows it does not work:

if gBrowserID is not an integer then
put revBrowserOpenCEF(the windowId of this stack, "https://www[dot]google[dot]com") into gBrowserID
revBrowserSet gBrowserID, "rect", the rect of graphic "browserPlaceholder"
revBrowserSet gBrowserID, "newwindow", true
end if

A debug log is generated and has this error in it:
ERROR:child_process_launcher.cc(445)] Failed to launch child process

I am posting this in the hope that somebody will show me how to solve this issue. Thanks!

- bbock12

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: revBrowserOpenCEF works in IDE but not standalone?

Post by MaxV » Mon Apr 03, 2017 1:35 pm

Switch to the Browser widget, now all other browser incarnations are just the browser widget.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

bbock12
Posts: 3
Joined: Mon Apr 03, 2017 11:57 am

Re: revBrowserOpenCEF works in IDE but not standalone?

Post by bbock12 » Mon Apr 03, 2017 1:43 pm

Max,

Thank you for your reply!

Regarding the browser widget, that sounds fine except that I do not know how to set it so that it will open a new window in a similar fashion to this:

revBrowserSet gBrowserID, "newwindow", true

Maybe you or someone knows how to solve this issue?

- bbock12

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: revBrowserOpenCEF works in IDE but not standalone?

Post by LiveCode_Panos » Mon Apr 03, 2017 1:58 pm

@bbock12

Have you tried choosing "Select Inclusions" in the "General" pane of the Standalone Settings, and then checking "Browser (CEF)" in the "Inclusions" pane?

Best,
Panos
--

bbock12
Posts: 3
Joined: Mon Apr 03, 2017 11:57 am

Re: revBrowserOpenCEF works in IDE but not standalone?

Post by bbock12 » Mon Apr 03, 2017 2:42 pm

Panos,

Even though I had noticed previously that CEF has been created and populated in the Externals folder every time I created a standalone using the automatic search for inclusions feature, I went ahead and tried what you suggested and it worked! Thanks!

Now if you could only solve the problem that the CEF browser will not open blabladomain[.]local

- bbock12

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: revBrowserOpenCEF works in IDE but not standalone?

Post by LiveCode_Panos » Mon Apr 03, 2017 4:00 pm

@block12,
Now if you could only solve the problem that the CEF browser will not open blabladomain[.]local
This affects only the standalone, is that correct?

Just a shot in the dark: What is the path to blabladomain[.]local? Could it be the case that the path is valid for the IDE, but invalid for the standalone?

A sample stack would be helpful for diagnosing the problem.

Best,
Panos
--

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: revBrowserOpenCEF works in IDE but not standalone?

Post by MaxV » Tue Apr 04, 2017 12:02 pm

bbock12 wrote:Max,

Thank you for your reply!

Regarding the browser widget, that sounds fine except that I do not know how to set it so that it will open a new window in a similar fashion to this:

revBrowserSet gBrowserID, "newwindow", true

Maybe you or someone knows how to solve this issue?

- bbock12
goto that substack and use:

Code: Select all

create widget "My New browser " as "com.livecode.widget.browser"
Otherwise the substack already have the widget, and when you open it, it will be shown.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: revBrowserOpenCEF works in IDE but not standalone?

Post by Klaus » Tue Apr 04, 2017 12:20 pm

Yes, revbrowser or widget, the point is that WE have to take care of creating a new (browser) window! :D

But yes, the documentation for this revbrowser property ("newwindow") is VERY misleading!

Post Reply