Table of contents
...
The full path to the file to be run (by clicking on the "Select files" button (highlighted in a red square) a standard file search dialog will open on the computer)
If the specified file is not found, then the action will end with an error
Variable macros can be used
If the directory of the executable program is in the PATH environment variable , then you can specify not the full path to the file, but only its name (
notepad.exe
orcalc.exe
)
...
You can specify a fractional value.
...
This behavior can be disabled, described below.
Do not show program window
...
Example # 1. ImageMagick All parameters are hardcoded
...
Unfortunately, all run parameters did not fit on the screenshot
After executing this action, the result.gif file will appear on the desktop
...
In this example, the path to the folder with the executable file has been moved to a variable (for example, the template can run on different computers and each can have its own path).
All parameters were also moved to a variable (it was not necessary to save everything in one variable. You can create your own variable for each argument and list these variables in the Run parameters field)
The resulting file
result.gif is
saved in the same directory as the project file. ({-Project.Directory-}
- a system variable that stores the full path to the current project directory)
...
There is a script along the path C:\ZP\my_sript.py
, accepts two numbers at the input and multiplies them by each other, the response is returned to the console (in your case, the script can generate an image, text; or it can be a neural network that recognize the captcha; in general, whatever).
...
Specify C:\Users\user\AppData\Local\Programs\Python\Python38-32\python.exe
as the executable file (the path may differ on your computer).In the un parameters, the first thing is the path to the script (
C:\ZP\my_sript.py
), then two arguments (12 11).
After starting this action, the result will be written to the result variable - 132.
...