Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

3.0 KB
Raw Blame
{
  "id": "386dbd0e-0241-4a0a-b6a2-6704fba26b1c-WOS",
  "snapshot": "chrome",
  "instruction": "I am reading lecture note in PDF while a music video is running in VLC media player. But I find I need to switch to the player every time I need to pause/start. Could you help me change the setting to allow pausing the video using a keyboard shortcut without minimizing the PDF reader? I want to focus on the lecture note and don't be disturbed by the app switching.",
  "source": "https://superuser.com/questions/1708415/pause-and-play-vlc-in-background?rq=1",
  "_commments": "tools > preferences > hotkeys > play/pause action > click on its row under golobal colum, set a key > restart vlc",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/vlc/386dbd0e-0241-4a0a-b6a2-6704fba26b1c-WOS/config/lecture_pdf.pdf",
            "path": "C:\\Users\\Docker\\Downloads\\lecture.pdf"
          }
        ]
      }
    },
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/vlc/386dbd0e-0241-4a0a-b6a2-6704fba26b1c-WOS/config/Colorful-Flowers(chosic.com).mp3",
            "path": "C:\\Users\\Docker\\Downloads\\Colorful-Flowers.mp3"
          }
        ]
      }
    },
    {
      "type": "launch",
      "parameters": {
        "command": ["vlc", "--start-time=10", "C:\\Users\\Docker\\Downloads\\Colorful-Flowers.mp3"]
      }
    },
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\Docker\\Downloads\\lecture.pdf"
      }
    },
    {
      "type": "activate_window",
      "parameters": {
        "window_name": "lecture.pdf — 6.006 Introduction to Algorithms, Lecture 2: Data Structures",
        "strict": true
      }
    },
    {
      "type": "sleep",
      "parameters": {
        "seconds": 0.5
      }
    },
    {
      "type": "execute",
      "parameters": {
        "command": ["python", "-c", "import pyautogui; pyautogui.press('f11');"]
      }
    },
    {
      "type": "execute",
      "parameters": {
        "command": [
          "python",
          "-c",
          "import pyautogui; import time; pyautogui.click(960, 540); time.sleep(0.5);"
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": ["vlc"],
  "evaluator": {
    "postconfig": [
      {
        "type": "launch",
        "parameters": {
          "command": ["powershell", "-Command", "Stop-Process", "-Name", "vlc"]
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 1
        }
      },
      {
        "type": "launch",
        "parameters": {
          "command": "vlc"
        }
      }
    ],
    "func": "check_global_key_play_pause",
    "expected": {
      "type": "rule",
      "rules": {
        "expected_global_key_play_pause": 1
      }
    },
    "result": {
      "type": "vlc_config",
      "dest": "vlcrc"
    }
  }
}