Hello everyone, I thought I'd share a little side project of mine - a screen-to-gif recorder. It's small (~ 100KB with no dependencies) and light, does just one thing, predictably and with minimum fuss - resize its window, point at where needed, hit F1 to start recording, hit it again to stop. This will generate a GIF and open it with a default GIF viewer, which would normally be a web browser. Here it is in action - https://swapped.cc/tmp/giffer-screencap.gif The binary is here - https://bvckup2.com/files/giffer-0.9.1.exe, EV signed Full release notes are here - https://gist.github.com/apankrat/14b28656236d78407b28aef3102cf72d I do a lot of screencaps, for bvckup2 dev log and what not, and needed something that worked well for my case. So as per usual instead of trying to find what's out there I just wrote the damn thing If anyone's got any thoughts or comments, bring them on.
It's a 64-bit executable indeed. Here's a 32-bit one - https://bvckup2.com/files/giffer-0.9.1-32.exe - completely untested though.
Resizing of the application window is sometimes difficult to achieve (moving of the mouse cursor along the border of the window = the mouse cursor icon doesn't change) And after some time the window looses the focus and clicking on the titlebar leads to nothing (the application cannot be selected)
Hmm. Does this happen right after the launch or after a capture session? There's really nothing fancy going on with the window or its message processing. It _is_ however created with "top-most" style...
After it has been launched it works, but after the windows has been resized a few times it seems to loose the focus. a) resizing of the application window a few times b) now i switch to a different application c) but switching back to giffer is hardly possible, the window stays unselected even after clicking on the titlebar. c1) a click on the application in the tasbar and now it looks like the window has been activated. c2) but a click on the title bar of the application window leads to a click on the underlying window but not Giffer.
Thanks, mood. Can you give this build a try as time permits - https://bvckup2.com/files/giffer-0.9.2.exe ? I changed it so that the window position is now saved lazily rather than immediately after each change. I suspect that was creating a lag in processing of some events and led to what you saw (I can't reproduce it though, even if using an older machine with a slowed disk).
With version 0.9.1 i was able to reproduce it each time. But the issue is fixed in v0.9.2 and i can't reproduce it anymore
Got few things fixed and improved - all shipped out with 0.9.4, https://bvckup2.com/files/giffer-0.9.4.exe The only outstanding issue is with not properly handling the case of recording window being partially off-screen. Will fix this shortly.