Update chapter-05-gbdialog-reference.md
This commit is contained in:
parent
262dee2ef3
commit
f22b32ec6d
1 changed files with 32 additions and 1 deletions
|
@ -85,7 +85,7 @@ The following file types are loaded from a .gbdialog package: `.vbs`, `.vb`, `.b
|
|||
|
||||

|
||||
|
||||
### Use General Bots Web Automation
|
||||
### Using General Bots Web Automation
|
||||
|
||||
```
|
||||
mobile = "5521000000000"
|
||||
|
@ -105,6 +105,37 @@ SET page, "#captcha", captcha
|
|||
CLICK page, "#bt-login"
|
||||
TALK TO mobile, "Login done, thanks."
|
||||
```
|
||||
### Using General Bots SQL and dynamic image and chart generation
|
||||
|
||||
On the fly table as images.
|
||||
|
||||
```
|
||||
SET MAX LINES 1000
|
||||
data = FIND "data.xlsx",
|
||||
data = SELECT a, SUM(b) AS b FROM data GROUP BY a
|
||||
SET THEME dark
|
||||
png = data as IMAGE
|
||||
SEND FILE png
|
||||
```
|
||||
|
||||
On the fly charts
|
||||
|
||||
```
|
||||
data = [10, 20, 30]
|
||||
legends= "Steve;Yui;Carlos"
|
||||
img = CHART "pie", data, legends
|
||||
SEND FILE img
|
||||
SAVE img as "folder/filename.jpg"
|
||||
```
|
||||
|
||||
### Using General Bots Office templates
|
||||
|
||||
```
|
||||
data = FIND "Customer.xlsx", "Idade=25"
|
||||
doc = TEMPLATE "template.docx" WITH data
|
||||
SAVE doc AS "resume.docx"
|
||||
SEND EMAIL "noreply@pragmatismo.io", "Subject", doc
|
||||
```
|
||||
|
||||
### Using POST data
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue