Author Topic: Well this was fun...  (Read 2705 times)

0 Members and 1 Guest are viewing this topic.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Well this was fun...
« on: June 05, 2020, 03:44:19 pm »
I just redid a program I lost in May. It helps take the monotony out of using Paint.net, buy automatically cropping, resizing, naming, and saving images. I use the Windows Library functions to minimize my QB64 program, and then use the Windows SENDKEY function to simulate keyboard presses, along with _PRINTSCREEN to write components like size, save path and file name. No biggie in code size, less than 100 lines. I just haven't programmed anything in over a month, so it was nice to see I haven't went all Joe Biden in the upstairs department.

As to why I had to redo this program, well, funny story. For awhile, MicroThought went back to update notices with user control. Apparently they changed again, to just hijacking your system in sleep mode. I wish hibernate was never taken out, that's what I used in previous OS versions. Anyway, I had (6) QB64 programs lost. Some were saved, some not. I never worry about that, because Rob had the brilliant foresight to make the QB64 recovery function. Yep, perfect, got them all back, of course now I have to figure out what I want to do with name. In the process, I somehow closed the wrong window, without saving it. Oops, that was on me. I was 90% finished, and had to start all over, from scratch, today. Anyway, it just took a couple of hours, it was fun, and maybe I'll fiddle around with a couple of other QB64 projects, soon.

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline _vince

  • Seasoned Forum Regular
  • Posts: 422
    • View Profile
Re: Well this was fun...
« Reply #1 on: June 05, 2020, 04:04:22 pm »
It helps take the monotony out of using Paint.net, buy automatically cropping, resizing, naming, and saving images.

ImageMagick, https://imagemagick.org/ has a ton on command line tools for doing just that in any variant or combination you could think of.  For example:

http://www.imagemagick.org/Usage/resize/
http://www.imagemagick.org/Usage/crop/

I'd say it's one of the few very obvious cases where command line is a lot more efficient and convenient than the GUI equivalent