I recently installed Snagit, take screenshots. There are many options for transferring screenshots to programs, for example, to a Word.
How to write a program so that you can transfer a picture to it?
In general, I want the following (where just exporting to a Word won't work):
I get on an Internet ... suddenly I liked the image; the combination of the screenshot key is sent to the program and at the same time more parameters are written to the database (for example, a theme, tags, etc., which I created in advance).
As a result, I would like to have the following in the database: the topic (label, category, note, etc.) and the embedded image file (in the blob field or a link to the file)

Tell me how to do this.
Thank.

  • one
    > I get on an Internet ----> are recorded I, of course, not Grammar nazi, but I could not pass by. - teanYCH

1 answer 1

Options:

  • run the program with arguments (path to the screen file and tags), process them (write to the database) and immediately close the program.
  • the program is constantly hanging in the memory, keeps track of the key combination for taking off the screen, makes a screen, opens a dialog box with a prompt to enter tags and saves a screen with tags to the database.
  • I wanted to indicate a “such and such” label, and then clicked with a snapshot, and he would transmit to the program, which would be launched in the background, and at the same time not be distracted. And then I went in - and there is a list of photos with tags. Just how to do it. I can’t find examples. - Rakzin Roman