[Video] XType dont work on emulator?

If needed i can give the snipped code, but it’s just a while + xclick + type end.

Here is my problem.

edit : It’s only the delete key who dont work on bluestack, maybe from them. But if anyone has an solution…

1 Like

Bluestack is great for automating android apps/games with Ui.Vision!

It was very good that you uploaded a screencast. The video shows the issue:

You need to use ${KEY_BACKSPACE} to delete the characters you typed.

${KEY_DELETE} erases characters in front of the cursor (of which there are none here).

Another option would be to sent ${KEY_CTRL+KEY_A}${KEY_BACKSPACE}. It deletes everything in the input box:

bluestack automating android apps/games with Ui.Vision

{
  "Name": "bluestacktest1",
  "CreationDate": "2024-4-18",
  "Commands": [
    {
      "Command": "XClick",
      "Target": "dialog_dpi_168.png",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XType",
      "Target": "DeleteMeSoon",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "pause",
      "Target": "2000",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_CTRL+KEY_A}${KEY_BACKSPACE}",
      "Value": "",
      "Description": ""
    }
  ]
}