Pasting from Clipboard into field after typing

I’m trying to create a macro where it types “id:” into a text field and then pastes any text from the clipboard. I’ve got it doing that but it removes “id:” when it pastes from the clipboard. How can I get it to paste it right after instead.

This is my code:

{
“Name”: “Test”,
“CreationDate”: “2020-9-5”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://hiddenforprivacy.com”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “xpath=//[@id=“search-button”]/span",
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“search-button”]/span”,
“xpath=//button/span”,
“css=#search-button > span”
]
},
{
“Command”: “click”,
“Target”: “id=srch-term”,
“Value”: “”,
“Targets”: [
“id=srch-term”,
“name=srch-term”,
“xpath=//[@id=“srch-term”]",
“xpath=//input[@id=‘srch-term’]”,
“xpath=//input”,
“css=#srch-term”
]
},
{
“Command”: “type”,
“Target”: “id=srch-term”,
“Value”: “id:”,
“Targets”: [
“id=srch-term”,
“name=srch-term”,
"xpath=//
[@id=“srch-term”]”,
“xpath=//input[@id=‘srch-term’]”,
“xpath=//input”,
“css=#srch-term”
]
},
{
“Command”: “click”,
“Target”: “”,
“Value”: “${!clipboard}”
},
{
“Command”: “clickAndWait”,
“Target”: “xpath=//[@id=“search-icon”]/i",
“Value”: “”,
“Targets”: [
"xpath=//
[@id=“search-icon”]/i”,
“xpath=//i”,
“css=#search-icon > i”
]
}
]
}

This is my first time using this program, I used iMacro before and it stopped working and those people are completely rude on their forums. I hope it’s friendly over here. :slight_smile:

J

I figured it out. :tada: I feel like a genius :nerd_face:

This is for anyone in the future reading this with the same issue. My problem was I was trying to do this in two steps which was unnecessary and wasn’t giving me the results needed. I needed to do the typing and pasting in one command. Like this:

“Command”: “type”,
“Target”: “id=srch-term”,
“Value”: “id: ${!clipboard}”