How to clear an input field value and store new value

how to clear an input field value and store a new value in a pop-up browser application

image

Overwrite it with type or Xtype command

Alternative solution is use Xtype with KEY_DEL

thanks for your time…need to phrase it like
once the pop-up came there is a number in input field like 5, i want change it to 30

image

what need to code? do i need to select that filed first or …

Here is a short video that shows @newuserkantu suggested solutions. I use a tripleclick to mark all text. Another approach would be to sent CTRL+A keystroke:

Image used:

image

Macro:

{
  "Name": "clear1",
  "CreationDate": "2021-11-2",
  "Commands": [
    {
      "Command": "XDesktopAutomation",
      "Target": "true",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XClickRelative",
      "Target": "excel_dpi_168.png",
      "Value": "#tripleclick",
      "Description": "Triple click to highlight all text"
    },
    {
      "Command": "XType",
      "Target": "${KEY_DEL}",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XType",
      "Target": "New text",
      "Value": "",
      "Description": ""
    }
  ]
}
1 Like