CN110727487B - Method for embedding network disk window into windows resource manager - Google Patents
Method for embedding network disk window into windows resource manager Download PDFInfo
- Publication number
- CN110727487B CN110727487B CN201910821668.5A CN201910821668A CN110727487B CN 110727487 B CN110727487 B CN 110727487B CN 201910821668 A CN201910821668 A CN 201910821668A CN 110727487 B CN110727487 B CN 110727487B
- Authority
- CN
- China
- Prior art keywords
- window
- information
- directory
- handle
- network disk
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a method for embedding a network disk window into a windows resource manager, which belongs to the technical field of computers and comprises a directory path monitoring step and a window embedding and displaying step; and executing a directory path monitoring step, acquiring a window directory path, executing a window embedding and displaying step when the window directory path is a working directory path, and embedding and generating a network disk display window in the resource manager. By adopting the method, when a user operates the network disk system, the network disk window interface can be embedded into the resource manager, the network disk system does not need to pop up an external window of the operation interface to realize user operation, the user can directly operate the network disk information data in the resource manager, the operation mode is consistent with the operation mode of the windows system, the operation is simple, and the operation is easier to get a good job.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method for embedding a network disk window into a windows resource manager.
Background
The enterprise network disk is an enterprise data network storage and management solution based on a cloud computing concept, and provides services such as data summarization distribution, storage backup and management for enterprises by using mass computing and storage capacity of an internet background data center. The enterprise network disk system is enterprise data centralized storage control software which is commonly used by enterprises at present, data in the enterprises can be uniformly and intensively stored and controlled, and the operation usability of the enterprise network disk is very important due to the high daily use frequency of the enterprise network disk.
When the existing enterprise network disk is used, an independent network disk software system operation interface window is required to be popped up to display and operate data in the network disk, the network disk information display and operation mode is realized in a mode of popping up an independent window, the display mode changes the interface display mode of a user on a windows system, in the operation mode, the user needs to adapt to the network disk operation interface mode of the popped up independent window, the original operation and use mode of the windows system of the user is changed, the user needs to spend time to adapt to the corresponding network disk operation interface, and the user experience is reduced.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention aims to solve the technical problem of providing a method for embedding a network disk window into a windows resource manager, which adopts a mode of identifying a window directory path to realize that the network disk window is embedded into the windows resource manager for displaying, simulates the functional operation of the windows resource manager, realizes the display and operation of network disk information without popping up an external window of an independent operation interface by a network disk system, directly displays and operates the network disk information in the windows resource manager, is simple to operate and is easier to get on hand.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention provides a method for embedding a network disk window into a windows resource manager, which comprises a directory path monitoring step and a window embedding and displaying step; firstly, a directory path monitoring step is executed, which specifically comprises the following steps: the desktop information acquisition unit acquires path window information of a computer desktop and transmits the path window information to the information response processing unit, and the information response processing unit judges according to the path window information to acquire a window directory path; when the window directory path is the working directory path, executing the window embedding and displaying step, specifically: the information response processing unit creates a simulation interface father window, and simultaneously performs information synchronous interaction with the network disk server through the Internet, the desktop information acquisition unit acquires manager window information of a computer desktop and transmits the manager window information to the information response processing unit, the information response processing unit judges according to the manager window information, when the window handle is a directory display window handle, the simulation interface father window handle corresponding to the simulation interface father window is set to be the directory display window handle, and the network disk display window is embedded in the windows resource manager.
The invention has the preferable technical scheme that the method also comprises a simulation operation implementation step; when a network disk display window is embedded and generated in the windows resource manager, the simulation operation implementation steps are executed, and specifically: the desktop information acquisition unit generates a corresponding operation instruction according to specified operation data of a user in the network disk display window, transmits the operation instruction to the information response processing unit, and the information response processing unit generates a corresponding processing instruction according to the type of the operation instruction and synchronously interacts information with the network disk server through the Internet.
The invention has the preferable technical proposal that the directory path monitoring step comprises a directory creating step, a manager outer window identifying step, a path information identifying step and a working directory path identifying step; executing a directory creating step to create a working directory; executing an outer window identification step of a manager, and identifying an outermost window of the windows resource manager; in the outermost window of the windows resource manager, executing a path information identification step, and sending a message to a target path control handle to acquire window directory path information; executing a working directory path identification step on the acquired window directory path information, and judging whether the window directory path is a working directory path or not; and when the window directory path is the working directory path, executing the window embedding and displaying step.
The invention preferably has the technical scheme that the path information identification step specifically comprises the following steps: a target path control handle identification step: the desktop information acquisition unit acquires the path control handle information in the outermost window of the windows resource manager and transmits the path control handle information to the information response processing unit, and the information response processing unit judges whether the current path control handle is the target path control handle or not according to the acquired path control handle information until the target path control handle is acquired; a window directory path acquisition step: and the information response processing unit sends a message to the target path control handle to acquire the window directory path information of the current window.
The invention preferably adopts the technical scheme that the window embedding display step comprises a simulation window creating step, a manager outer layer window identifying step and a display window information identifying embedding step; executing a simulation window creating step to create a simulation interface parent window; executing an outer window identification step of a manager, and identifying an outermost window of the windows resource manager; and executing a display window information identification embedding step in the outermost window of the windows resource manager, and embedding and generating a network disk display window in the windows resource manager.
The invention preferably adopts the technical scheme that the display window information identification embedding step specifically comprises the following steps: a display window handle identification step: the desktop information acquisition unit acquires sub-window handle information from an outermost window of the windows resource manager and transmits the sub-window handle information to the information response processing unit, and the information response processing unit judges whether the current sub-window handle is a directory display window handle or not according to the acquired sub-window handle information until the directory display window handle is acquired; and window embedding and displaying: and the information response processing unit sets the handle of the simulation interface parent window corresponding to the simulation interface parent window as the handle of the directory display window, and embeds and generates the network disk display window in the windows resource manager.
The invention preferably adopts the technical scheme that the manager outer window identification step specifically comprises the following steps: a desktop handle obtaining step: the desktop information acquisition unit acquires the handle information of the desktop window from the desktop window of the computer and transmits the handle information to the information response processing unit; judging the handle of the desktop: and the information response processing unit judges whether the current desktop window handle is the outermost window handle of the windows resource manager or not according to the acquired desktop window handle information, and deduces whether the current desktop window is the outermost window of the windows resource manager or not.
The invention preferably adopts the technical scheme that the simulation operation implementation step specifically comprises the following steps: and a left key double-click opening step: in a network disk display window, a user carries out left key double-click operation on a directory or a file, a desktop information acquisition unit identifies a target directory or a target file according to position information of an area occupied by the network disk display window corresponding to the left key double-click operation, generates an opening operation instruction for the target directory or the target file, an information response processing unit generates a corresponding opening operation processing instruction according to the opening operation instruction, and simultaneously carries out information synchronous interaction with a network disk server through the Internet, so that the user opens the target directory or the target file; and a right-click menu operation step: the user executes right click operation on the network disk display window, a right menu operation window is popped up, the user clicks specified operation options on a left key in the right menu operation window, the desktop information acquisition unit transmits corresponding operation instructions to the information response processing unit, and the information response processing unit and the network disk server process the operation instructions, so that the user realizes specified operation.
The invention preferably adopts the technical scheme that the right-click menu operation step specifically comprises the following steps: and a menu window popup step: in the network disk display window, a user executes right click operation on the network disk display window, the desktop information acquisition unit transmits a right click operation instruction to the information response processing unit, the information response processing unit generates a menu window pop-up instruction, and the right click menu operation window is popped up in the network disk display window; and a specified operation implementation step: a user clicks an appointed operation option in a right-click menu operation window by a left key, the desktop information acquisition unit transmits a menu appointed operation instruction to the information response processing unit, the information response processing unit generates a corresponding appointed operation processing instruction according to the type of the menu appointed operation instruction, and meanwhile, information synchronous interaction is carried out with the network disk server through the Internet, so that the user realizes the appointed operation.
The invention preferably adopts the technical scheme that the designated operation comprises at least one of opening, copying, cutting, pasting, deleting, renaming, creating and moving.
The beneficial effects of the invention are as follows:
the invention provides a method for embedding a network disk window into a windows resource manager, which is characterized in that by adopting the method, when a user operates a network disk system, a directory path monitoring step is firstly executed to judge whether a window directory path is a working directory path, when the window directory path is the working directory path, a window embedding and displaying step is executed to realize that the network disk window interface is embedded into the windows resource manager, the network disk system does not need to pop up an external window of an operation interface to realize user operation, the user can directly operate network disk information data in the windows resource manager, a simulation operation realizing step is executed, the functional operation of the windows resource manager can be simulated, the operation mode is consistent with the operation mode of the windows system, the operation is simple, and the operation is easier to be realized.
Drawings
FIG. 1 is a block diagram of a method for embedding a web disk window into a windows explorer according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating directory path monitoring steps provided in an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a window embedding step according to an embodiment of the present invention;
fig. 4 is a flow chart illustrating steps of implementing simulation operations provided in the embodiment of the present invention.
In the figure:
s1, directory path monitoring; s110, creating a catalog; s120, identifying an outer layer window of the manager; s121, acquiring a desktop handle; s122, judging a desktop handle; s130, a path information identification step; s131, identifying a handle of the target path control; s132, acquiring a window directory path; s140, identifying a working directory path; s2, window embedding and displaying; s210, a simulation window creating step; s230, identifying and embedding the information of the display window; s231, a display window handle identification step; s232, a window embedding and displaying step; s3, simulating operation; s310, opening by double-click of a left key; s320, a right-click menu operation step; s321, a menu window pop-up step; s322, an operation implementation step is appointed; a1, a desktop information acquisition unit; a2, information response processing unit; B. and a network disk server.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings.
As shown in fig. 1 to 4, in the method for embedding a web disk window into a windows resource manager provided in this embodiment, in order to enable a user to operate a web disk system, by using a method for embedding a web disk window into a windows resource manager, embedding a web disk window interface into a windows resource manager is implemented, and the operation usability is higher. Further, the method includes a directory path monitoring step S1 and a window embedding presentation step S2; first, a directory path monitoring step S1 is executed, which specifically includes: the desktop information acquisition unit A1 acquires path window information of a computer desktop, transmits the path window information to the information response processing unit A2, and the information response processing unit A2 judges according to the path window information to acquire a window directory path; when the window directory path is the working directory path, the window embedding and displaying step S2 is executed, which specifically includes: the information response processing unit A2 creates a simulation interface father window, and simultaneously, synchronously interacts information with the network disk server B through the Internet, the desktop information acquisition unit A1 acquires manager window information of a computer desktop, transmits the manager window information to the information response processing unit A2, the information response processing unit A2 judges according to the manager window information, when the window handle is a directory display window handle, the simulation interface father window handle corresponding to the simulation interface father window is set as the directory display window handle, and the network disk display window is embedded in the windows resource manager. The desktop information acquisition unit A1 and the information response processing unit A2 cooperate to form a network disk client, and the network disk data information operation is realized after a user loads the network disk client on a user-side computer. The directory path monitoring step S1 is to obtain and determine whether the window directory path is a working directory path, and the window embedding and displaying step S2 is to embed the web disk display window into the windows resource manager for displaying. The network disk server B comprises a network disk server file library and a network disk server database, wherein the network disk server file library is used for storing, uploading and downloading files, and the network disk server database is used for storing directory information and file information of a network disk. By adopting the method for embedding the network disk window into the windows resource manager, when a user operates the network disk system, the network disk window interface can be embedded into the windows resource manager, the network disk system does not need to pop up an external window of an operation interface to realize user operation, the user can directly operate the network disk information data in the windows resource manager, the operation mode is consistent with that of the windows system, the operation is simple, and the operation is easier to get a good job.
In order to enable a user to operate the network disk system information data in a functional operation mode of the windows resource manager through the method, the method can be used for simulating the functional operation mode of the windows resource manager. Further, the method further includes a simulation operation implementing step S3; when the windows resource manager embeds and generates the network disk display window, the simulation operation is executed to realize step S3, which specifically includes: the desktop information acquisition unit A1 generates corresponding operation instructions according to the designated operation data of the user in the network disk display window, transmits the operation instructions to the information response processing unit A2, and the information response processing unit A2 generates corresponding processing instructions according to the types of the operation instructions, and simultaneously performs information synchronous interaction with the network disk server B through the Internet. The simulation operation implementation step S3 is used to simulate the functional operation of the windows resource manager on the web disk display window. The step S3 is implemented by simulating the operation, so that the network disk system information data can be operated in a manner simulating the functional operation of the windows explorer.
The window directory path can be determined in the directory path monitoring step S1. Further, the directory path monitoring step S1 includes a directory creating step S110, a manager skin window identifying step S120, a path information identifying step S130, and a working directory path identifying step S140; executing a directory creating step S110 to create a working directory; executing a manager outer window identification step S120, identifying an outermost window of the windows resource manager; in the outermost window of the windows resource manager, executing a path information identification step S130, sending a message to a target path control handle to acquire window directory path information; executing a working directory path identification step S140 on the acquired window directory path information, and judging whether the window directory path is a working directory path; when the window directory path is the working directory path, the window embedding presentation step S2 is performed. The specific steps are as follows, wherein the directory creating step S110 includes a step S1.1, the manager overlay window identifying step S120 includes a step S1.2, the path information identifying step S130 includes a step S1.3, and the working directory path identifying step S140 includes a step S1.4, a step S1.4.1, and a step S1.4.2:
Step S1.1: creating a directory on a user side computer as a network disk client working directory, and acquiring network disk directory information and file detailed information of a network disk server database by the network disk client working directory in a CS mode;
step S1.2: searching and identifying an outermost window handle of the windows resource manager in a desktop window handle of a user side computer, and identifying an outermost window of the windows resource manager;
step S1.3: after the step S1.2 is executed, searching and identifying a target path control handle ToolbarWindow32 in an outermost window of the windows resource manager, sending a WM _ GETTEX message to the target path control handle ToolbarWindow32 by using a SendMessage method, and acquiring a directory path to obtain a window directory path;
step S1.4: after the step S1.3 is executed, judging the window directory path, and judging whether the window directory path is consistent with the working directory path of the network disk client working directory;
step S1.4.1: in step S1.4, if the window directory path is not consistent with the working directory path, the window embedding and displaying step S2 is not executed, and the step S1.3 is returned to obtain the window directory path again;
step S1.4.2: in step S1.4, if the window directory path is consistent with the work directory path, a window embedding and displaying step S2 is executed, and a web disk display window is embedded and generated in the windows resource manager.
By adopting the above method, the directory path monitoring step S1 can determine the window directory path.
The window directory path information may be acquired in order for the path information recognizing step S130. Further, the path information identifying step S130 specifically includes the following steps: target path control handle identification step S131: the desktop information acquisition unit A1 acquires path control handle information in the outermost window of the windows resource manager and transmits the path control handle information to the information response processing unit A2, and the information response processing unit A2 judges whether the current path control handle is a target path control handle or not according to the acquired path control handle information until the target path control handle is acquired; window directory path acquisition step S132: the information response processing unit a2 sends a message to the target path control handle to acquire the window directory path information of the current window. The specific implementation manner of the steps is as follows, wherein the target path control handle identifying step S131 includes step S1.3.1, and the window directory path obtaining step S132 includes step S1.3.2:
step S1.3.1: after step S1.2 is executed, using the FindWindowEx method, in the outermost window of the windows resource manager, gradually searching the path control handle under the child window according to the following sequence of the child windows until the target path control handle ToolbarWindow32 is searched and identified:
Child window class 1: the path control handle is the handle of the WorkerW,
child window class 2: the path control handle, rebarcindow 32,
child window class 3: the path control handle Address Band Root,
child window class 4: the path control handle msctls progress32,
child window class 5: the path control handle breakmanaged element,
child window class 6: target path control handle ToolbarWindow 32;
step S1.3.2: after step S1.3.1 is executed, send message WM _ GETTEXT message to target path control handle ToolbarWindow32 using SendMessage method, obtain directory path and get window directory path.
By adopting the above method, the path information identifying step S130 can acquire the window directory path information.
In order to make the window embedding display step S2 display the web disk display window embedded in the windows explorer. Further, the window embedding and displaying step S2 includes a simulation window creating step S210, a manager outer window identifying step S120, and a display window information identifying and embedding step S230; executing a simulation window creating step S210 to create a simulation interface parent window; executing a manager outer window identification step S120, identifying an outermost window of the windows resource manager; in the outermost window of the windows resource manager, the step S230 of identifying and embedding the display window information is executed, and a generated network disk display window is embedded in the windows resource manager. In the simulation window creating step S210, directory information and file detail information of the directory path of the current window are acquired from the network disk server B. The specific information of the network disk directory comprises directory information and file information, and the database structure of the network disk directory is as the following table:
(1) Directory table structure
(2) File table structure
According to the current window directory path, the corresponding directory ID on the cloud disk can be obtained by comparing the directory table, and after the directory ID is obtained, the directory information (directory ID, directory name, superior directory ID) and the file information (file ID, file name, file modification time, file size and the directory ID to which the file belongs) of the directory hierarchy can be obtained by searching the database.
The specific steps are as follows, wherein the simulation window creating step S210 includes step S2.1 and step S2.2, the manager outer window identifying step S120 includes step S1.2, and the display window information identifying and embedding step S230 includes step S2.3:
step S2.1: generating a simulation interface father window on a user side computer, wherein the simulation interface father window displays the network disk directory information and the file detailed information in the form of network disk interfaces of a TreeView interface and a ListView interface;
step S2.2: after step S2.1 is executed, the working directory of the network disk client obtains corresponding network disk directory information and file detailed information from the network disk server database according to the window directory path obtained in step S1.4.2, after the information data of the working directory of the network disk client is read by the interface parent window, the network disk directory hierarchy information is displayed on the TreeView interface, and the network disk directory information and the file detailed information are displayed on the ListView interface;
Step S1.2: searching and identifying an outermost window handle of the windows resource manager in a desktop window handle of a user side computer, and identifying an outermost window of the windows resource manager;
step S2.3: after the step S1.2 is executed, a directory display window handle DUIViewWndClassName is searched and identified in the outermost window of the windows resource manager, a simulation interface parent window handle corresponding to the simulation interface parent window is set to be the directory display window handle DUIViewWndClassName, the simulation interface parent window is embedded into the windows resource manager, and then the network disk display window is embedded into the windows resource manager.
By adopting the method, the window embedding and displaying step S2 can embed the web disk display window into the windows resource manager for displaying.
The generation of the web disk presentation window may be embedded in the windows explorer in order to allow the presentation window information identification embedding step S230. Further, the step S230 of identifying and embedding the display window information specifically includes the following steps: the presentation window handle identifying step S231: the desktop information acquisition unit A1 acquires sub-window handle information from the window at the outermost layer of the windows resource manager, transmits the sub-window handle information to the information response processing unit A2, and the information response processing unit A2 judges whether the current sub-window handle is a directory display window handle or not according to the acquired sub-window handle information until the directory display window handle is acquired; window embedding and displaying step S232: the information response processing unit a2 sets the handle of the simulation interface parent window corresponding to the simulation interface parent window as the handle of the directory display window, and embeds and generates the network disk display window in the windows resource manager. The specific implementation manner of the steps is as follows, wherein the displaying window handle identifying step S231 includes step S2.3.1, and the window embedding displaying step S232 includes step S2.3.2:
Step S2.3.1: after step S1.2 is executed, in the outermost window of the windows resource manager, the sub-window handles under the sub-window are respectively searched step by step according to the following sequence of the sub-windows until the directory display window handle duiviewndclassname is searched and identified:
child window class 1: the child window handle shelltabwindowslass,
child window class 2: the directory exposes a window handle DUIViewWndClassName;
step S2.3.2: after step S2.3.1 is executed, the handle of the simulation interface parent window corresponding to the simulation interface parent window is set as the handle of the directory display window duiviewwndlassname, so that the simulation interface parent window is embedded into the windows resource manager, and then the network disk display window is embedded and generated in the windows resource manager.
By adopting the above method, the display window information identification embedding step S230 can embed and generate the network disk display window in the windows resource manager.
In order for the manager outer window identifying step S120 to acquire the windows explorer outermost window. Further, the manager outer window identifying step S120 specifically includes the following steps: desktop handle acquisition step S121: the desktop information acquisition unit A1 acquires the handle information of the desktop window from the desktop window of the computer and transmits the handle information to the information response processing unit A2; desktop handle determination step S122: the information response processing unit a2 determines whether the current desktop window handle is the outermost window handle of the windows resource manager according to the acquired desktop window handle information, and infers whether the current desktop window is the outermost window of the windows resource manager. The specific implementation manner of the steps is as follows, wherein the desktop handle obtaining step S121 includes step S1.2.1, and the desktop handle determining step S122 includes step S1.2.2, step S1.2.2.1, and step S1.2.2.2:
Step S1.2.1: enumerating desktop window handles on a user side computer by using an EnumWindowsProc method, wherein the outermost window handle of the windows resource manager comprises a window handle CabinetWClass and a window handle ExploreWClass;
step S1.2.2: after the step S1.2.1 is executed, judging whether the current desktop window handle is the outermost window handle of the windows resource manager or not;
step S1.2.2.1: in step S1.2.2, if the current desktop window handle is not the window handle cabletwcs or ExploreWClass, it indicates that the current desktop window is not the outermost window of the windows resource manager, and the process returns to step s1.2.1 to continuously determine other desktop windows;
step S1.2.2.2: in step S1.2.2, if the current desktop window handle is the window handle cabletwclass or the window handle ExploreWClass, it indicates that the current desktop window is the outermost window of the windows resource manager;
by adopting the method, the manager outer window identifying step S120 can obtain the windows resource manager outer window.
Step S3 may be performed to simulate the functional operation of the windows explorer in order to implement the simulation operation. Further, the simulation operation implementing step S3 specifically includes the following steps: left key double click open step S310: in the network disk display window, a user performs left key double-click operation on a directory or a file, the desktop information acquisition unit A1 identifies a target directory or a target file according to the position information of the occupied area of the network disk display window corresponding to the left key double-click operation, generates an opening operation instruction for the target directory or the target file, the information response processing unit A2 generates a corresponding opening operation processing instruction according to the opening operation instruction, and simultaneously performs information synchronous interaction with the network disk server B through the Internet, so that the user opens the target directory or the target file; right menu operation step S320: the user executes right click operation on the network disk display window, a right menu operation window pops up, the user clicks specified operation options on a left key in the right menu operation window, the desktop information acquisition unit A1 transmits corresponding operation instructions to the information response processing unit A2, and the information response processing unit A2 and the network disk server B process the operation instructions, so that the user realizes the specified operation. The step S320 of operating the right-click menu specifically includes the following steps: menu window pop-up step S321: in the network disk display window, a user executes right click operation on the network disk display window, the desktop information acquisition unit A1 transmits a right click operation instruction to the information response processing unit A2, the information response processing unit A2 generates a menu window pop-up instruction, and the right click menu operation window is popped up in the network disk display window; the designating operation realizes step S322: a user clicks a designated operation option in a right-click menu operation window by a left key, the desktop information acquisition unit A1 transmits a menu designated operation instruction to the information response processing unit A2, the information response processing unit A2 generates a corresponding designated operation processing instruction according to the type of the menu designated operation instruction, and simultaneously, information synchronous interaction is carried out with the network disk server B through the Internet, so that the user realizes the designated operation. The designated operation comprises at least one of opening, copying, cutting, pasting, deleting, renaming, creating and moving. The specific steps are realized as follows, wherein the left key double-click opening step S310 includes step S3.1, step S3.3, step S3.3.1, step S3.3.2 and step S3.3.3, and the right menu operation step S320 includes step S3.2, step S3.3, step S3.3.1, step S3.3.2, step S3.3.3, step S3.4, step S3.5, step S3.6 and step S3.7:
Step S3.1: in a network disk display window, opening a target directory or a target file on a ListView interface through a left key double-click opening operation;
step S3.2: generating a right-click menu PopMenu on a ListView interface in a network disk display window, wherein the right-click menu PopMenu simulates at least one operation of opening, copying, cutting, pasting, deleting, renaming, creating and moving of a windows resource manager;
step S3.3: when a left-key double-click opening operation is executed or an opening operation is executed in a right-key menu PopMenu, judging the object type of the opening operation on a ListView interface, judging whether the object type belongs to a file type or a directory type, and then executing the corresponding opening operation according to the object type;
step S3.3.1: in step S3.3, if the opened object type is a file type, first obtaining a FileID of the file executing the opening operation, downloading the file from the network disk server file library to a corresponding local file directory on the user side computer according to the FileID, and then calling the ShellExecuteEx method to directly open the file;
step S3.3.2: in step S3.3, if the opened object type is a directory type, first, send WM _ setup message to target path control handle ToolbarWindow32 using SendMessage method, set the window directory path as a steered directory path, where the steered directory path is the window directory path obtained in step S1.4.2 plus the directory name for executing the opening operation, and at the same time, create a corresponding steered directory on the user-side computer, and switch the simulation interface parent window embedded in the windows resource manager to the steered directory for display;
Step S3.3.3: after step S3.3.2 is executed, when the window directory path is set as a steering directory path, the steering directory acquires corresponding network disk directory information and file detailed information from the network disk server database according to the steering directory path, and after the information data of the steering directory is read by the simulation interface parent window, the directory information and the file detailed information of the steering directory are displayed again;
step S3.4: when copying or cutting is executed in a right-key menu PopMenu, writing data information of a copied or cut file or directory into an operating system clipboard of a client computer by adopting a windows shell extension technology;
step S3.5: when executing paste operation in a right-key menu PopMenu, reading copied or cut data information from an operating system clipboard of a client computer by adopting a windows shell expansion technology, executing corresponding paste operation according to a source data source when pasting the data, and mainly processing paste in the following modes:
(1) pasting data in the network disk to the outside of the network disk
If the pasted data comes from the inside of the network disk and is pasted outside the network disk, firstly acquiring the information of the copy source data;
if the copied source data is a directory: according to the step S2.2, the directory and file information in the network disk server can be obtained, and then the files are downloaded from the network disk server file library to a local target path to be pasted, so that the directory is copied from the network disk to the outside of the network disk;
If the source data is a file: the file information is acquired from the network disk server, and then the file is downloaded from the network disk server file library to a local destination path to be pasted. Thus, the file is copied from the network disk to the outside of the network disk;
(2) pasting data outside the network disk into the network disk
If the pasted data comes from the outside of the network disk and is pasted into the network disk, firstly acquiring the information of the copy source data;
if the copied source data is a directory: uploading the corresponding local directory and files to a directory corresponding to a network disk server file library, updating a directory structure table and a file structure table in a network disk server database after uploading, and finally refreshing the directory corresponding to the local network disk, so that the uploaded directory is displayed in a local simulation display interface, and the purpose that the directory outside the network disk is copied into the network disk is realized;
if the copied source data is a file: uploading the corresponding local file to a directory corresponding to a network disk server file library, updating a file table structure in a network disk service database after uploading, and finally refreshing the directory corresponding to the local network disk, so that the uploaded file is displayed in a local simulation display interface, and the file outside the network disk is copied into the network disk;
(3) Pasting data in the network disk into the network disk
If the pasted data comes from the network disk and is pasted into the network disk, firstly acquiring the information of the copy source data;
if the copied source data is a directory: inserting the directory and file information in the corresponding network disk into a directory structure table and a file structure table of a target directory in a network disk server database, and finally refreshing the directory corresponding to the local network disk, so that the directory is displayed in a local simulation display interface, and the directory in the network disk is copied into the network disk;
if the copied source data is a file: inserting the file information in the corresponding network disk into a file structure table of a target directory in a network disk server database, and finally refreshing the directory corresponding to the local network disk, so that the file is displayed in a local simulation display interface, and the file in the network disk is copied into the network disk;
step S3.6: when any one of deletion, renaming, new creation or movement is executed in the right-key menu PopMenu, judging the type of an operation object, judging whether the object type belongs to a file type or a directory type, and then executing a corresponding operation instruction according to the object type;
When the object type of the execution operation belongs to the file type, the user side computer sends a specified operation processing instruction to the network disk server through the internet, modifies and updates a file structure table corresponding to the file in the network disk server, and then refreshes the corresponding file information on the user side computer through the internet;
when the object type of the execution operation belongs to the directory type, the user side computer sends a specified operation processing instruction to the network disk server through the internet, modifies and updates a directory structure table corresponding to the directory in the network disk server, and then refreshes the corresponding directory information on the user side computer through the internet;
step S3.7: in step S3.3.1, when the file is downloaded successfully and the shelllexecuteex method is called to open directly, the file modification operation can be executed in the right-click menu PopMenu;
when a file executes a file modification operation instruction, firstly acquiring a software process ID opened by the file, and then acquiring whether the opened software process is closed or not by an OpenProcess method;
if the opened software process is not closed, the content of the updated file is not uploaded to the network disk server synchronously;
if the opened software process is closed, judging whether the content of the opened file is modified;
If the content of the opened file is not modified, the content of the updated file is not uploaded to the network disk server synchronously;
if the content of the opened file is modified, the modified file is uploaded to a network disk server file library through the Internet, a file structure table corresponding to the file in a network disk server database is modified and updated at the same time, and then corresponding file information on a user side computer is refreshed through the Internet.
By adopting the above method, the simulation operation implementing step S3 can simulate the functional operation of the windows resource manager.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the spirit and scope of the invention. The present invention is not to be limited by the specific embodiments disclosed herein, and other embodiments that fall within the scope of the claims of the present application are intended to be within the scope of the present invention.
Claims (9)
1. A method for embedding a network disk window into a windows resource manager is characterized in that:
the method includes a directory path monitoring step (S1) and a window embedding presentation step (S2);
first, the directory path monitoring step (S1) is executed, specifically: the method comprises the steps that a desktop information acquisition unit (A1) acquires path window information of a computer desktop and transmits the path window information to an information response processing unit (A2), and the information response processing unit (A2) judges according to the path window information to acquire a window directory path;
When the window directory path is the working directory path, executing the window embedding and displaying step (S2), specifically: the information response processing unit (A2) creates a simulation interface father window, and simultaneously performs information synchronous interaction with a network disk server (B) through the Internet, the desktop information acquisition unit (A1) acquires manager window information of a computer desktop and transmits the manager window information to the information response processing unit (A2), the information response processing unit (A2) judges according to the manager window information, when the window handle is a catalog display window handle, the simulation interface father window handle corresponding to the simulation interface father window is set as the catalog display window handle, and the network disk display window is embedded in a windows resource manager;
the directory path monitoring step (S1) includes a directory creation step (S110), a manager overlay window identification step (S120), a path information identification step (S130), and a working directory path identification step (S140);
executing the catalog creation step (S110), creating a working catalog;
executing a manager outer window identification step (S120), and identifying an outermost window of the windows resource manager;
in the outermost window of the windows resource manager, executing a path information identification step (S130), and sending a message to a target path control handle to acquire window directory path information;
Executing a working directory path identification step (S140) on the acquired window directory path information, and judging whether the window directory path is a working directory path;
when the window directory path is the working directory path, the window embedding presentation step is performed (S2).
2. The method of embedding a web disk window into a windows resource manager of claim 1, wherein:
the method further includes a simulation operation implementing step (S3);
when the windows resource manager embeds and generates the network disk display window, the simulation operation implementation step (S3) is executed, specifically: the desktop information acquisition unit (A1) generates corresponding operation instructions according to the designated operation data of the user in the network disk display window, transmits the operation instructions to the information response processing unit (A2), and the information response processing unit (A2) generates corresponding processing instructions according to the types of the operation instructions and synchronously interacts information with the network disk server (B) through the Internet.
3. The method of embedding a web disk window into a windows resource manager of claim 1, wherein:
the path information identifying step (S130) specifically includes the steps of:
target path control handle identification step (S131): the desktop information acquisition unit (A1) acquires path control handle information in an outermost window of the windows resource manager and transmits the path control handle information to the information response processing unit (A2), and the information response processing unit (A2) judges whether the current path control handle is a target path control handle or not according to the acquired path control handle information until the target path control handle is acquired;
Window directory path acquisition step (S132): the information response processing unit (A2) sends a message to the target path control handle to acquire the window directory path information of the current window.
4. The method of embedding a web disk window into a windows resource manager of claim 1, wherein:
the window embedding display step (S2) comprises a simulation window creating step (S210), a manager outer layer window identifying step (S120) and a display window information identifying and embedding step (S230);
executing a simulation window creating step (S210) to create a simulation interface parent window;
executing a manager outer window identification step (S120), and identifying an outermost window of the windows resource manager;
in the outermost window of the windows resource manager, a display window information identification embedding step (S230) is performed, and a generated network disk display window is embedded in the windows resource manager.
5. The method of embedding a web disk window into a windows resource manager of claim 4, wherein:
the display window information identification embedding step (S230) specifically includes the steps of:
presentation window handle identification step (S231): a desktop information acquisition unit (A1) acquires child window handle information from the outermost window of the windows resource manager, and transmits the child window handle information to an information response processing unit (A2), wherein the information response processing unit (A2) judges whether the current child window handle is a directory display window handle or not according to the acquired child window handle information until the directory display window handle is acquired;
Window embedding display step (S232): the information response processing unit (A2) sets the handle of the simulation interface father window corresponding to the simulation interface father window as the handle of the catalog display window, and embeds and generates the network disk display window in the windows resource manager.
6. The method of embedding a web disk window into a windows resource manager as claimed in claim 1 or 4, wherein:
the manager outer window identifying step (S120) specifically includes the steps of:
desktop handle acquisition step (S121): the desktop information acquisition unit (A1) acquires the handle information of the desktop window from the desktop window of the computer and transmits the handle information to the information response processing unit (A2);
desktop handle discrimination step (S122): and the information response processing unit (A2) judges whether the current desktop window handle is the outermost window handle of the windows resource manager according to the acquired desktop window handle information, and deduces whether the current desktop window is the outermost window of the windows resource manager.
7. The method of embedding a web disk window into a windows resource manager of claim 2, wherein:
the simulation operation implementation step (S3) specifically includes the steps of:
left key double-click open step (S310): in a network disk display window, a user performs left key double-click operation on a directory or a file, the desktop information acquisition unit (A1) identifies a target directory or a target file according to the position information of the area occupied by the network disk display window corresponding to the left key double-click operation, generates an opening operation instruction on the target directory or the target file, the information response processing unit (A2) generates a corresponding opening operation processing instruction according to the opening operation instruction, and simultaneously performs information synchronous interaction with the network disk server (B) through the Internet to enable the user to open the target directory or the target file;
Right-click menu operation step (S320): the desktop information acquisition unit (A1) transmits a corresponding operation instruction to the information response processing unit (A2), and the information response processing unit (A2) and the network disk server (B) process the operation instruction, so that the user can realize the specified operation.
8. The method of embedding a web disk window into a windows resource manager of claim 7, wherein:
the right menu operation step (S320) specifically includes the steps of:
menu window pop-up step (S321): in the network disk display window, a user executes right click operation on the network disk display window, the desktop information acquisition unit (A1) transmits a right click operation instruction to the information response processing unit (A2), the information response processing unit (A2) generates a menu window pop-up instruction, and the right click menu operation window is popped up in the network disk display window;
specifying operation implementation step (S322): the method comprises the steps that a user clicks a designated operation option in a right-click menu operation window by a left key, the desktop information acquisition unit (A1) transmits a menu designated operation instruction to the information response processing unit (A2), the information response processing unit (A2) generates a corresponding designated operation processing instruction according to the type of the menu designated operation instruction, and meanwhile, information synchronous interaction is carried out with the network disk server (B) through the Internet, so that the user can realize the designated operation.
9. The method of embedding a web disk window into a windows resource manager of claim 8, wherein:
the specified operation comprises at least one of opening, copying, cutting, pasting, deleting, renaming, creating and moving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910821668.5A CN110727487B (en) | 2019-09-02 | 2019-09-02 | Method for embedding network disk window into windows resource manager |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910821668.5A CN110727487B (en) | 2019-09-02 | 2019-09-02 | Method for embedding network disk window into windows resource manager |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110727487A CN110727487A (en) | 2020-01-24 |
CN110727487B true CN110727487B (en) | 2022-06-10 |
Family
ID=69218771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910821668.5A Active CN110727487B (en) | 2019-09-02 | 2019-09-02 | Method for embedding network disk window into windows resource manager |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110727487B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113238997A (en) * | 2021-07-13 | 2021-08-10 | 云宏信息科技股份有限公司 | Cloud data operation method for terminal equipment, storage medium and terminal equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306189A (en) * | 2011-08-31 | 2012-01-04 | 珠海金山办公软件有限公司 | Client and method for client to show status of network disk file |
CN103152515A (en) * | 2012-07-13 | 2013-06-12 | 成都东方盛行电子有限责任公司 | Comprehensive editing platform |
CN103559029A (en) * | 2013-10-24 | 2014-02-05 | 北京奇虎科技有限公司 | Method and device for displaying cloud disk file statuses |
CN103780675A (en) * | 2013-12-11 | 2014-05-07 | 北京荣之联科技股份有限公司 | Cloud disc file synchronization method and apparatus |
CN104408222A (en) * | 2014-10-13 | 2015-03-11 | 中国电子科技集团公司第十研究所 | Reconfiguration method of real-time distributed simulation platform |
CN105308561A (en) * | 2013-04-09 | 2016-02-03 | 思杰***有限公司 | Providing a native desktop using cloud-synchronized data |
CN106201260A (en) * | 2016-06-30 | 2016-12-07 | 北京奇虎科技有限公司 | A kind of explorer optimization method and device |
CN108415911A (en) * | 2017-02-09 | 2018-08-17 | 上海宝信软件股份有限公司 | The on-demand synchronous method of data file based on enterprise's cloud disk |
CN109725958A (en) * | 2017-10-30 | 2019-05-07 | 腾讯科技(深圳)有限公司 | The method and device that the file of resource manager management is handled |
CN110069454A (en) * | 2017-09-11 | 2019-07-30 | 中兴通讯股份有限公司 | A kind of network file management method, terminal and computer readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9009219B2 (en) * | 2010-01-27 | 2015-04-14 | Vmware, Inc. | Native viewer use for service results from a remote desktop |
-
2019
- 2019-09-02 CN CN201910821668.5A patent/CN110727487B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306189A (en) * | 2011-08-31 | 2012-01-04 | 珠海金山办公软件有限公司 | Client and method for client to show status of network disk file |
CN103152515A (en) * | 2012-07-13 | 2013-06-12 | 成都东方盛行电子有限责任公司 | Comprehensive editing platform |
CN105308561A (en) * | 2013-04-09 | 2016-02-03 | 思杰***有限公司 | Providing a native desktop using cloud-synchronized data |
CN103559029A (en) * | 2013-10-24 | 2014-02-05 | 北京奇虎科技有限公司 | Method and device for displaying cloud disk file statuses |
CN103780675A (en) * | 2013-12-11 | 2014-05-07 | 北京荣之联科技股份有限公司 | Cloud disc file synchronization method and apparatus |
CN104408222A (en) * | 2014-10-13 | 2015-03-11 | 中国电子科技集团公司第十研究所 | Reconfiguration method of real-time distributed simulation platform |
CN106201260A (en) * | 2016-06-30 | 2016-12-07 | 北京奇虎科技有限公司 | A kind of explorer optimization method and device |
CN108415911A (en) * | 2017-02-09 | 2018-08-17 | 上海宝信软件股份有限公司 | The on-demand synchronous method of data file based on enterprise's cloud disk |
CN110069454A (en) * | 2017-09-11 | 2019-07-30 | 中兴通讯股份有限公司 | A kind of network file management method, terminal and computer readable storage medium |
CN109725958A (en) * | 2017-10-30 | 2019-05-07 | 腾讯科技(深圳)有限公司 | The method and device that the file of resource manager management is handled |
Non-Patent Citations (2)
Title |
---|
基于EITP的云盘关键技术的研究与实现;朱小康;《中国优秀硕士论文电子期刊网》;20180715;全文 * |
本地管理SkyDrive网盘;盖述功;《电脑爱好者》;20120701(第13期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110727487A (en) | 2020-01-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2135527C (en) | Object oriented notification framework system | |
CA2145675C (en) | Collaborative work system | |
US5551055A (en) | System for providing locale dependent user interface for presenting control graphic which has different contents or same contents displayed in a predetermined order | |
JP4393558B2 (en) | How the computer system performs | |
JP3793226B2 (en) | Atomic command system | |
JP3798014B2 (en) | Balloon help system | |
CA2145678C (en) | Command system | |
JP3949159B2 (en) | Object-oriented application interface | |
JP5000748B2 (en) | Menu with shape separated by two radii and arc | |
US5519862A (en) | Concurrent processing apparatus with incremental command objects | |
JP2007095090A (en) | Method and device for menu item display | |
WO1994015282A1 (en) | Dialog system | |
US7673286B2 (en) | Architecture for converting control types in a data bound user interface | |
WO2022048329A1 (en) | Menu display method and apparatus | |
CN110727487B (en) | Method for embedding network disk window into windows resource manager | |
US8000952B2 (en) | Method and system for generating multiple path application simulations | |
CN116028035A (en) | Code processing method, front-end page development system and electronic equipment | |
JP2005084699A (en) | Multiwindow display controller and computer system using it | |
US20180181891A1 (en) | Measure input control | |
WO1994015274A1 (en) | Scrolling system | |
JP2004046867A (en) | Network type document processor and method using tree structure defined secondarily |
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 |