Update History

User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

Chromium Framework

Updated:
Wrapped the new PureBasic WebGadget:
• Embed_JS_Promise.pb
• Execute_JavaScript.pb
• CrWG Templates\1_Display_Website.pb
• CrWG Templates\2_Navigate_Website.pb
• CrWG Templates\3_Debug_Events.pb
• CrWG Templates\4_Callback_Events.pb

PureBasic WebGadget
• Combined the PureBasic WebGadget with the CrWG Framework.
• Checkout the Chrome DevTools Protocol website for advanced features.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

Updated:
Added ChartJS.pb.
Added Google_Maps.pb.
Added Jam_Systems.pb.
Added Allow_Block_Website.pb.
Added x2_Navigate_Website.pb.
Added Capture_Screenshot.pb.

Capture Screenshot
Test the limits of this example:
1. Navigate to https://www.purebasic.com.
2. On the webpage click the News menu item.
3. Select the Full-Page program option.
4. Click the Capture Screenshot button.

Note: FREE executables were also updated.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

This final round of updates to the Chromium Framework greatly improves its usability for the beginner and expert alike.

As was mentioned in a previous post, the updated Framework now includes a wrapper combining the PureBasic WebGadget with the DevTools Protocol. This not only removes the need to Interface the WebView2 control for basic functionality, but exposes the Chrome API, opening access to an unlimited number of advanced features.

• The Chrome DevTools Protocol website contains all your documentation needs.
• In addition, two applications (Remote Command and DT Playground) were written to help users learn the extensive command set.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

Updated:
Added a custom Debug window.
All examples received a major rewrite.
Extensive improvements to the Framework.

Because the CrWG Framework was modified this is a recommended update.

Debug Window
• This should help with writing more complex Methods and Events.
• To use, just add the Constant #Cr_WebSocket_Enable_DevTools_Debugger = #True to the top of your program.
• See \CrWG Templates\3_Debug_Events.pb for a working example.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

Updated:
Improved the Debug Window.
Improved the Web Browser example/program.
Various improvements to numerous parts of the Framework.

Debug Window
Added Find Text, only available for the Windows OS; disabled in OSX and Linux.

Web Browser
Added a Context Menu to the Tabbar:
Open Detached Browser
Attach Disconnected Tab
Close All Except Active Tab
Improved the Context Menu (globe icon) located in the Address Bar.

Because the CrWG Framework was modified this is a recommended update.

Note: FREE executables were also updated.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

Updated:
Squashed a small bug.
Added a second Embed JavaScript example.
Improved the DT_Playground.pb example/program.

DT_Playground.pb
Modified the Runtime.evaluate example/option with an Async/Await and Promise script.

Note: See references\readme.txt for additional information.

The following Fetch/Await and Promise script can also be tested from DT_Playground.pb:
1. Make sure the Runtime.evaluate option is selected from the ComboBoxGadget.
2. Press the Sprocket button to open the Script window.
3. Replace the script with the code below.
• If executed from the DuckDuckGo website, it will fail due to the strict Content Security Policy.
• This can be bypassed by first executing the Page.setBypassCSP method.
• If you were on the DuckDuckGo website when the Command was executed, press the Refresh button to reload the page.
4. Right-mouse-click the EditorGadget to open a context-menu: Toggle Word Wrap for a better view of the returned data.

Code: Select all

fetch('https://mdn.github.io/learning-area/javascript/apis/fetching-data/can-store/products.json')
	.then(response => response.json())
	.then(json => JSON.stringify(json))
	.catch(error => error);
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

Updated:
Improved how commands are called.
Moved the Send and Receive WebSocket scripts to their own Include Files.
Added numerous Command Procedures to the Include File: Cr_WebSocket_Send.pbi.
Various improvements to the support programs: Remote Command and DT Playground.

Because the CrWG Framework was modified this is a recommended update.

Cr_WebSocket_Send.pbi
• Mandatory parameters are included with the Procedures.
• Optional parameters can be added dynamically through a List.
• Currently, 40 methods have been defined, but that's only a fraction of what’s available.

Note: For additional methods and parameters visit the Chrome DevTools Protocol website.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

Updated:
All of the Custom WebGadget examples received various improvements.
Some of the PureBasic WebGadget examples received minor improvements.
Improved how Command Line Switches are processed.
Minor improvements to the Framework.

Because the CrWG Framework was modified this is a recommended update.

Note: FREE executables were also updated.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

Updated:
Added Screencast_Nth_Frame.pb to the PureBasic WebGadget.
Added numerous Command Procedures to the Include File: Cr_WebSocket_Send.pbi.

Screencast_Nth_Frame.pb
I was surprised by how fast frames were processed to image, real-time sync.

Cr_WebSocket_Send.pbi
• Another 18 methods have been defined.
• Currently, there are a total of 58 methods, but that's only a fraction of what's available.

Note: For additional methods and parameters visit the Chrome DevTools Protocol website.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
User avatar
JHPJHP
Site Admin
Posts: 217
Joined: Wed Jun 21, 2023 10:48 am

Re: Update History

Post by JHPJHP »

Updated:
Improved the example Web_Browser.pb.
Various improvements to the Framework.

Because the CrWG Framework was modified this is a recommended update.

Note: FREE executables were also updated.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein
Locked