I'm in the process of making a program... experimental.
And I encountered a problem (among others) : how to select an area on desktop with mouse ?
Happy i found a good solution here https://bbs.archlinux.org/viewtopic.php?id=85378
To test i follow the example to compil
Code: Select all
gcc -Wall -Wextra -lX11 -o selectarea draw.c -lX11
And next is simple, i modify printf function in source to make it compatible with ffmpeg tool, and recompil
Code: Select all
printf("-s %dx%d -i :0.0+%d,%d\n",rw,rh,rx,ry);
Next step, i imagine you want open the fresh capture with your best paint picture program with Puppy ?
Right, i try this
Code: Select all
ffmpeg -y -f x11grab `selectarea` -vframes 1 screenshot.png | xargs defaultpaint screenshot.png
You can download binary here or compil yourself.
(remove fake .zip extension)
Regard