Create custom Kantu Command

I am wondering if it is possible to create custom kantu (selenium) commands? What I mean by this is that I notice many times I use the same couple commands in a row. At first I looked at creating a macro and then using the run command to call up that macro. The problem I have with that is that I can’t pass it a specific element. I’m wondering if there is a way to pass the run command a parameter (an element) or to create custom commands that take a parameter? If not do I have to set a variable and then call the run command?

Hi custom commands is not possibile in kantu but you can send value via cmd and grab it with the macro to elaborate it

Read this

https://ui.vision/docs#!cmd_var1

So I have the following script:

{
“Name”: “testCaller”,
“CreationDate”: “2019-11-7”,
“Commands”: [
{
“Command”: “run”,
“Target”: “test”,
“Value”: “This was a passed variable”
}
]
}

{
“Name”: “test”,
“CreationDate”: “2019-11-7”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://www.google.com/”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “name=q”,
“Value”: “”
},
{
“Command”: “type”,
“Target”: “name=q”,
“Value”: “${!cmd_var1}”
}
]
}

The point of them is to pass a value to the macro test and then have it typed. Since I set the Value to “This was a passed variable” I would expect it to type that. When I run the following script rather then typing “This was a passed variable” the script types “NOT_SET”. Can you help me figure out what I’m doing wrong?

Use csv to pass the variable

https://ui.vision/rpa/docs/selenium-ide/csvread

Does that mean it is not possible to pass variables using cmd_var? If so it is a huge hassle to have to create a csv and then read it every time you want to pass a parameter.

If you do not explain well what you want to do you can not find a solution, write well what you need to do, indicate urls and images so you can understand, some things can be realized in a better way than you think.