mirrored 20 minutes ago
0
tsuky_chenminor fix 2f87aae
{
  "id": "6ada715d-3aae-4a32-a6a7-429b2e43fb93",
  "snapshot": "libreoffice_writer",
  "instruction": "Copy the screenshot 1.png from the desktop to where my cursor is located",
  "source": "https://www.quora.com/How-do-you-insert-images-into-a-LibreOffice-Writer-document",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://drive.usercontent.google.com/download?id=1ebLG0gmqYv41ek4UmKWhFsxBnoUSGjKp&export=download&authuser=0&confirm=t&uuid=8f7d7bee-1fe4-4c4c-8b69-8aaf47199c57&at=APZUnTVYUvYTopUXCVs69QWWwPbq:1704173993139",
            "path": "/home/user/Desktop/Viewing_Your_Class_Schedule_and_Textbooks.docx"
          }
        ]
      }
    },
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://drive.usercontent.google.com/download?id=1-wYHrgPMZl5Y9Losd4AGkMVHWNU7Uemg&export=download&authuser=0&confirm=t&uuid=3bc52ab7-1739-407d-9b14-36c9305c973e&at=APZUnTW95CwED3zm5KRREFmO2mc2:1704952228530",
            "path": "/home/user/Desktop/1.png"
          }
        ]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "/home/user/Desktop/Viewing_Your_Class_Schedule_and_Textbooks.docx"
      }
    },
    {
      "type": "execute",
      "parameters": {
        "command": [
          "python",
          "-c",
          "import pyautogui; import time; time.sleep(5); pyautogui.press(\"down\", presses=8, interval=0.01); time.sleep(1); pyautogui.scroll(-2)"
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": [
    "libreoffice_writer"
  ],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "Viewing_Your_Class_Schedule_and_Textbooks.docx - LibreOffice Writer",
          "strict": true
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": [
            "python",
            "-c",
            "import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5); pyautogui.press('down'); time.sleep(0.5); pyautogui.press('enter');"
          ]
        }
      }
    ],
    "func": "compare_contains_image",
    "result": {
      "type": "vm_file",
      "path": "/home/user/Desktop/Viewing_Your_Class_Schedule_and_Textbooks.docx",
      "dest": "Viewing_Your_Class_Schedule_and_Textbooks.docx"
    },
    "expected": {
      "type": "cloud_file",
      "path": "https://drive.usercontent.google.com/download?id=1xbhlfqGrPutHHi2aHg66jwXD-yaZpe9j&export=download&authuser=0&confirm=t&uuid=802d477e-d97b-4641-84fb-9eaf8805c35c&at=APZUnTWS0KOqHCPnufPJfDEfGE2u:1706822844322",
      "dest": "Viewing_Your_Class_Schedule_and_Textbooks_Gold.docx"
    }
  }
}