CN113609083B - File storage method, device, electronic equipment and computer readable storage medium - Google Patents
File storage method, device, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN113609083B CN113609083B CN202110893041.8A CN202110893041A CN113609083B CN 113609083 B CN113609083 B CN 113609083B CN 202110893041 A CN202110893041 A CN 202110893041A CN 113609083 B CN113609083 B CN 113609083B
- Authority
- CN
- China
- Prior art keywords
- file
- digital content
- image
- software
- content generating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/122—File system administration, e.g. details of archiving or snapshots using management policies
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application provides a file storage method, a file storage device, electronic equipment and a computer readable storage medium, and relates to the field of data storage. The method comprises the following steps: receiving a connection instruction input by a user, wherein the connection instruction is used for indicating digital content generating software which needs to establish communication connection, and preloading a target file to be saved in the digital content generating software; establishing communication connection between file management software and digital content generation software according to the connection instruction; and responding to a file saving instruction input by a user aiming at the digital content generating software, calling an image intercepting command in the digital content generating software to intercept an image in a target file, and saving the image as an icon of the target file to a preset catalog. The file storage method provided by the embodiment of the application can automatically and conveniently store the images in the art file as the icons of the art file in the storage process of the art file, and is beneficial to improving the use experience of users.
Description
Technical Field
The present application relates to the field of data storage, and in particular, to a method and apparatus for storing a file, an electronic device, and a computer readable storage medium.
Background
In the art production process using DDC (Digital Content Creation, digital content generation) software, a large number of process files and final files are generated, and in order to improve the efficiency of searching for these art files, it is generally preferable for users to screen desired files by images in the art files rather than by names of the art files.
In the prior art, an art file generated by DDC software is generally managed by asset management software to save a screenshot in the art file as an icon of the art file. When the asset management software is used, firstly, a user needs to create a shared folder under a shared path, then manually copy pictures in the art file and the art file intercepted by the user into the shared folder, and finally, the right key menu can be provided by the asset management software to save the screenshot in the art file as an icon of the art file.
Therefore, the existing asset management software has a complex process of saving art files, and the user experience is more general.
Disclosure of Invention
The application aims to provide a file storage method, a file storage device, electronic equipment and a computer readable storage medium, which can automatically and conveniently store images in an art file as icons of the art file in the storage process of the art file, and are beneficial to improving the use experience of a user.
Embodiments of the application may be implemented as follows:
in a first aspect, the present application provides a method for storing a file, applied to file management software, the method comprising:
receiving a connection instruction input by a user, wherein the connection instruction is used for indicating digital content generating software which needs to establish communication connection, and preloading a target file to be saved in the digital content generating software;
establishing communication connection between file management software and digital content generation software according to the connection instruction;
and responding to a file saving instruction input by a user aiming at the digital content generating software, calling an image intercepting command in the digital content generating software to intercept an image in a target file, and saving the image as an icon of the target file to a preset catalog.
In an alternative embodiment, invoking an image capture command in the digital content generation software to capture an image in the target file and save the image as an icon of the target file to a preset directory, including:
if the file saving instruction indicates to intercept multi-frame images, a first image intercepting command in the digital content generating software is invoked to intercept multi-frame images in the target file, and the multi-frame images are converted into a dynamic image format and then saved as icons of the target file to a preset catalog.
In an alternative embodiment, invoking an image capture command in the digital content generation software to capture an image in the target file and save the image as an icon of the target file to a preset directory, including:
and if the file saving instruction indicates to intercept the single-frame image, invoking a second image intercepting command in the digital content generating software to intercept the single-frame image in the target file, and saving the single-frame image as an icon of the target file to a preset catalog.
In an alternative embodiment, establishing a communication connection between the file management software and the digital content generation software according to the connection instruction includes:
and if the digital content generating software indicated by the connection instruction supports communication connection, establishing communication connection between the file management software and the digital content generating software.
In an alternative embodiment, after receiving the connection instruction input by the user, the method further includes:
if the digital content generating software indicated by the connection instruction does not support communication connection, intercepting images in files loaded by the digital content generating software according to file storage instructions input by a user, and storing the images as icons of target files to a preset directory.
In an alternative embodiment, intercepting an image in a file loaded by the digital content generating software according to a file saving instruction input by a user, and saving the image as an icon of a target file to a preset directory, including:
and responding to the file storage instruction, acquiring a window handle of the digital content generation software, intercepting an image of the window handle, and storing the image of the window handle as an icon of the target file to a preset directory.
In an alternative embodiment, in response to the file save instruction, acquiring a window handle of the digital content generation software, and intercepting an image of the window handle, including:
and if the file saving instruction indicates to intercept the single-frame image, intercepting the single-frame image of the window handle.
In an alternative embodiment, in response to the file save instruction, acquiring a window handle of the digital content generation software, and intercepting an image of the window handle, including:
if the file saving instruction indicates to intercept the multi-frame image, intercepting the multi-frame image of the window handle, and converting the multi-frame image into a dynamic image format serving as the image of the window handle.
In an alternative embodiment, before the communication connection between the file management software and the digital content generation software is established according to the connection instruction, the method further includes:
And if the digital content generating software supports communication connection, configuring a communication script for opening the communication interface for the digital content generating software according to the communication interface information of the digital content generating software.
In an alternative embodiment, establishing a communication connection between the file management software and the digital content generation software according to the connection instruction includes:
according to the connection instruction, running a communication script to open a communication interface of the digital content generation software;
and establishing communication connection between the file management software and the digital content generation software through a communication interface.
In an alternative embodiment, before the communication connection between the file management software and the digital content generation software is established according to the connection instruction, the method further includes:
if the digital content generating software supports communication connection, the digital content generating software configures an image intercepting command;
an environment variable is configured for the image capture command, the environment variable being used to provide a call path for invoking the image capture command.
In an alternative embodiment, in response to a file save instruction input by a user for digital content generation software, invoking an image capture command in the digital content generation software, including:
and responding to a file saving instruction input by a user aiming at the digital content generating software, and calling an image intercepting command in the target digital content generating software through a calling path.
In an alternative embodiment, the method further comprises:
monitoring file creation behaviors, file modification behaviors, file moving-in or moving-out behaviors and deleting behaviors under a preset directory to generate monitoring results;
and responding to a storage instruction of a user for the target file, and refreshing display contents in a display interface of the file management software according to the monitoring result.
In an alternative embodiment, refreshing display content in a display interface of the file management software according to the monitoring result includes:
if the file creating behavior exists under the preset directory, displaying the created file corresponding to the file creating behavior in a display interface of the file management software;
if the file modification behavior exists under the preset directory, displaying a modification file corresponding to the file modification behavior in a display interface of the file management software;
if the file moving-in behavior exists under the preset directory, displaying the moving-in file corresponding to the file moving-in behavior in a display interface of the file management software;
if the file moving-out behavior or the file deleting behavior exists in the preset directory, deleting the moving-out file corresponding to the file moving-out behavior or the deleting file corresponding to the file deleting behavior from the display interface of the file management software.
In a second aspect, the present application provides a file storing apparatus, for use in file management software, the apparatus comprising:
the receiving module is used for receiving a connection instruction input by a user, wherein the connection instruction is used for indicating digital content generating software which needs to establish communication connection, and a target file to be saved is preloaded in the digital content generating software;
the connection module is used for establishing communication connection between the file management software and the digital content generation software according to the connection instruction;
and the screenshot module is used for responding to a file saving instruction input by a user aiming at the digital content generating software, calling an image intercepting command in the digital content generating software to intercept the image in the target file and saving the image as an icon of the target file to a preset catalog.
In a third aspect, the present application provides an electronic device, including: the system comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium are communicated through the bus, and the processor executes the machine-readable instructions to execute steps of any method in the previous embodiment.
In a fourth aspect, the application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods of the previous embodiments.
According to the file saving method, device, electronic equipment and computer readable storage medium, through establishing communication connection between the file management software and the digital content generation software, when a user inputs a file saving instruction to save a file, images in the file can be automatically intercepted, the images are saved as icons of target files to a preset directory, manual screenshot of the user is not needed, the operation process is simple and convenient, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for saving files according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an input mode of a file save instruction according to an embodiment of the present application;
FIG. 3 is a diagram illustrating a selection of screenshot sizes according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a screenshot selecting mode according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a file storage device according to an embodiment of the present application;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present application, it should be noted that, if the terms "upper", "lower", "inner", "outer", and the like indicate an azimuth or a positional relationship based on the azimuth or the positional relationship shown in the drawings, or the azimuth or the positional relationship in which the inventive product is conventionally put in use, it is merely for convenience of describing the present application and simplifying the description, and it is not indicated or implied that the apparatus or element referred to must have a specific azimuth, be configured and operated in a specific azimuth, and thus it should not be construed as limiting the present application.
Furthermore, the terms "first," "second," and the like, if any, are used merely for distinguishing between descriptions and not for indicating or implying a relative importance.
It should be noted that the features of the embodiments of the present application may be combined with each other without conflict.
Before the embodiments of the present application are specifically described, application scenarios of the present application will be described.
In the art manufacturing process using DDC (Digital Content Creation, digital content generation) software, a large number of process files and final files are generated, and regardless of whether the naming of these files is standard, users generally prefer to filter images in art files to improve the search efficiency compared to files required by name screening of art files. In the prior art, an art file generated by DDC software is generally managed by asset management software to save a screenshot in the art file as an icon of the art file. When the asset management software is used, firstly, a user needs to create a shared folder under a shared path, then manually copy pictures in the art file and the art file intercepted by the user into the shared folder, and finally, the right key menu can be provided by the asset management software to save the screenshot in the art file as an icon of the art file.
Therefore, the existing asset management software has a complex process of saving art files, and the user experience is more general.
In order to solve the problem, the application provides a file storing method, a file storing device, electronic equipment and a computer readable storage medium, which can automatically and conveniently store images in an art file as icons of the art file in the storing process of the art file, and are beneficial to improving the use experience of users.
It should be noted that, in the embodiment of the present application, the file management software, i.e., the asset management software, the digital content generating software may be Maya, 3DsMax, substance Painter, ZBrush, etc., or may be Cinema 4D, rhinoceros, blender, sketchUp, etc., which is not limited in this aspect of the present application. The file management software is used for managing the art file generated by the digital content generating software in the art making process, for example, the image in the art file is stored as an icon of the art file.
Referring to fig. 1, the present application provides a file saving method, applied to file management software, comprising:
s101: and receiving a connection instruction input by a user, wherein the connection instruction is used for indicating digital content generating software which needs to establish communication connection, and the digital content generating software is preloaded with a target file to be saved.
Alternatively, a selection control may be provided for the user, and the user inputs a connection instruction by clicking the selection control, where the digital content generating software indicated by the connection instruction and required to establish a communication connection generates software for the digital content that is recently opened by the user. For example, the selection control is a button identified as "C", the digital content generation software that the user has last opened is Maya, and the user inputs a connection instruction by clicking the button identified as "C", the digital content generation software indicated by the connection instruction that needs to establish a communication connection is Maya.
Optionally, a plurality of selection controls may also be provided for the user, where each selection control corresponds to one digital content generating software, and the user inputs a connection instruction by clicking the selection control, for example, the digital content generating software corresponding to the selection control selected by the user is Maya, and the digital content generating software indicated by the connection instruction and required to establish a communication connection and input by the user is Maya.
The target file to be saved is preloaded in the digital content generating software, namely, the target file to be saved is pre-opened in the digital content generating software.
S102: and establishing communication connection between the file management software and the digital content generation software according to the connection instruction.
Alternatively, the communication connection between the text management software and the digital content generation software may be established through a socket. For example, if the connection instruction indicates that the digital content generating software that needs to establish the communication connection is Maya, a socket server in Maya is opened, so that the communication connection between the file management software and Maya is established, so that the stability of the communication connection can be improved, and the use experience of the user can be improved.
Of course, the present application is not limited in this regard, and the communication connection between the file management software and the digital content generation software may also be established by WinSock.
In addition, if the communication connection between the file management software and the digital content generation software is established successfully, the button marked as C can be set to be green, and the name of the digital content generation software is displayed, so that a user can conveniently know the state of the communication connection and the name of the digital content generation software for establishing the communication connection, and the use experience of the user can be improved.
S103: and responding to a file saving instruction input by a user aiming at the digital content generating software, calling an image intercepting command in the digital content generating software to intercept an image in a target file, and saving the image as an icon of the target file to a preset catalog.
It should be noted that, the file saving instruction may be input by clicking the save or save in the digital content generating software by the user, or may be input by clicking the save or save provided by the file management software by the user, which is not limited in this application.
In addition, the preset directory may be a current directory where the target file is located, or may be a preset directory, which is not limited in the present application.
When receiving the option of clicking the save or save in the digital content generating software or the option of saving or saving provided by the file management software, the user invokes an image intercepting command in the digital content generating software so as to intercept the image in the target file and save the image as an icon of the target file to a preset directory. It should be noted that, the image capturing command in the digital content generating software may be configured in advance through a TG (TianGong LauncherPad, astronomical platform), where the TG is software that can enable a user to have the same software environment as a developer through configuring an environment variable or the like.
In addition, the art file, that is, the target file, generally includes multiple frames of images, alternatively, the first frame image of the target file may be captured, and the first frame image of the target file may be saved as an icon of the target file to a preset directory, which is, of course, only illustrative herein, and other frames of the target file may be captured.
According to the file saving method, device, electronic equipment and computer readable storage medium, through establishing communication connection between the file management software and the digital content generation software, when a user inputs a file saving instruction to save a file, images in the file can be automatically intercepted, the images are saved as icons of target files to a preset directory, manual screenshot of the user is not needed, the operation process is simple and convenient, and the use experience of the user is improved.
In an alternative embodiment, invoking an image capture command in the digital content generation software to capture an image in the target file and save the image as an icon of the target file to a preset directory, including: if the file saving instruction indicates to intercept multi-frame images, a first image intercepting command in the digital content generating software is invoked to intercept multi-frame images in the target file, and the multi-frame images are converted into a dynamic image format and then saved as icons of the target file to a preset catalog.
Referring to fig. 2, optionally, in response to a file saving instruction input by a user for digital content generating software, a size selection control, a sampling selection control and a saving control may be displayed to the user, referring to fig. 3, if the user clicks the size selection control, a drop-down menu of the size selection control is displayed, where the drop-down menu of the size selection control includes a plurality of size sub-controls, and the user may determine the size of an image to be intercepted by clicking a certain size sub-control; referring to fig. 4, if the user clicks the sampling selection control, a drop-down menu of the sampling selection control is displayed, where the drop-down menu of the sampling selection control includes a plurality of sampling sub-controls, and the user can determine a mode of capturing an image, for example, capturing multiple frames of images, capturing a single frame of image, and the like by clicking a certain sampling sub-control. After the user determines the size sub-control and the sampling sub-control to be selected, a file saving instruction can be input by clicking the saving control, and the file saving instruction can indicate the size of the image to be intercepted and the mode of intercepting the image.
Optionally, if the file saving instruction indicates to intercept the multi-frame image, a first image intercept command in the digital content generating software is invoked to intercept the multi-frame image in the target file, and the multi-frame image is converted into a dynamic image format and then saved as an icon of the target file to a preset directory. The first image capturing command in the digital content generating software may be configured by TG in advance, which is not limited in the present application.
In addition, the dynamic image format is GIF (Graphics Interchange Format) format, the multi-frame image is converted into the GIF format and then stored as the icon of the target file, so that the user can know the content in the target file more clearly through the image of the target file, and the use experience of the user can be improved.
In an alternative embodiment, invoking an image capture command in the digital content generation software to capture an image in the target file and save the image as an icon of the target file to a preset directory, including: and if the file saving instruction indicates to intercept the single-frame image, invoking a second image intercepting command in the digital content generating software to intercept the single-frame image in the target file, and saving the single-frame image as an icon of the target file to a preset catalog.
Optionally, if the file saving instruction indicates to intercept the single-frame image, a second image intercept command in the digital content generating software is invoked to intercept the single-frame image in the target file, and the single-frame image is saved as an icon of the target file to a preset directory. The second image capturing command in the digital content generating software may be configured by TG in advance, which is not limited in the present application.
In addition, the single frame image in the intercepted target file may be any frame in the target file, for example, the first frame, the last frame, etc., which is not limited in the present application.
In an alternative embodiment, establishing a communication connection between the file management software and the digital content generation software according to the connection instruction includes: and if the digital content generating software indicated by the connection instruction supports communication connection, establishing communication connection between the file management software and the digital content generating software.
The digital content generation software includes a communication connection support and a communication connection non-support, for example, maya, 3DsMax, substance Painter, etc. all support a communication connection, and ZBrush does not support a communication connection. And if the digital content generating software indicated by the connection instruction supports communication connection, establishing communication connection between the file management software and the digital content generating software.
In an alternative embodiment, after receiving the connection instruction input by the user, the method further includes: if the digital content generating software indicated by the connection instruction does not support communication connection, intercepting images in files loaded by the digital content generating software according to file storage instructions input by a user, and storing the images as icons of target files to a preset directory.
Specifically, if the digital content generating software indicated by the connection instruction is ZBrush, capturing an image in a file loaded by the ZBrush according to a file storage instruction input by a user, and storing the image as an icon of a target file to a preset directory.
In an alternative embodiment, intercepting an image in a file loaded by the digital content generating software according to a file saving instruction input by a user, and saving the image as an icon of a target file to a preset directory, including: and responding to the file storage instruction, acquiring a window handle of the digital content generation software, intercepting an image of the window handle, and storing the image of the window handle as an icon of the target file to a preset directory.
It should be noted that, a mapping relationship between the name of the digital content generating software that does not support the communication connection and the window handle corresponding to the digital content generating software may be established, so, when the digital content generating software indicated by the connection instruction does not support the communication connection, the window of the digital content generating software indicated by the connection instruction may be simply and conveniently determined, so that it is convenient to intercept the window image in the file loaded by the digital content generating software, and save the image as the icon of the target file to the preset directory.
When a user inputs a file saving instruction, based on the mapping relation between the name of the digital content generating software which does not support communication connection and the window handle corresponding to the digital content generating software, the window handle of the digital content generating software which does not support communication connection, namely the window of the digital content generating software which does not support communication connection, can be determined, the image of the window handle also comprises the image in the target file, and the image of the window handle is taken as the icon of the target file to be saved to a preset catalog, so that the image in the art file generated by the digital content generating software which does not support communication connection can be saved as the icon of the art file simply and conveniently, and the use experience of the user and the application range of the file management software can be improved.
In an alternative embodiment, in response to the file save instruction, acquiring a window handle of the digital content generation software, and intercepting an image of the window handle, including: and if the file saving instruction indicates to intercept the single-frame image, intercepting the single-frame image of the window handle.
In an alternative embodiment, in response to the file save instruction, acquiring a window handle of the digital content generation software, and intercepting an image of the window handle, including: if the file saving instruction indicates to intercept the multi-frame image, intercepting the multi-frame image of the window handle, and converting the multi-frame image into a dynamic image format serving as the image of the window handle.
The specific image capturing process is similar to that of fig. 2, and the present application is not described herein.
In an alternative embodiment, before the communication connection between the file management software and the digital content generation software is established according to the connection instruction, the method further includes: and if the digital content generating software supports communication connection, configuring a communication script for opening the communication interface for the digital content generating software according to the communication interface information of the digital content generating software.
Specifically, the communication interface may be a socket server, a python2.7 script language may be used to configure a communication script for opening the socket server with Maya, a maxsscript script language is used to configure a communication script for opening the socket server in 3DsMax, and a python3.7 script language is used to configure a communication script for opening the socket server with Substance Painter.
The communication interface information of the digital content generating software may indicate related information of a socket server of the digital content generating software, which is not particularly limited in the present application.
In an alternative embodiment, establishing a communication connection between the file management software and the digital content generation software according to the connection instruction includes: according to the connection instruction, running a communication script to open a communication interface of the digital content generation software; and establishing communication connection between the file management software and the digital content generation software through a communication interface.
For example, when the connection instruction indicates that communication connection is established with Maya, the Maya starts a communication script of a socket server, that is, starts the socket server of Maya, and then communication connection between the file management software and Maya can be established through the socket server of Maya.
In an alternative embodiment, before the communication connection between the file management software and the digital content generation software is established according to the connection instruction, the method further includes: if the digital content generating software supports communication connection, the digital content generating software configures an image intercepting command; an environment variable is configured for the image capture command, the environment variable being used to provide a call path for invoking the image capture command.
Specifically, the software configuration image capture command and the environment variable for the image capture command may be generated by TG for digital content, but of course, the application is not limited thereto by other means.
The image capture command may specifically include a first image capture command for instructing capture of a multi-frame image and a second image capture command for instructing capture of a single-frame image.
By configuring environment variables for the image interception command, the image interception command can be simply and conveniently directly invoked in the follow-up process, and the use experience of a user is improved.
In an alternative embodiment, in response to a file save instruction input by a user for digital content generation software, invoking an image capture command in the digital content generation software, including: and responding to a file saving instruction input by a user aiming at the digital content generating software, and calling an image intercepting command in the target digital content generating software through a calling path.
When a user inputs a file saving instruction, an image intercepting command in target digital content generating software can be directly invoked through a calling path, so that images in target files are intercepted, and the images are saved as icons of the target files to a preset catalog.
In an alternative embodiment, the method further comprises: monitoring file creation behaviors, file modification behaviors, file moving-in or moving-out behaviors and deleting behaviors under a preset directory to generate monitoring results; and responding to a storage instruction of a user for the target file, and refreshing display contents in a display interface of the file management software according to the monitoring result.
In another optional implementation manner, real-time monitoring can be performed on file creation behavior, file modification behavior, file moving in or out behavior and deleting behavior under a preset directory, so as to generate a real-time monitoring result; and responding to a storage instruction of a user for the target file, and refreshing display contents in a display interface of the file management software according to the real-time monitoring result.
Specifically, the file creation behavior is to create a new file, the file modification behavior is to modify information such as names of the files, the file moving behavior is to move files of other directories into a preset directory, the file moving behavior is to move files under the preset directory into other directories, and the deleting behavior is to delete files under the preset directory.
By monitoring the file creation behavior, the file modification behavior, the file moving-in or moving-out behavior and the deleting behavior under the preset directory, the display content in the display interface of the file management software can be refreshed in time when the files of the preset directory change, so that a user can know the file change under the preset directory in time, and the use experience of the user can be improved.
In an alternative embodiment, refreshing display content in a display interface of the file management software according to the monitoring result includes: if the file creating behavior exists under the preset directory, displaying the created file corresponding to the file creating behavior in a display interface of the file management software; if the file modification behavior exists under the preset directory, displaying a modification file corresponding to the file modification behavior in a display interface of the file management software; if the file moving-in behavior exists under the preset directory, displaying the moving-in file corresponding to the file moving-in behavior in a display interface of the file management software; if the file moving-out behavior or the file deleting behavior exists in the preset directory, deleting the moving-out file corresponding to the file moving-out behavior or the deleting file corresponding to the file deleting behavior from the display interface of the file management software.
Therefore, the user can conveniently know file change under the preset directory in time, and the use experience of the user is improved.
Referring to fig. 5, the present application provides a file storing apparatus 50, applied to file management software, comprising:
the receiving module 501 is configured to receive a connection instruction input by a user, where the connection instruction is used to indicate digital content generating software that needs to establish a communication connection, and the digital content generating software is preloaded with a target file to be saved.
And the connection module 502 is used for establishing communication connection between the file management software and the digital content generation software according to the connection instruction.
The screenshot module 503 is configured to respond to a file saving instruction input by a user for the digital content generating software, call an image capturing command in the digital content generating software, so as to capture an image in the target file, and save the image as an icon of the target file to a preset directory.
In an optional embodiment, the screenshot module 503 is specifically configured to, if the file saving instruction indicates that the multi-frame image is to be intercepted, invoke a first image intercepting command in the digital content generating software to intercept the multi-frame image in the target file, and convert the multi-frame image into a dynamic image format and then save the dynamic image format as an icon of the target file to a preset directory.
In an alternative embodiment, the screenshot module 503 is further specifically configured to, if the file saving instruction indicates that the single-frame image is to be intercepted, invoke a second image intercepting command in the digital content generating software to intercept the single-frame image in the target file, and save the single-frame image as an icon of the target file to a preset directory.
In an alternative embodiment, the connection module 502 is specifically configured to establish a communication connection between the file management software and the digital content generating software if the digital content generating software indicated by the connection instruction supports the communication connection.
In an alternative embodiment, the screenshot module 503 is further specifically configured to intercept, if the digital content generating software indicated by the connection instruction does not support the communication connection, an image in a file loaded by the digital content generating software according to a file saving instruction input by a user, and save the image as an icon of the target file to a preset directory.
In an alternative embodiment, the screenshot module 503 is further specifically configured to obtain a window handle of the digital content generating software in response to the file saving instruction, intercept an image of the window handle, and save the image of the window handle as an icon of the target file to a preset directory.
In an alternative embodiment, the screenshot module 503 is further specifically configured to intercept the single frame image of the window handle if the file save instruction indicates that the single frame image is intercepted.
In an alternative embodiment, the screenshot module 503 is further specifically configured to intercept the multi-frame image of the window handle if the file saving instruction indicates that the multi-frame image is intercepted, and convert the multi-frame image into the dynamic image format as the image of the window handle.
In an alternative embodiment, the apparatus further comprises: and the first configuration module is used for configuring a communication script for opening the communication interface for the digital content generating software according to the communication interface information of the digital content generating software if the digital content generating software supports communication connection.
In an alternative embodiment, the connection module 502 is further specifically configured to run a communication script according to the connection instruction, so as to open a communication interface of the digital content generating software; and establishing communication connection between the file management software and the digital content generation software through a communication interface.
In an alternative embodiment, the apparatus further comprises: the second configuration module is used for generating a software configuration image interception command for the digital content if the digital content generation software supports communication connection; an environment variable is configured for the image capture command, the environment variable being used to provide a call path for invoking the image capture command.
In an alternative embodiment, the screenshot module 503 is further specifically configured to invoke, through a call path, an image capture command in the target digital content generating software in response to a file save instruction input by a user for the digital content generating software.
In an alternative embodiment, the apparatus further comprises: the monitoring module is used for monitoring file creation behaviors, file modification behaviors, file moving-in or moving-out behaviors and deleting behaviors under a preset directory and generating monitoring results; and responding to a storage instruction of a user for the target file, and refreshing display contents in a display interface of the file management software according to the monitoring result.
In an optional embodiment, the monitoring module is specifically configured to display, if a file creation behavior exists in the preset directory, a created file corresponding to the file creation behavior in a display interface of the file management software; if the file modification behavior exists under the preset directory, displaying a modification file corresponding to the file modification behavior in a display interface of the file management software; if the file moving-in behavior exists under the preset directory, displaying the moving-in file corresponding to the file moving-in behavior in a display interface of the file management software; if the file moving-out behavior or the file deleting behavior exists in the preset directory, deleting the moving-out file corresponding to the file moving-out behavior or the deleting file corresponding to the file deleting behavior from the display interface of the file management software.
Referring to fig. 6, the present application provides an electronic device 60, comprising: a processor 601, a storage medium 602, and a bus 603, the storage medium 602 storing machine-readable instructions executable by the processor 601, when the electronic device 60 is operating, communicating with the storage medium 602 via the bus 603, the processor 601 executing machine-readable instructions to perform the steps of a method as in any of the previous embodiments.
The application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of any of the methods of the previous embodiments.
According to the file saving method, device, electronic equipment and computer readable storage medium, through establishing communication connection between the file management software and the digital content generation software, when a user inputs a file saving instruction to save a file, images in the file can be automatically intercepted, the images are saved as icons of target files to a preset directory, manual screenshot of the user is not needed, the operation process is simple and convenient, and the use experience of the user is improved.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods according to the embodiments of the application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present application should be included in the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (17)
1. A method for storing a file, the method being applied to file management software, the method comprising:
receiving a connection instruction input by a user, wherein the connection instruction is used for indicating digital content generating software needing to establish communication connection, and the digital content generating software is preloaded with a target file to be saved;
establishing communication connection between the file management software and the digital content generation software according to the connection instruction;
and responding to a file saving instruction input by a user aiming at the digital content generating software, calling an image intercepting command in the digital content generating software to intercept an image in the target file, and saving the image as an icon of the target file to a preset catalog.
2. The method of claim 1, wherein said establishing a communication connection of said file management software with said digital content generation software in accordance with said connection instruction comprises:
And if the digital content generating software indicated by the connection instruction supports communication connection, establishing communication connection between the file management software and the digital content generating software.
3. The method of claim 2, wherein invoking the image capture command in the digital content generation software to capture the image in the target file and save the image as an icon of the target file to a preset directory comprises:
and if the file saving instruction indicates to intercept multi-frame images, invoking a first image intercepting command in the digital content generating software to intercept the multi-frame images in the target file, converting the multi-frame images into a dynamic image format, and then saving the multi-frame images as icons of the target file to a preset catalog.
4. The method of claim 2, wherein invoking the image capture command in the digital content generation software to capture the image in the target file and save the image as an icon of the target file to a preset directory comprises:
and if the file saving instruction indicates to intercept the single-frame image, invoking a second image intercepting command in the digital content generating software to intercept the single-frame image in the target file, and saving the single-frame image as an icon of the target file to a preset catalog.
5. The method of claim 1, wherein after receiving the user-entered connection instruction, the method further comprises:
and if the digital content generating software indicated by the connection instruction does not support communication connection, intercepting an image in a file loaded by the digital content generating software according to a file storage instruction input by a user, and storing the image as an icon of the target file to a preset catalog.
6. The method according to claim 5, wherein capturing the image in the file loaded by the digital content generating software according to the file saving instruction input by the user, and saving the image as the icon of the target file to a preset directory, comprises:
and responding to the file storage instruction, acquiring a window handle of the digital content generation software, intercepting an image of the window handle, and storing the image of the window handle as an icon of the target file to a preset directory.
7. The method of claim 6, wherein said retrieving a window handle of said digital content generation software and intercepting an image of said window handle in response to said file save instruction comprises:
And if the file storage instruction indicates that the single-frame image is intercepted, intercepting the single-frame image of the window handle.
8. The method of claim 6, wherein said retrieving a window handle of said digital content generation software and intercepting an image of said window handle in response to said file save instruction comprises:
and if the file saving instruction indicates to intercept multi-frame images, intercepting the multi-frame images of the window handle, and converting the multi-frame images into a dynamic image format to serve as images of the window handle.
9. The method according to any one of claims 1-8, wherein before establishing a communication connection between the file management software and the digital content generation software according to the connection instruction, further comprising:
and if the digital content generating software supports communication connection, configuring a communication script for opening a communication interface for the digital content generating software according to the communication interface information of the digital content generating software.
10. The method of claim 9, wherein said establishing a communication connection between said file management software and said digital content generation software in accordance with said connection instruction comprises:
According to the connection instruction, the communication script is operated to open a communication interface of the digital content generation software;
and establishing communication connection between the file management software and the digital content generation software through the communication interface.
11. The method according to any one of claims 1-8, wherein before establishing a communication connection between the file management software and the digital content generation software according to the connection instruction, further comprising:
if the digital content generating software supports communication connection, configuring the image intercepting command for the digital content generating software;
and configuring an environment variable for the image interception command, wherein the environment variable is used for providing a calling path for calling the image interception command.
12. The method of claim 11, wherein invoking the image capture command in the digital content generation software in response to a file save instruction entered by a user for the digital content generation software comprises:
and responding to a file saving instruction input by a user aiming at the digital content generating software, and calling the image intercepting command in the digital content generating software through the calling path.
13. The method according to claim 1, wherein the method further comprises:
monitoring file creation behaviors, file modification behaviors, file moving-in or moving-out behaviors and deleting behaviors under the preset directory to generate monitoring results;
and responding to a storage instruction of a user for the target file, and refreshing display contents in a display interface of the file management software according to the monitoring result.
14. The method of claim 13, wherein refreshing the display content in the display interface of the file management software according to the listening result comprises:
if the file creating behavior exists under the preset directory, displaying the created file corresponding to the file creating behavior in a display interface of the file management software;
if the file modification behavior exists in the preset directory, displaying a modification file corresponding to the file modification behavior in a display interface of the file management software;
if the file moving-in behavior exists under the preset directory, displaying the moving-in file corresponding to the file moving-in behavior in a display interface of the file management software;
if the file moving-out behavior or the file deleting behavior exists in the preset directory, deleting the moving-out file corresponding to the file moving-out behavior or the deleting file corresponding to the file deleting behavior from the display interface of the file management software.
15. A file saving apparatus for use with file management software, said apparatus comprising:
the receiving module is used for receiving a connection instruction input by a user, wherein the connection instruction is used for indicating digital content generating software needing to establish communication connection, and a target file to be saved is preloaded in the digital content generating software;
the connection module is used for establishing communication connection between the file management software and the digital content generation software according to the connection instruction;
and the screenshot module is used for responding to a file saving instruction input by a user aiming at the digital content generating software, calling an image intercepting command in the digital content generating software to intercept the image in the target file and saving the image as an icon of the target file to a preset catalog.
16. An electronic device, the electronic device comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is operating, the processor executing the machine-readable instructions to perform the steps of the method of any of claims 1-14.
17. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the method according to any of claims 1-14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110893041.8A CN113609083B (en) | 2021-08-04 | 2021-08-04 | File storage method, device, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110893041.8A CN113609083B (en) | 2021-08-04 | 2021-08-04 | File storage method, device, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113609083A CN113609083A (en) | 2021-11-05 |
CN113609083B true CN113609083B (en) | 2023-08-11 |
Family
ID=78339566
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110893041.8A Active CN113609083B (en) | 2021-08-04 | 2021-08-04 | File storage method, device, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113609083B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510313A (en) * | 2009-03-13 | 2009-08-19 | 腾讯科技(深圳)有限公司 | Method, system and medium player for generating GIF |
CN108279966A (en) * | 2018-02-13 | 2018-07-13 | 广东欧珀移动通信有限公司 | Webpage capture method, apparatus, terminal and storage medium |
CN111400244A (en) * | 2020-03-13 | 2020-07-10 | 网易(杭州)网络有限公司 | Method and device for resource batch processing, electronic equipment and storage medium |
CN112634131A (en) * | 2019-09-24 | 2021-04-09 | 脸谱公司 | Customized thumbnail image generation and selection for digital content |
CN113032070A (en) * | 2021-03-24 | 2021-06-25 | 山东英信计算机技术有限公司 | Host image intercepting method and device and related components |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080129758A1 (en) * | 2002-10-02 | 2008-06-05 | Harry Fox | Method and system for utilizing a JPEG compatible image and icon |
US20140195963A1 (en) * | 2011-12-16 | 2014-07-10 | Gehry Technologies | Method and apparatus for representing 3d thumbnails |
US11163787B2 (en) * | 2018-06-15 | 2021-11-02 | Dropbox, Inc. | Content capture across diverse sources |
-
2021
- 2021-08-04 CN CN202110893041.8A patent/CN113609083B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101510313A (en) * | 2009-03-13 | 2009-08-19 | 腾讯科技(深圳)有限公司 | Method, system and medium player for generating GIF |
CN108279966A (en) * | 2018-02-13 | 2018-07-13 | 广东欧珀移动通信有限公司 | Webpage capture method, apparatus, terminal and storage medium |
CN112634131A (en) * | 2019-09-24 | 2021-04-09 | 脸谱公司 | Customized thumbnail image generation and selection for digital content |
CN111400244A (en) * | 2020-03-13 | 2020-07-10 | 网易(杭州)网络有限公司 | Method and device for resource batch processing, electronic equipment and storage medium |
CN113032070A (en) * | 2021-03-24 | 2021-06-25 | 山东英信计算机技术有限公司 | Host image intercepting method and device and related components |
Also Published As
Publication number | Publication date |
---|---|
CN113609083A (en) | 2021-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10831453B2 (en) | Connectors framework | |
US10331765B2 (en) | Methods and apparatus for translating forms to native mobile applications | |
US20170214726A1 (en) | Open Collaboration Board with Multiple Integrated Services | |
US11385772B2 (en) | Attribute-based rules for displaying additional information | |
EP3654175A1 (en) | Terminal device, ui extension method, and ui extension program | |
AU2013213683B2 (en) | A method and system of application development for multiple device client platforms | |
US10437779B2 (en) | Intelligent interactive screen capture | |
EP3196783A1 (en) | Open collaboration board with multiple integrated services | |
US20160283083A1 (en) | Intelligent interactive screen capture | |
CN109582317B (en) | Method and apparatus for debugging hosted applications | |
EP3552376A1 (en) | Card-based information management method and system | |
WO2024011899A1 (en) | Widget loading method and apparatus, device, and storage medium | |
CN113360211A (en) | Loading display method based on control and related equipment | |
CN116126447A (en) | Information processing method, device, electronic equipment and computer readable medium | |
CN112558968B (en) | Method, device, equipment and storage medium for generating resource tree view | |
CN113268232B (en) | Page skin generation method and device and computer readable storage medium | |
CN112130734B (en) | Document management method and device based on floating layer technology | |
CN113609083B (en) | File storage method, device, electronic equipment and computer readable storage medium | |
US7237197B2 (en) | Method and system for presenting a video stream of a video streaming device | |
US7213033B2 (en) | Automatically populating an application's working directory with files having a specified type from other directory locations | |
CN108108077B (en) | Desktop management method and device | |
CN111796733B (en) | Image display method, image display device and electronic equipment | |
CN103914289A (en) | Desktop application access method and device | |
CN103917944B (en) | The system and method for dynamic more new equipment Chinese part folder content | |
CN113704593B (en) | Operation data processing method and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |