Xtype not working

Hello so I got a problem, I need to simulate user keyboard strokes. The goal is to indicate which project that needs to be chosen.

bug%20type

The screenshot is the state in which I am. I just use Xtype a value = “CS” but it doesn’t really type it, If I really press C on my keyboard it’s changing otherwise no. How should I proceed ? I can’t use tag as it’s dynamic IDs.

{
  "Command": "XClick",
  "Target": "projet.png",
  "Value": ""
},
{
  "Command": "XType",
  "Target": "",
  "Value": "CS"
}

Xtype working like a charm

Your macro code is wrong, fix it please

Read here how it works

https://ui.vision/docs/xclick

Two possible reasons:

(1) To simulate real keyboard presses use the key constants listed here: https://ui.vision/docs/xtype

So you in your case, try XType | ${KEY_C}${KEY_S}

(2) And/or: This is wrong for sure:

{
  "Command": "XType",
  "Target": "",
  "Value": "CS" <=== NOT here!
}

This is correct:

{
  "Command": "XType",
  "Target": "CS", <=== here!
  "Value": ""
}

Thanks for the answer, the second point was the problem.

What is this code

{
  "Command": "XType",
  "Target": "CS", <=== here!
  "Value": ""
}

CS What locator is ?