CN110347995A - A kind of file saving method, device, equipment and storage medium - Google Patents

A kind of file saving method, device, equipment and storage medium Download PDF

Info

Publication number
CN110347995A
CN110347995A CN201910630692.0A CN201910630692A CN110347995A CN 110347995 A CN110347995 A CN 110347995A CN 201910630692 A CN201910630692 A CN 201910630692A CN 110347995 A CN110347995 A CN 110347995A
Authority
CN
China
Prior art keywords
editor
application program
target
shortcut key
screen picture
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.)
Granted
Application number
CN201910630692.0A
Other languages
Chinese (zh)
Other versions
CN110347995B (en
Inventor
宋大伟
张义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Yige Network Technology Co Ltd
Original Assignee
Suzhou Yige Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Yige Network Technology Co Ltd filed Critical Suzhou Yige Network Technology Co Ltd
Priority to CN201910630692.0A priority Critical patent/CN110347995B/en
Publication of CN110347995A publication Critical patent/CN110347995A/en
Application granted granted Critical
Publication of CN110347995B publication Critical patent/CN110347995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/60Type of objects
    • G06V20/62Text, e.g. of license plates, overlay texts or captions on TV images

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of file saving method, device, equipment and storage mediums.Wherein, file saving method, comprising: when reaching timer preset time, content, which carries out screenshot capture, to be shown to desktop, obtains screen picture;Image recognition, the active state of the editor of at least one of detection editor's class application program are carried out to the screen picture;If detecting that the editor of target editor's class application program is in active state, according to the type of the application program prestored and the mapping relations between shortcut key are saved, obtain target shortcut key corresponding with the target editor class application program;The operation that analog subscriber presses the target shortcut key is executed, to save to the content of edit in the editor.The technical solution of the embodiment of the present invention saves the timing of content of edit in preset kind application by the active state and corresponding preservation shortcut key, realization that identify the application program of preset kind.

Description

A kind of file saving method, device, equipment and storage medium
Technical field
The present embodiments relate to computer technologies more particularly to a kind of file saving method, device, equipment and storage to be situated between Matter.
Background technique
Currently, with the continuous development of science and technology, computer has become indispensable equipment, pole in people's daily life The earth facilitates the work and life of people.
However, in the use process of computer, often will appear application program lose suddenly respond so that dodge move back or The case where unexpected power down of computer is shut down, causes the vital document edited not save, leverages the work of people Efficiency.
In the prior art, such as some application programs such as Office, can self-setting automatically save the period, but this is only limited In a series of application programs that Office is included, and in all application programs that timing cannot be needed to automatically save user Appearance is automatically saved;In addition, having also appeared the content edited by timing acquisition user in the prior art, and delayed The preservation of the timing to user's content of edit may be implemented in the method for being stored to temporary buffer to realize timing preservation, this method, but To need to get through the interface for automatically saving application program and document to obtain the content of edit of user in a document, belong into Formula operation is invaded, information security issue is easy to appear.
Summary of the invention
The embodiment of the present invention provides a kind of file saving method, device, equipment and storage medium, passes through identification preset kind Application program active state and it is corresponding save shortcut key, realize that the timing to content of edit in preset kind application is protected It deposits.
In a first aspect, the embodiment of the invention provides a kind of file saving methods, which comprises
When reaching timer preset time, content, which carries out screenshot capture, to be shown to desktop, obtains screen picture;
Image recognition, the activity of the editor of at least one of detection editor's class application program are carried out to the screen picture State;
If detecting that the editor of target editor's class application program is in active state, according to the application journey prestored Mapping relations between the type and preservation shortcut key of sequence, it is quick to obtain target corresponding with the target editor class application program Key;
The operation that analog subscriber presses the target shortcut key is executed, to carry out to the content of edit in the editor It saves.
Second aspect, the embodiment of the invention also provides a kind of file save set, described device includes:
Screen picture obtains module, for showing that content carries out screen and cuts to desktop when reaching timer preset time Figure obtains screen picture;
Active state detection module, for carrying out image recognition to the screen picture, at least one of detection editor's class is answered With the active state of the editor of program;
Target shortcut key obtains module, if for detecting that the editor of target editor's class application program is in activity State obtains and the target editor then according to the mapping relations between the type of the application program prestored and preservation shortcut key The corresponding target shortcut key of class application program;
Content of edit preserving module presses the operation of the target shortcut key for executing analog subscriber, to the volume The content of edit collected in window is saved.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the file saving method that any embodiment of that present invention provides.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the file saving method that any embodiment of that present invention provides when the program is executed by processor.
The technical solution of the embodiment of the present invention, by showing that content is carried out to desktop when reaching timer preset time Screenshot capture obtains screen picture, and carries out image recognition, at least one of detection editor's class application program to the screen picture Editor active state, if detecting that the editor of target editor's class application program is in active state, root According to the mapping relations between the type and preservation shortcut key of the application program prestored, obtain and the target editor class application program Corresponding target shortcut key, the final operation for executing analog subscriber and pressing the target shortcut key, in the editor Content of edit is saved, and is realized without getting through editor's class using the interface with third-party application, can be answered preset kind It is timed the effect of preservation with middle content of edit, improves the safety of editor's information.
Detailed description of the invention
Fig. 1 is the flow chart of one of the embodiment of the present invention one file saving method;
Fig. 2 is the flow chart of one of the embodiment of the present invention two file saving method;
Fig. 3 is the flow chart of one of the embodiment of the present invention three file saving method;
Fig. 4 is the structural schematic diagram of one of embodiment of the present invention four file save set;
Fig. 5 is a kind of structural schematic diagram for equipment that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart of one of the embodiment of the present invention one file saving method, and the technical solution of the present embodiment is suitable The case where for pre-establishing the type of application program and saving mapping relations between shortcut key, this method can be saved by file Device executes, which can be realized by software and/or hardware, and can integrate in various general purpose computing devices, tool Body includes the following steps:
Step 110, when reaching timer preset time, to desktop show content carry out screenshot capture, obtain screen map Picture.
In the present embodiment, the interval time for needing user to be automatically saved previously according to actual demand, determination, and inciting somebody to action The time is set as after the count down time of timer, opens the timer, when timer reaches preset time, to working as Front desktop content carries out screenshot, to obtain whole show window included in current screen.Illustratively, if according to practical need It asks and determines that default editor's document needs preservation in 10 minutes primary, then set timer countdown to 10 minutes, whenever timer When countdown is 0, screen shot operation is carried out.
Step 120 carries out image recognition, editor's window of at least one of detection editor's class application program to the screen picture The active state of mouth.
In the present embodiment, by carrying out image recognition to the screen picture of interception, the editor for including in current screen is obtained The editor of class application program, and by the Application Type of above-mentioned editor identification current window, further judge Whether the application program for including in current screen belongs to preset editor's class application program.Wherein, preset editor's class application journey Sequence is that user is prespecified, needs to be timed the application automatically saved by file preservation function.
Illustratively, by the type of editor recognition application, it can be the task by identifying editor The suffix name of the application icon or filename that include in column carrys out recognition application type, for example, when knowing from editor It is clipped to the corresponding application icon with W printed words of word, then is matched the icon with the icon prestored, so that it is determined that currently Application Type in editing mode is word type.
If step 130 detects that the editor of target editor's class application program is in active state, basis is prestored Application program type and save shortcut key between mapping relations, obtain it is corresponding with the target editor class application program Target shortcut key.
In the present embodiment, before file opening saves function, by the application program for needing to automatically save and corresponding preservation Shortcut key is corresponding to be saved, and is stored in advance if the Application Type in editing mode recognized from screen picture belongs to Specified type application program, then from the Application Type that prestores and save in mapping relations file between shortcut key, Inquiry and the matched preservation shortcut key of current application program.Wherein, the corresponding preservation shortcut key of application program may be default Ctrl+S, it is also possible to the preservation shortcut key just for a certain application of user's self-setting.
Step 140 executes the operation that analog subscriber presses the target shortcut key, to the editor in the editor Content is saved.
In the present embodiment, after the corresponding preservation shortcut key of the application program that inquires be currently at editing mode, mould Quasi- user presses the operation of the target shortcut key, and realization saves the content of edit in editor.Illustratively, may be used To realize the guarantor to content of edit in text document by calling specified function to realize that analog subscriber presses the operation of Ctrl+S It deposits.
The technical solution of the embodiment of the present invention, by showing that content is carried out to desktop when reaching timer preset time Screenshot capture obtains screen picture, and carries out image recognition, at least one of detection editor's class application program to the screen picture Editor active state, if detecting that the editor of target editor's class application program is in active state, root According to the mapping relations between the type and preservation shortcut key of the application program prestored, obtain and the target editor class application program Corresponding target shortcut key, the final operation for executing analog subscriber and pressing the target shortcut key, in the editor Content of edit is saved, and is realized without getting through editor's class using the interface with third-party application, can be answered preset kind Content of edit in editor is timed the effect automatically saved, improves the safety of editor's information.
Embodiment two
Fig. 2 is the flow chart of one of the embodiment of the present invention two file saving method, and the present embodiment is in above-described embodiment On the basis of further refine, provide to the screen picture carry out image recognition, detection at least one of editor class application journey The specific steps and analog subscriber of the active state of the editor of sequence press screenshotss and save the specific of quick key operation Step.A kind of file saving method provided by Embodiment 2 of the present invention is illustrated below with reference to Fig. 2, comprising the following steps:
Step 210, when reaching timer preset time, by call JAVA Robot provide, be used for analog subscriber The api interface of physical button operation is pressed, analog subscriber presses screenshotss key, to show that content carries out screenshot capture to desktop.
Wherein, JAVA Robot refers to the Robot class provided in JAVA, the simulation for calling Robot class to provide in a program User presses the api interface of physical button operation, and the function of analog subscriber operation keyboard may be implemented.
In the present embodiment, after the time for reaching timer setting, can call the offer of Robot class is used for analog subscriber The api interface of physical button operation is pressed, realizes that analog subscriber presses the function of default screenshotss shortcut key, completes to current screen Screenshot.Illustratively, pre-set program calls Robot class in operation, and analog subscriber presses default screenshotss shortcut key Ctrl+PrintScreen is, it can be achieved that interception current screen image.
Step 220, in the screen picture, identify at least one active window, and in the screen picture, intercept Topography corresponding with each active window.
In the present embodiment, in the use process of commodity computer, user often opens simultaneously multiple application programs Editor, therefore the editor of the multiple application programs usually contained in the screen picture being truncated in step 210, because This needs to carry out the screen picture being truncated to image recognition, the active window comprising whole in recognition screen, and further cuts Take the screen regional image comprising each active window.Illustratively, it is determined in current computer screen and is wrapped by image recognition The editor of editor and a word document containing text document, then intercept out respectively from screen picture and wrap Liang Fu topography containing the two editors.
Step 230, in the setting regions of the top edge in the topography, at least one and editor class application journey The matched application icon of sequence is identified.
In the present embodiment, after obtaining the only topography comprising an editor, the top in the topography In the setting regions of edge, the application icon corresponding with current application program for including in the editor, example are further obtained Property, corresponding icon is obtained in the taskbar upper left corner of topography.
Step 240, if it is determined that identifying the application icon with target editor's class application matches, it is determined that detect The editor of the target editor class application program is in active state.
In the present embodiment, when from the application icon and preset target editor class application program recognized in topography Icon matches, it is determined that the editor of the application program of successful match is in active state.Illustratively, goal-selling is compiled Collecting class and applying includes that the needs such as text document, word document and MathType formula editors are timed preservation content of edit Application program, when certain that the application icon that identifies from topography and above-mentioned goal-selling editor class application program include The corresponding icon of one application program (for example, word document) is identical, it is determined that at the editor for detecting word document In active state.
If step 250 detects that the editor of target editor's class application program is in active state, basis is prestored Application program type and save shortcut key between mapping relations, obtain it is corresponding with the target editor class application program Target shortcut key.
Step 260, by call JAVA Robot provide, for analog subscriber press physical button operation API connect Mouthful, analog subscriber presses the target shortcut key.
It is similar with the operation that analog subscriber presses screenshotss shortcut key in the present embodiment, when getting and currently to be saved After editing the corresponding preservation shortcut key of class application program, JAVA Robot class is called again, realizes that analog subscriber presses corresponding guarantor Deposit the effect of shortcut key.Illustratively, currently needing the application program saved is word type, and corresponding preservation shortcut key is Ctrl+S, then analog subscriber presses above-mentioned shortcut key, realizes the effect automatically saved.
The technical solution of the present embodiment presses the quick key operation of screenshotss by analog subscriber and carries out screenshot capture, and from cutting The application icon that each active window is identified in the screen picture got, when identifying and target editor's class application matches Application icon, it is determined that detect that the editor of target editor's class application program is in active state, then by calling JAVA What Robot was provided, the api interface of physical button operation is pressed for analog subscriber, analog subscriber presses the preservation shortcut key, On the one hand it realizes and preservation is timed to the content in the application of target editor's class, avoid losing response because of application program or set There is no the case where content of edit saved in time loss caused by standby unexpected power down, on the other hand, passes through, analog subscriber presses guarantor It deposits shortcut key to be automatically saved, without getting through the interface of editor's class application program and third party application, improves editor The safety of information.
Embodiment three
Fig. 3 is the flow chart of one of the embodiment of the present invention three file saving method, and the present embodiment is in above-described embodiment On the basis of, further progress refinement is provided when reaching timer preset time, shows that content carries out screen and cuts to desktop Figure, specific steps and execution analog subscriber before obtaining screen picture press the tool after the operation of the target shortcut key Body step.One of the embodiment of the present invention three file saving method is illustrated below with reference to Fig. 3, further includes following step It is rapid:
Step 310, the operation in response to opening at least one editor's class application program, file opening save function;
Alternatively, opening the file in response to system start-up operation and saving function.
In the present embodiment, file saves function and can be set to open with os starting, may be set to be It is opened as user opens editor's class application program.Illustratively, it is opened with the starting of computer operating system, or Editor's class application program (for example, text document) is opened in user and is started.
Optionally, the file is saved function and is realized by the desktop chemical industry tool write based on Swing.
Wherein, Swing is a part of JAVA foundation class, and Swing includes graphic user interface device, such as: text Frame, button separate pane and table.
In above-mentioned optional embodiment, above-mentioned file is saved function and is realized by the desktop chemical industry tool write based on Swing, The application program for needing timing to save, preservation corresponding with above-mentioned application program can be arranged in desktop chemical industry tool in user Shortcut key and timer count down time etc..
Step 320, when reaching timer preset time, to desktop show content carry out screenshot capture, obtain screen map Picture.
Step 330 carries out image recognition, editor's window of at least one of detection editor's class application program to the screen picture The active state of mouth.
If step 340 detects that the editor of target editor's class application program is in active state, basis is prestored Application program type and save shortcut key between mapping relations, obtain it is corresponding with the target editor class application program Target shortcut key.
Step 350 executes the operation that analog subscriber presses the target shortcut key, to the editor in the editor Content is saved.
Step 360 after setting the preset time for the count down time of timer, is returned and is executed in arrival timer When preset time, content, which carries out screenshot capture, to be shown to desktop, obtains screen picture, until meeting terminates preservation condition.
In the present embodiment, after analog subscriber is pressed and saves the primary preservation operation of shortcut key completion, timer is fallen again Timing is set as preset time, and (wherein, the preset time is arranged according to practical application, and application program needs to realize automatic The interval time of preservation) restart timing, and when reaching timer preset time, repeat to show that content is shielded to desktop Curtain screenshot and the operation automatically saved, until meeting terminates preservation condition.Illustratively, termination condition can be user Close editor's class application program.
The technical solution of the present embodiment starts in response to the operation or system for opening at least one editor's class application program Operation, after file opening saves function, opening timing device timing, when reaching timer preset time, desktop is shown in Hold and carry out screenshot capture, by carrying out image recognition, editor's window of detection editor's class application program to the screen picture being truncated to The active state of mouth executes simulation and uses if detecting that the editor of target editor's class application program is in active state The operation of target shortcut key corresponding with target editor's class application program is pressed at family, and after simulation presses and saves shortcut key again Timer time is set, is repeated the above process until meeting terminates preservation condition, realizing makes file save function with editor Class application or the operation of system and start, and automatically saved by the timing to target editor's class application program, avoid because The case where fortuitous events such as the unexpected power down of equipment cause content of edit to be lost.
Example IV
A kind of structural schematic diagram for file save set that Fig. 4 provides for the embodiment of the present invention four, this document save set, It include: that screen picture obtains module 410, active state detection module 420, target shortcut key acquisition module 430 and content of edit Preserving module 440.
Screen picture obtains module 410, for showing that content carries out screen to desktop when reaching timer preset time Screenshot obtains screen picture;
Active state detection module 420, for carrying out image recognition, at least one of detection editor's class to the screen picture The active state of the editor of application program;
Target shortcut key obtains module 430, if for detecting that the editor of target editor's class application program is in Active state obtains and the target then according to the mapping relations between the type of the application program prestored and preservation shortcut key Edit the corresponding target shortcut key of class application program;
Content of edit preserving module 440 presses the operation of the target shortcut key for executing analog subscriber, to described Content of edit in editor is saved.
The technical solution of the embodiment of the present invention, by showing that content is carried out to desktop when reaching timer preset time Screenshot capture obtains screen picture, and carries out image recognition, at least one of detection editor's class application program to the screen picture Editor active state, if detecting that the editor of target editor's class application program is in active state, root According to the mapping relations between the type and preservation shortcut key of the application program prestored, obtain and the target editor class application program Corresponding target shortcut key, the final operation for executing analog subscriber and pressing the target shortcut key, in the editor Content of edit is saved, and is realized without getting through editor's class using the interface with third-party application, can be answered preset kind It is timed the effect of preservation with middle content of edit, improves the safety of editor's information.
Optionally, the active state detection module 420, comprising:
Window recognition unit, for identifying at least one active window, and in the screen map in the screen picture As in, interception topography corresponding with each active window;
Application icon recognition unit, in the setting regions of the top edge in the topography, at least one It is identified with the application icon of editor's class application matches;
Active state determination unit, for if it is determined that identifying the application drawing with target editor's class application matches Mark, it is determined that detect that the editor of the target editor class application program is in active state.
Optionally, the content of edit preserving module 440, is specifically used for:
By calling JAVA Robot to provide, the api interface of physical button operation is pressed for analog subscriber, simulation is used Press the target shortcut key in family.
Optionally, the screen picture obtains module 410, is specifically used for:
When reaching timer preset time, by calling JAVA Robot to provide, physics is pressed for analog subscriber The api interface of button operation, analog subscriber press screenshotss key, to show that content carries out screenshot capture to desktop.
Optionally, the file save set, further includes:
Function opening module, for, when reaching timer preset time, showing that content carries out screen to desktop described Screenshot, before obtaining screen picture, in response to opening the operation of at least one of described editor's class application program, file opening is saved Function;Alternatively, opening the file in response to system start-up operation and saving function.
Optionally, the file is saved function and is realized by the desktop chemical industry tool write based on Swing.
Optionally, the file save set, further includes:
Time setup module, for executing after analog subscriber presses the operation of the target shortcut key, by timer Count down time be set as the preset time after, return and execute when reaching timer preset time, desktop is shown in Hold and carry out screenshot capture, obtain screen picture, until meeting terminates preservation condition.
File save set provided by the embodiment of the present invention can be performed file provided by any embodiment of the invention and protect Method is deposited, has the corresponding functional module of execution method and beneficial effect.
Embodiment five
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention five provides, as shown in figure 5, the electronics is set Standby includes processor 50 and memory 51;The quantity of processor 50 can be one or more in equipment, be handled in Fig. 5 with one For device 50;Processor 50 in equipment can be connected with memory 51 by bus or other modes, to pass through bus in Fig. 5 For connection.
Memory 51 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, if the corresponding program instruction/module of one of embodiment of the present invention file saving method is (for example, file is protected Screen picture in cryopreservation device obtains module 410, active state detection module 420, target shortcut key and obtains module 430 and editor 440) content saves.Software program, instruction and the module that processor 50 is stored in memory 51 by operation, thereby executing The various function application and data processing of equipment, that is, realize above-mentioned file saving method.
This method comprises:
When reaching timer preset time, content, which carries out screenshot capture, to be shown to desktop, obtains screen picture;
Image recognition, the activity of the editor of at least one of detection editor's class application program are carried out to the screen picture State;
If detecting that the editor of target editor's class application program is in active state, according to the application journey prestored Mapping relations between the type and preservation shortcut key of sequence, it is quick to obtain target corresponding with the target editor class application program Key;
The operation that analog subscriber presses the target shortcut key is executed, to carry out to the content of edit in the editor It saves.
Memory 51 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 51 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 51 can be further Including the memory remotely located relative to processor 50, these remote memories can pass through network connection to equipment.It is above-mentioned The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Embodiment six
The embodiment of the present invention six also provides a kind of computer readable storage medium for being stored thereon with computer program, described Computer program is used to execute a kind of file saving method when being executed by computer processor, this method comprises:
When reaching timer preset time, content, which carries out screenshot capture, to be shown to desktop, obtains screen picture;
Image recognition, the activity of the editor of at least one of detection editor's class application program are carried out to the screen picture State;
If detecting that the editor of target editor's class application program is in active state, according to the application journey prestored Mapping relations between the type and preservation shortcut key of sequence, it is quick to obtain target corresponding with the target editor class application program Key;
The operation that analog subscriber presses the target shortcut key is executed, to carry out to the content of edit in the editor It saves.
It certainly, include the storage medium of computer executable instructions provided by the embodiment of the present invention, computer can be held The method operation that row instruction is not limited to the described above, can also be performed file saving method provided by any embodiment of the invention In relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, included each unit and module are only in a kind of embodiment of above-mentioned file save set It is to be divided according to the functional logic, but be not limited to the above division, as long as corresponding functions can be realized;Separately Outside, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of file saving method characterized by comprising
When reaching timer preset time, content, which carries out screenshot capture, to be shown to desktop, obtains screen picture;
Image recognition, the moving type of the editor of at least one of detection editor's class application program are carried out to the screen picture State;
If detecting that the editor of target editor's class application program is in active state, according to the application program prestored Mapping relations between type and preservation shortcut key, obtain target shortcut key corresponding with the target editor class application program;
The operation that analog subscriber presses the target shortcut key is executed, to protect to the content of edit in the editor It deposits.
2. detection is at least the method according to claim 1, wherein carrying out image recognition to the screen picture The active state of the editor of one editor's class application program, comprising:
In the screen picture, at least one active window is identified, and in the screen picture, interception and each work The dynamic corresponding topography of window;
Application in the setting regions of the top edge in the topography, at least one and editor's class application matches Icon is identified;
If it is determined that identifying the application icon with target editor's class application matches, it is determined that detect the target editor The editor of class application program is in active state.
3. the method according to claim 1, wherein executing the behaviour that analog subscriber presses the target shortcut key Make, comprising:
By calling JAVA Robot to provide, the api interface of physical button operation is pressed for analog subscriber, analog subscriber is pressed Under the target shortcut key.
4. according to the method described in claim 3, it is characterized in that, when reaching timer preset time, desktop is shown in Hold and carry out screenshot capture, obtains screen picture, comprising:
When reaching timer preset time, by calling JAVA Robot to provide, physical button is pressed for analog subscriber The api interface of operation, analog subscriber press screenshotss key, to show that content carries out screenshot capture to desktop.
5. method according to claim 1-4, which is characterized in that reach timer preset time described When, to desktop show content carry out screenshot capture, obtain screen picture before, further includes:
In response to opening the operation of at least one of described editor's class application program, file opening saves function;
Alternatively, opening the file in response to system start-up operation and saving function.
6. according to the method described in claim 5, it is characterized in that, the file saves function by writing based on Swing Desktop chemical industry tool is realized.
7. the method according to claim 1, wherein pressing the behaviour of the target shortcut key in execution analog subscriber After work, further includes:
After setting the preset time for the count down time of timer, returns and executes when reaching timer preset time, Content, which carries out screenshot capture, to be shown to desktop, obtains screen picture, until meeting terminates preservation condition.
8. a kind of file save set characterized by comprising
Screen picture obtains module, for showing that content carries out screenshot capture to desktop, obtaining when reaching timer preset time Take screen picture;
Active state detection module, for carrying out image recognition, at least one of detection editor's class application journey to the screen picture The active state of the editor of sequence;
Target shortcut key obtains module, if for detecting that the editor of target editor's class application program is in moving type State obtains and the target editor class then according to the mapping relations between the type of the application program prestored and preservation shortcut key The corresponding target shortcut key of application program;
Content of edit preserving module presses the operation of the target shortcut key for executing analog subscriber, to editor's window Content of edit in mouthful is saved.
9. a kind of electronic equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now file saving method as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The file saving method as described in any in claim 1-7 is realized when execution.
CN201910630692.0A 2019-07-12 2019-07-12 File saving method, device, equipment and storage medium Active CN110347995B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910630692.0A CN110347995B (en) 2019-07-12 2019-07-12 File saving method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910630692.0A CN110347995B (en) 2019-07-12 2019-07-12 File saving method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110347995A true CN110347995A (en) 2019-10-18
CN110347995B CN110347995B (en) 2020-09-11

Family

ID=68176005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910630692.0A Active CN110347995B (en) 2019-07-12 2019-07-12 File saving method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110347995B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111126032A (en) * 2019-12-31 2020-05-08 深圳企业云科技股份有限公司 Automatic document version generation method based on intelligent prediction of editing behavior
CN111722899A (en) * 2020-05-28 2020-09-29 西安万像电子科技有限公司 Image processing method, device and image transmission system
CN112256372A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN112860688A (en) * 2020-12-31 2021-05-28 佛山欧神诺云商科技有限公司 Time-based data storage method, terminal and storage device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820416A (en) * 2010-02-24 2010-09-01 上海引跑信息科技有限公司 Processing method of high-speed shared desktop in netmeeting system
CN102932456A (en) * 2012-11-02 2013-02-13 北京奇虎科技有限公司 Information interaction method and system
CN104462979A (en) * 2014-12-26 2015-03-25 深圳数字电视国家工程实验室股份有限公司 Automatic dynamic detection method and device of application program
CN104461298A (en) * 2015-01-19 2015-03-25 中国人民解放军第三〇七医院 Screen capturing method and screen capturing tool
CN104636445A (en) * 2015-01-16 2015-05-20 北京合辉信息技术有限公司 Screenshot image processing and grouping operation method and device
CN105975621A (en) * 2016-05-25 2016-09-28 北京小米移动软件有限公司 Method and device for recognizing search engine in browser page
CN106164908A (en) * 2014-04-02 2016-11-23 微软技术许可有限责任公司 Modern document storing and sync status
CN106776511A (en) * 2016-11-11 2017-05-31 郑州云海信息技术有限公司 One kind editor document storage method and device
CN108416018A (en) * 2018-03-06 2018-08-17 北京百度网讯科技有限公司 Screenshotss searching method, device and intelligent terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820416A (en) * 2010-02-24 2010-09-01 上海引跑信息科技有限公司 Processing method of high-speed shared desktop in netmeeting system
CN102932456A (en) * 2012-11-02 2013-02-13 北京奇虎科技有限公司 Information interaction method and system
CN106164908A (en) * 2014-04-02 2016-11-23 微软技术许可有限责任公司 Modern document storing and sync status
CN104462979A (en) * 2014-12-26 2015-03-25 深圳数字电视国家工程实验室股份有限公司 Automatic dynamic detection method and device of application program
CN104636445A (en) * 2015-01-16 2015-05-20 北京合辉信息技术有限公司 Screenshot image processing and grouping operation method and device
CN104461298A (en) * 2015-01-19 2015-03-25 中国人民解放军第三〇七医院 Screen capturing method and screen capturing tool
CN105975621A (en) * 2016-05-25 2016-09-28 北京小米移动软件有限公司 Method and device for recognizing search engine in browser page
CN106776511A (en) * 2016-11-11 2017-05-31 郑州云海信息技术有限公司 One kind editor document storage method and device
CN108416018A (en) * 2018-03-06 2018-08-17 北京百度网讯科技有限公司 Screenshotss searching method, device and intelligent terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
AUTOSAVER定时自动保存工具: "AutoSaver定时自动保存工具V3.0.2最新免费版", 《HTTP://WWW.GREENXF.COM/SOFT/198346.HTML》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111126032A (en) * 2019-12-31 2020-05-08 深圳企业云科技股份有限公司 Automatic document version generation method based on intelligent prediction of editing behavior
CN111126032B (en) * 2019-12-31 2023-05-23 深圳企业云科技股份有限公司 Automatic document version generation method based on intelligent prediction of editing behaviors
CN111722899A (en) * 2020-05-28 2020-09-29 西安万像电子科技有限公司 Image processing method, device and image transmission system
CN112256372A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN112256372B (en) * 2020-10-20 2023-12-26 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN112860688A (en) * 2020-12-31 2021-05-28 佛山欧神诺云商科技有限公司 Time-based data storage method, terminal and storage device

Also Published As

Publication number Publication date
CN110347995B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN110347995A (en) A kind of file saving method, device, equipment and storage medium
CN109803005B (en) Service breakpoint processing method and device, computer equipment and storage medium
CN106302933B (en) Voice information processing method and terminal
CN105120047B (en) The display methods and terminal of a kind of caller id information
CN104346137B (en) A kind of management method, system and the computer readable storage medium of application networking
CN106227585B (en) Application program starting method, device and equipment
CN107301204A (en) A kind of method and terminal for sharing file
CN107832113A (en) A kind of interface display method and device of android system application program
CN109445677B (en) Method, device, medium and electronic equipment for editing content in document
CN104125340A (en) Generating managing method and system for call sound recording files
CN107404576A (en) Screen locking magazine browsing method, mobile terminal and computer-readable recording medium
CN104820683A (en) Terminal
CN108172247A (en) Record playing method, mobile terminal and the device with store function
US9451423B2 (en) Method and apparatus for recording information during a call
CN104834687A (en) Picture display method
CN104820548A (en) Screenshot method and device
CN105528334B (en) A kind of method and terminal of document function processing
CN105425997B (en) A kind of user terminal restart after interface display method and user terminal
CN102937923B (en) A kind of method of automatic preservation user interface state
CN107203417A (en) A kind of data clearing method, relevant apparatus and electronic equipment
CN105491237A (en) Contact information display method and terminal
CN105045458A (en) Method, device and system for rapidly recording by mobile terminal
US9632675B2 (en) Information processing method and electronic device
CN107291508A (en) A kind of transaction record method, relevant device and computer-readable recording medium
CN103258564A (en) Method for automatic recording of memo events

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 215000 17F, friendship time building, No. 68, Qitai Road, Suzhou Industrial Park, Suzhou area, China (Jiangsu) pilot Free Trade Zone, Suzhou, Jiangsu

Patentee after: SUZHOU YIGE NETWORK TECHNOLOGY Co.,Ltd.

Address before: Room 101, Building 22, No. 208, Tongyuan Road, Suzhou Industrial Park, Jiangsu Province 215006

Patentee before: SUZHOU YIGE NETWORK TECHNOLOGY Co.,Ltd.