/
Open the Calculator App and enter values
Open the Calculator App and enter values
Home | Categories | How-to-Articles | Command Reference | Examples | Troubleshooting | Cognillo.com
Use this page to find example workflows for Genta Automation.
Script
This example will open Windows Calculator, enter some values to calculate, and write to the log.
$calc = "Calc.exe"
Prompt User "Please enter number to subtract" $number3 -number
Prompt User "Enter first number" $number1 -number
Prompt User "Enter second number" $number2 -number
Open $calc -delay(5)
//If you need to press a key combination, or a single key, use the "Press" command
Press "{$number1}"
Press "+"
Press "{$number2}"
Press "-"
Press "{$number3}"
Press "="
Show Message Box "Calculated some values using 'Press' command. For {$number1}, {$number2} or {$number3}"
//You can write to the Logs to keep track of what is occuring during a workflow
Log "Calculated some values using 'Press' command. For {$number1}, {$number2} or {$number3}"
//You can use Pause to pause a workflow before the next step
Pause
//You can kill a process or close it by using the process name
Kill Process "CalculatorApp"
Log "CalculatorApp has been closed"
//You can show variable values in notifications such as the toast notification below
$CalcResult = "Successfully Calculated"
Log $CalcResult
Related Articles
Filter by label
There are no items with the selected labels at this time.
, multiple selections available,
Related content
Your First Workflow
Your First Workflow
More like this
Go to a website and enter values
Go to a website and enter values
More like this
Looping files in a folder
Looping files in a folder
Read with this
Simple While Loop
Simple While Loop
More like this
Loop by using @Split
Loop by using @Split
Read with this
Prompt user for input (file, text/string value)
Prompt user for input (file, text/string value)
More like this