revBrowserOpenCEF works in IDE but not standalone?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
revBrowserOpenCEF works in IDE but not standalone?
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
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
Re: revBrowserOpenCEF works in IDE but not standalone?
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
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: revBrowserOpenCEF works in IDE but not standalone?
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
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 Staff Member
- Posts: 864
- Joined: Fri Feb 06, 2015 4:03 pm
Re: revBrowserOpenCEF works in IDE but not standalone?
@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
--
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
--
Re: revBrowserOpenCEF works in IDE but not standalone?
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
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 Staff Member
- Posts: 864
- Joined: Fri Feb 06, 2015 4:03 pm
Re: revBrowserOpenCEF works in IDE but not standalone?
@block12,
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
--
This affects only the standalone, is that correct?Now if you could only solve the problem that the CEF browser will not open blabladomain[.]local
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
--
Re: revBrowserOpenCEF works in IDE but not standalone?
goto that substack and use: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
Code: Select all
create widget "My New browser " as "com.livecode.widget.browser"
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: revBrowserOpenCEF works in IDE but not standalone?
Yes, revbrowser or widget, the point is that WE have to take care of creating a new (browser) window! 
But yes, the documentation for this revbrowser property ("newwindow") is VERY misleading!

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