Page 5 of 6

Re: Update History

Posted: Sat Sep 21, 2024 7:55 pm
by JHPJHP
Chromium Framework

Updated:
Added some documentation.
Minor improvements to the Framework.
Minor improvements to a couple examples.
Minor improvements to the following programs.
• Remote_Command.pb
• DT_Playground.pb
• Video_Player.pb
• Web_Browser.pb

Documentation
\PureBasic WebGadget\Shared Files\references\
Constants
Domains
Enumerations
Events
Procedures
Structures

Re: Update History

Posted: Sat Sep 28, 2024 12:12 am
by JHPJHP
Updated:
Added PureBasic WebGadget\Library Bootstrap\Speech_Recognition.pb.

Speech Recognition
• Basic example to demonstrate speech recognition.
• Added a button to return transcript to application.

Image

Re: Update History

Posted: Wed Oct 02, 2024 5:52 pm
by JHPJHP
Updated:
Various improvements to the following Standalone program:
• Remote_Command.pb
Minor improvement to following Custom WebGadget examples:
• Execute_JavaScript.pb
• Google_Maps.pb
Minor improvement to following Custom WebGadget programs:
• DT_Playground.pb
• Video_Player.pb
• Web_Browser.pb
Fixed an issue with the following PureBasic WebGadget example:
• Speech_Recognition.pb

Re: Update History

Posted: Sat Oct 05, 2024 12:56 am
by JHPJHP
Updated:
Added 3 additional Command Procedures: Total 75.
• Browser_GrantPermissions
• Browser_ResetPermissions
• Browser_SetPermission
Updated documentation.
Improved Live_Webcam.pb.
• Now uses the Browser_GrantPermissions command.
Improved Speech_Recognition.pb.
• Now uses the Browser_SetPermission command.

Command Procedures
Browser_GrantPermissions(Connection, EventID, Permissions.s)
Permissions: String Array granting specific permissions.
Browser_ResetPermissions(Connection, EventID)
• Reset all permissions.
Browser_SetPermission(Connection, EventID, Permission.s, Setting.s)
Permission: String Object setting an individual permission.
Setting: granted, denied, prompt.

Code: Select all

Permissions$ = "[" + #DQUOTE$ + "audioCapture" + #DQUOTE$ + "," + #DQUOTE$ + "videoCapture" + #DQUOTE$ + "]"
Browser_GrantPermissions(Connection, 10600, Permissions$)
Allowed Values
accessibilityEvents, audioCapture, backgroundSync, backgroundFetch, capturedSurfaceControl, clipboardReadWrite, clipboardSanitizedWrite, displayCapture, durableStorage, flash, geolocation, idleDetection, localFonts, midi, midiSysex, nfc, notifications, paymentHandler, periodicBackgroundSync, protectedMediaIdentifier, sensors, storageAccess, speakerSelection, topLevelStorageAccess, videoCapture, videoCapturePanTiltZoom, wakeLockScreen, wakeLockSystem, webAppInstallation, windowManagement.

Code: Select all

Permission$ = "{" + #DQUOTE$ + "name" + #DQUOTE$ + ":" + #DQUOTE$ + "microphone" + #DQUOTE$ + "}"
Browser_SetPermission(Connection, 10800, Permission$, "granted")
Allowed Values
geolocation, notifications, push, midi, camera, microphone, background-fetch, background-sync, persistent-storage, ambient-light-sensor, accelerometer, gyroscope, magnetometer, screen-wake-lock, nfc, display-capture, clipboard-read, clipboard-write, payment handler, idle-detection, periodic-background-sync, system-wake-lock, storage-access, window-management, local-fonts, top-level-storage-access, captured-surface-control, speaker-selection, keyboard-lock, pointer-lock, fullscreen, web-app-installation.

Re: Update History

Posted: Sun Oct 06, 2024 2:34 pm
by JHPJHP
Updated:
Added PureBasic WebGadget\Library Bootstrap\Language_Translator.pb.

Language Translator
• Basic example to demonstrate language translation using the Google Translate API.
• Added some custom icons, HTML code, CSS formatting and fixed a few JavaScript issues.

NOTE: Even though the example does not use Bootstrap, it was placed in this folder because all the examples share a common theme.

Image

Re: Update History

Posted: Sat Oct 26, 2024 11:55 am
by JHPJHP
Updated:
Added PureBasic WebGadget\Library QR Scanner\QR_Scanner.pb.

QR Scanner
• Basic example to demonstrate QR Code scanning from a webcam.
• Added some custom buttons, HTML code, CSS formatting and a small bit of JavaScript.

NOTE: Includes scanning from an image file.

Image

Re: Update History

Posted: Mon Oct 28, 2024 1:40 pm
by JHPJHP
Updated:
Added PureBasic WebGadget\CrWG Examples\Download_Progress.pb.
Added support for #PB_Any when creating a Cr_WebGadget.
Added 1 Command Procedure: Total 76.
Updated documentation.

Download Progress
1. Press the Navigate button.
2. Select a download link from the PureBasic website.
• The download will save to the Desktop; user-defined location.
• The download will display a filename, progress bar status and status text.
3. Select the Checkbox to disable downloading.

Image

Re: Update History

Posted: Sat Apr 19, 2025 3:40 pm
by JHPJHP
Updated:
Updated Framework.
Added PureBasic WebGadget\CrWG Examples\Authenticate_Basic_1.pb.
Added PureBasic WebGadget\CrWG Examples\Authenticate_Basic_2.pb.
Added PureBasic WebGadget\CrWG Examples\Authenticate_Form.pb.
Added 1 Command Procedure: Total 77.
Updated documentation.

Authenticate_Basic_1.pb and Authenticate_Basic_2.pb
Two different methods to automate (basic) server authentication.
• Authenticate_Basic_1.pb uses the Fetch Domain.
• Authenticate_Basic_2.pb uses the Network Domain.

Authenticate_Form.pb
• Simple JavaScript method to provide credentials and submit a form.
• Current configuration is setup to login to the PureBasic forum.

Re: Update History

Posted: Sun May 25, 2025 12:53 pm
by JHPJHP
Updated:
Updated Framework.
Added PureBasic WebGadget\CrWG Examples\Debugger_Set_Cookie.pb.
Added 3 Command Procedures: Total 80.
Updated documentation.

Re: Update History

Posted: Fri Jun 27, 2025 10:39 pm
by JHPJHP
Updated:
Updated Framework.
Added \CDP Standalone\Chromium\Remote Templates\Run_Chromium.pb.
Added \CDP Standalone\Mozilla Firefox\Remote Templates\Run_Firefox.pb.

Ubuntu 24.04.2:
• I finally got around to building my Linux VM and was able to test the Framework against the claims I made about it being cross platform.
• While most of the scripts and programs will only run in Windows due to the use of Win32 APIs, all the WebSocket commands that power the Framework are confirmed cross platform.

Run Chromium (tested on Linux):
1. Use the App Center to load the Chromium browser.
2. Execute the PureBasic script Run_Chromium.pb to open the browser with the required switches.
3. Execute the PureBasic script Remote_Screenshot.pb.

Run Firefox (tested on Windows & Linux):
1. Execute the PureBasic script Run_Firefox.pb to open the browser with the required options.
2. Execute the PureBasic script Remote_OuterHTML.pb.
3. Execute the PureBasic script Remote_Screenshot.pb.