94 lines
2.3 KiB
JSON
94 lines
2.3 KiB
JSON
{
|
|
"id": "f4aec372-4fb0-4df5-a52b-79e0e2a5d6ce",
|
|
"snapshot": "gimp",
|
|
"instruction": "Help me choose the yellow triangle and positioning it at the center of my picture.",
|
|
"source": "https://superuser.com/questions/612338/how-do-i-select-and-move-an-object-in-gimp",
|
|
"config": [
|
|
{
|
|
"type": "download",
|
|
"parameters": {
|
|
"files": [
|
|
{
|
|
"url": "https://drive.google.com/uc?export=download&id=1p0m5meh7NIT4v6hNdqJqK3GCcpZiMapB",
|
|
"path": "/home/user/Desktop/Triangle_On_The_Side.png"
|
|
},
|
|
{
|
|
"url": "https://drive.google.com/uc?export=download&id=1w7f2fW2mWkUbteQvQd-lepHzvBC9GaG_",
|
|
"path": "/home/user/Desktop/Triangle_On_The_Side.xcf"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "launch",
|
|
"parameters": {
|
|
"command": [
|
|
"gimp",
|
|
"/home/user/Desktop/Triangle_On_The_Side.xcf"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"trajectory": "trajectories/",
|
|
"related_apps": [
|
|
"gimp"
|
|
],
|
|
"evaluator": {
|
|
"postconfig": [
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.hotkey([\"shift\", \"ctrl\", \"e\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 0.5
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.write(\"Triangle_In_The_Middle\");pyautogui.press([\"enter\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 2
|
|
}
|
|
},
|
|
{
|
|
"type": "execute",
|
|
"parameters": {
|
|
"command": [
|
|
"python3",
|
|
"-c",
|
|
"import pyautogui; pyautogui.press([\"enter\"]);"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "sleep",
|
|
"parameters": {
|
|
"seconds": 5
|
|
}
|
|
}
|
|
],
|
|
"func": "check_triangle_position",
|
|
"result": {
|
|
"type": "vm_file",
|
|
"path": "/home/user/Desktop/Triangle_In_The_Middle.png",
|
|
"dest": "Triangle_In_The_Middle.png"
|
|
}
|
|
}
|
|
} |