Home News DOC Class DL Others Rice
Home
Cooker

About Cooker.

Cooker is an application for manipulating web pages. You can freely execute JavaScript on the web page.

You can output the JavaScript execution result to an external file or database.


Cooker Ver 3.0.0.0 has the following features.

Microsoft.WebView2.FixedVersionRuntime.89.0.774.45 is used as the HTML rendering engine. That is, it works as a browser compatible with Microsoft Edge version 89.0.774.45.

It is built for the .NET Framework Ver 4.7.2.

It corresponds to Rice Ver 1.1.1.0.

There are 32-bit and 64-bit versions.

Classes to handle the SQLite database is prepared as Rice standard class. You can save the JavaScript execution result in an external database.

Features such as text file I / O and file manipulation are included in the distribution archive as dll files. You can flexibly extend the functionality by adding and updating .dll files.

Rice

Cooker uses two languages, JavaScript and Rice, to manipulate web pages.

JavaScript is responsible for manipulating web pages.

Rice is responsible for interface between web pages and external.

For more information about the Rice language, please refer to the link below.

Installation and uninstallation.

Installation

The Cooker is distributed as a 7z format self-extracting archive. If you execute the downloaded .exe file, the directory where the necessary files are unpacked will be generated.

Cooker.exe in the directory is the body of Cooker. And the rendering engine is unpacked in the webview2.runtime subdirectory.

Cooker does not depend on external files and does not use the registry. That is, Cooker is a portable application.

Uninstallation

Special uninstallation is not necessary. Please delete the files created by the installation and uninstallation will be completed.

How to use Cooker.

Cooker is an application for manipulating web pages. Page manipuration is performed by the script written in Rice.

While the actual operation inside the page is performed by JavaScript, the entire control including the execution of JavaScript is performed by Rice.

In other words, using Cooker is equivalent to running Rice script.

Some points to keep in mind when running a Rice script on the Cooker are shown below.

.cook file

The Rice source file that is the entry point of execution with Cooker must have the extension ".cook". Cooker determines whether it is a Rice source file for Cooker by extension.

Rice source file which does not become the entry point of execution has no restriction on the extension.

Please refer to the following link for the requirements that Rice source files should have.


The requirements that must be met with source file.

The .cook file must have a definition for the main class, and the main class must have a definition for the "start()" method.

The "open method void start()" method of the main class becomes the entry point of Cooker's Rice code execution.

Please refer to the following link for the entry point of Cooker's Rice code execution.


Minimum Rice program structure
entry point

How to run the Rice program

There are four way that run the Rice program on the Cooker.

The first way is to drop a .cook file to Cooker's icon.

The second way is to drop a .cook file to the script tile.

The third way is to select a .cook file from the file selection dialog.

The fourth way is a shortcut key.

First

It drop the .cook file to Cooker's icon.

It can also be executed by calling the Cooker with the path of the .cook file as an argument from the command prompt.

Second

After launching Cooker, drop the .cook file on the script tile.

Script tile is colored area on the right side of the window. Drag and drop the .cook file from Explorer here to run the program.

Script tile

Third

After launching Cooker, select the .cook file from the file selection dialog.

The file selection dialog will open by pressing the Ctrl + R keys or clicking the script tile.

file selection dialog

Fourth

In addition to the above Ctrl + R keys, you can also execute the program with Ctrl + E keys.

Ctrl + E is a program rerun. Runs the last execution program again.

Copyright © Cooker All rights reserved.