73 lines
2.1 KiB
JSON
73 lines
2.1 KiB
JSON
{
|
|
"id": "455d3c66-7dc6-4537-a39a-36d3e9119df7",
|
|
"snapshot": "libreoffice_impress",
|
|
"instruction": "Could you help me export an Impress file to a .png image file and save it as res.png at the same position as the file? ",
|
|
"source": "https://stackoverflow.com/questions/75626383/how-export-libreoffice-impress-to-image",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.usercontent.google.com/download?id=12MxMjw28_t1nTLihlDpToKebjsSDsjwx&export=download&authuser=0&confirm=t&uuid=1ccc1da0-d7c7-494f-a0e3-59eb55f54e3f&at=APZUnTXvNIRMsF2cjZuFxmQzByhC:1705253210291",
|
|
"path": "C:\\Users\\chenj\\wssf-project-plan-on-a-page.pptx"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "open",
|
|
"parameters": {
|
|
"path": "C:\\Users\\chenj\\wssf-project-plan-on-a-page.pptx"
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"libreoffice_impress"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "activate_window",
|
|
"parameters": {
|
|
"window_name": "wssf-project-plan-on-a-page - PowerPoint",
|
|
"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);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
}
|
|
],
|
|
"func": "compare_images",
|
|
"expected": {
|
|
"type": "cloud_file",
|
|
"path": "https://drive.usercontent.google.com/download?id=1XTDaQ2NlovrusKkuY6udi_BQfLwSP9th&export=download&authuser=0&confirm=t&uuid=d3c7883e-3cea-4bf3-8f83-d878622ee76d&at=APZUnTXQEnT0Gi4rB0oegvVGheyn:1705859805154",
|
|
"dest": "res_gold.png"
|
|
},
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "C:\\Users\\chenj\\res.png",
|
|
"dest": "res.png"
|
|
}
|
|
}
|
|
} |