CN104123080A - Automation file dragging method - Google Patents
Automation file dragging method Download PDFInfo
- Publication number
- CN104123080A CN104123080A CN201410333526.1A CN201410333526A CN104123080A CN 104123080 A CN104123080 A CN 104123080A CN 201410333526 A CN201410333526 A CN 201410333526A CN 104123080 A CN104123080 A CN 104123080A
- Authority
- CN
- China
- Prior art keywords
- file
- pulls
- window
- robotization
- pull
- 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.)
- Pending
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Manipulator (AREA)
Abstract
The invention provides an automation file dragging method, and relates to the field of computer software. The method is used for solving the problem that an automation implementation scheme does not exist for a large number of file dragging operations which are sent out by NOR users. The automation file dragging method comprises the following steps that S1, a file dragging module is started, and the file path parameters of files to be dragged are transmitted therein; S2, target location information is acquired; S3, the files to be dragged are dragged to the target locations according to the file path parameters. By means of the automation file dragging method, the files can be dragged by inputting the parameters, so that convenience and rapidness are achieved; with regard to the file dragging operations which are sent out by the NOR users, dragging can be conducted in a parameter transmission-in mode, and therefore automation and routinization are achieved.
Description
[technical field]
The present invention relates to computer software fields, especially a kind of robotization pulls the method for file.
[background technology]
Concerning Windows system user, pulling file is the operation that a kind of frequency of utilization is higher.User drags to file icon on window, the operation such as window process can be read and write the file being pulled, moves, execution.Pulling file can use in the different windows of same process, also can in the different windows between process, use.
Inventor finds realizing in process of the present invention, and user can pull file very easily by hand, but send for a large amount of or non-user pull file operation, there is no the implementation of robotization.When have that a large amount of or non-user sends pull file operation time, user manually pulls file can delay many time and efforts, has influence on the work efficiency of production division, likely causes certain loss to enterprise.
[summary of the invention]
The invention provides a kind of method that robotization pulls file, in order to solve the file operation that pulls of sending for a large amount of or non-user, there is no the problem of robotization implementation.
A kind of robotization of the present invention pulls the method for file, comprises the following steps: that S1, startup pull file module, and import the file path parameter of file to be pulled into; S2, obtain target position information; S3, according to described file path parameter, described file to be pulled is drawn to target location.
Wherein, in step S1, also comprise: create the auxiliary window that pulls, and the described window creating is hidden.
Wherein, the mode that uses executable program to load dynamic link library in step S1 starts the described file module that pulls.
Wherein, described in the file path parameter of the file to be pulled that imports into, comprising: file path and assigned address parameter.
Wherein, specifically described auxiliary when pulling window and receiving window message in step S2, the positional information using clicked the window's position information as described target location.
Wherein, in step S3, specifically create data structure according to described file path parameter; According to described data structure, described file to be pulled is drawn to target location.
Wherein, described is drawn to target location according to data structure by file to be pulled, and specifically adopts the mode of calling DragDrop to realize.
Wherein, described in, calling DragDrop will file be pulled be drawn to target location and specifically comprises: file path and assigned address are packed, and data structure is preserved; Show to assist to pull window, and by its top set; Send mouse mobile messaging to system, mouse is moved to the assigned address that parameter arranges; Send left mouse button to system and press message; Send mouse mobile messaging to system, mouse is moved to one, the right side pixel of current location; To assist pull window hide; Send left mouse button to system and lift message; Remove the data structure creating.
Wherein, in the described mode of calling DragDrop, whether successfully the described file module that pulls returns to DragDrop operation response message, in the time returning to the response message of failure, by the described privilege-escalation that pulls file module,, and return to step S1 and pull file module described in restarting when the authority of front desktop top set window process with coupling.
Wherein, also comprise step S4, described auxiliary when pulling window and receiving termination messages, destroy all data and exit and pull file module.
Robotization of the present invention pulls the method that the method for file provides input parameter file can be pulled, convenient and swift.That sends for a large amount of or non-user pulls file operation, can pull by the mode of importing parameter into, has realized robotization, sequencing.
[brief description of the drawings]
Fig. 1 is the method step process flow diagram of the embodiment of the present invention 1;
Fig. 2 is the method step process flow diagram of the embodiment of the present invention 2;
Fig. 3 is the method step process flow diagram of the embodiment of the present invention 3;
Fig. 4 is the method step process flow diagram of the embodiment of the present invention 4.
[embodiment]
In view of this, the embodiment of the present invention provides a kind of method that pulls file of robotization, sequencing, in the situation that Windows system starts, uses the method for the embodiment of the present invention, file can be dragged in the target location of mouse indication, to realize movement, the transmission of file.
The robotization of embodiment 1, the present embodiment pulls the method for file, shown in Figure 1, comprises following key step:
S11, startup pull file module, and import the file path parameter of file to be pulled into.
Specifically can use executable program to load the mode of dynamic link library starts and pulls file module.The file path parameter of the file to be pulled importing into can comprise: file path and assigned address parameter.
S12, obtain target position information.
S13, according to file path parameter, described file to be pulled is drawn to target location.
The method visible, the present embodiment provides input parameter file can be pulled, convenient and swift.That sends for a large amount of or non-user pulls file operation, can pull by the mode of importing parameter into, has realized robotization, sequencing.
The robotization of embodiment 2, the present embodiment pulls the method for file, shown in Figure 2, comprises following key step:
S21, startup pull file module, and import the file path parameter of file to be pulled into.
Specifically can use executable program to load the mode of dynamic link library starts and pulls file module.The file path parameter of the file to be pulled importing into can comprise: file path and assigned address parameter.
S22, initialization pull file module, create to assist to pull window simultaneously, and window size is identical with screen size, and window is hidden.
S23, the auxiliary window that pulls wait for and pull message, in the time finding that there is the window message that left mouse button presses, and the positional information using clicked the window's position information as target location.
S24, create the data structure of file path according to file path parameter.
S25, filling DragDrop related data structures, and call DragDrop method.Wherein, DragDrop is that Window system carries Ole method, is mainly used to pull data between different windows.Generally, the data that pull comprise word, file, picture, user data etc., and DragDrop is also a kind of method of intertask data communication.
S26, file to be pulled are dragged to target location, auxiliary pull window and can wait for new message.
S27, auxiliary when pulling window and receiving termination messages, destroys all data and quits a program.
The method visible, the present embodiment provides input parameter file can be pulled, convenient and swift.That sends for a large amount of or non-user pulls file operation, can pull by the mode of importing parameter into, has realized robotization, sequencing.
The robotization of embodiment 3, the present embodiment pulls the method for file, shown in Figure 3, comprises following key step:
S31, startup pull file module, and import the file path parameter of file to be pulled into.
Specifically can use executable program to load the mode of dynamic link library starts and pulls file module.The file path parameter of the file to be pulled importing into can comprise: file path and assigned address parameter.
S32, initialization pull file module, create to assist to pull window simultaneously, and window size is identical with screen size, and window is hidden.
S33, the auxiliary window that pulls wait for and pull message, in the time finding that there is the window message that left mouse button presses, and the positional information using clicked the window's position information as target location.
S34, create the data structure of file path according to file path parameter.
S35, filling DragDrop related data structures, and call DragDrop method.Wherein, DragDrop is that Window system carries Ole method, is mainly used to pull data between different windows.Generally, the data that pull comprise word, file, picture, user data etc., and DragDrop is also a kind of method of intertask data communication.
S36, judge whether DragDrop calls successfully, if successfully proceed to step S37, proceed to step S31 otherwise promote authority.
Specifically in the mode of calling DragDrop, pull file module and can return to whether successfully response message of DragDrop operation, if return to successful response message, carry out follow-up flow process, if return to the response message of failure, the privilege-escalation of file module will be pulled, to mate the authority when front desktop top set window process, and return to step S31 and restart and pull file module, and re-execute the flow process of the present embodiment.
S37, file to be pulled are dragged to target location, auxiliary pull window and can wait for new message.
S38, auxiliary when pulling window and receiving termination messages, destroys all data and quits a program.
The method visible, the present embodiment provides input parameter file can be pulled, convenient and swift.That sends for a large amount of or non-user pulls file operation, can pull by the mode of importing parameter into, has realized robotization, sequencing.And the present embodiment is also comprehensively complete, has proposed the solution under DragDrop failure scenarios.
The robotization of embodiment 4, the present embodiment pulls the method for file, shown in Figure 4, comprises following key step:
S41, startup pull file module, and import the file path parameter of file to be pulled into.
Specifically can use executable program to load the mode of dynamic link library starts and pulls file module.The file path parameter of the file to be pulled importing into can comprise: file path and assigned address parameter.
S42, initialization pull file module, create to assist to pull window simultaneously, and window size is identical with screen size, and window is hidden.
S43, the auxiliary window that pulls wait for and pull message, in the time finding that there is the window message that left mouse button presses, and the positional information using clicked the window's position information as target location.
S44, create the data structure of file path according to file path parameter.
S45, filling DragDrop related data structures, and call DragDrop method.Wherein, DragDrop is that Window system carries Ole method, is mainly used to pull data between different windows.Generally, the data that pull comprise word, file, picture, user data etc., and DragDrop is also a kind of method of intertask data communication.
The method of calling DragDrop in this step comprises following sub-step:
S451, file path and assigned address are packed, and data structure is preserved;
S452, demonstration are assisted and are pulled window, and by its top set;
S453, send mouse mobile messaging to system, mouse is moved to the assigned address that parameter arranges;
S454, to system send left mouse button press message;
S455, send mouse mobile messaging to system, mouse is moved to one, the right side pixel of current location;
S456, will assist pull window hide;
S457, to system send left mouse button lift message;
The data structure that S458, removing create.
S46, judge whether DragDrop calls successfully, if successfully proceed to step S47, proceed to step S41 otherwise promote authority.
Specifically in the mode of calling DragDrop, pull file module and can return to whether successfully response message of DragDrop operation, if return to successful response message, carry out follow-up flow process, if return to the response message of failure, the privilege-escalation of file module will be pulled, to mate the authority when front desktop top set window process, and return to step S41 and restart and pull file module, and re-execute the flow process of the present embodiment.
S47, file to be pulled are dragged to target location, auxiliary pull window and can wait for new message.
S48, auxiliary when pulling window and receiving termination messages, destroys all data and quits a program.
The method visible, the present embodiment provides input parameter file can be pulled, convenient and swift.That sends for a large amount of or non-user pulls file operation, can pull by the mode of importing parameter into, has realized robotization, sequencing.And the present embodiment is also comprehensively complete, has proposed the solution under DragDrop failure scenarios.
Here description of the invention and application are all illustrative and schematic, are not to want scope of the present invention to limit in the above-described embodiments.Here the distortion of disclosed embodiment and change is completely possible, and for those those of ordinary skill in the art, the various parts of the replacement of embodiment and equivalence are all known.Those skilled in the art are also noted that, in the situation that not departing from spirit of the present invention or essential characteristic, the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts, and in the situation that not departing from the scope of the invention and spirit, can carry out other distortion and change to disclosed embodiment here.
Claims (10)
1. robotization pulls a method for file, it is characterized in that, comprises the following steps:
S1, startup pull file module, and import the file path parameter of file to be pulled into;
S2, obtain target position information;
S3, according to described file path parameter, described file to be pulled is drawn to target location.
2. robotization as claimed in claim 1 pulls the method for file, it is characterized in that, in step S1, also comprises: create the auxiliary window that pulls, and the described window creating is hidden.
3. robotization as claimed in claim 1 pulls the method for file, it is characterized in that, the mode that uses executable program to load dynamic link library in step S1 starts the described file module that pulls.
4. robotization as claimed in claim 1 pulls the method for file, it is characterized in that, described in the file path parameter of the file to be pulled that imports into, comprising: file path and assigned address parameter.
5. robotization as claimed in claim 2 pulls the method for file, it is characterized in that, specifically described auxiliary when pulling window and receiving window message in step S2, the positional information using clicked the window's position information as described target location.
6. robotization as claimed in claim 2 pulls the method for file, it is characterized in that, in step S3, specifically creates data structure according to described file path parameter; According to described data structure, described file to be pulled is drawn to target location.
7. robotization as claimed in claim 6 pulls the method for file, it is characterized in that, described is drawn to target location according to data structure by file to be pulled, and specifically adopts the mode of calling DragDrop to realize.
8. robotization as claimed in claim 7 pulls the method for file, it is characterized in that, described in call DragDrop and will file be pulled be drawn to target location and specifically comprise:
File path and assigned address are packed, and data structure is preserved;
Show to assist to pull window, and by its top set;
Send mouse mobile messaging to system, mouse is moved to the assigned address that parameter arranges;
Send left mouse button to system and press message;
Send mouse mobile messaging to system, mouse is moved to one, the right side pixel of current location;
To assist pull window hide;
Send left mouse button to system and lift message;
Remove the data structure creating.
9. robotization as claimed in claim 7 pulls the method for file, it is characterized in that, in the described mode of calling DragDrop, whether successfully the described file module that pulls returns to DragDrop operation response message, in the time returning to the response message of failure, by the described privilege-escalation that pulls file module, to mate the authority when front desktop top set window process, and return to step S1 and pull file module described in restarting.
10. robotization as claimed in claim 2 pulls the method for file, it is characterized in that, also comprises step S4, described auxiliary when pulling window and receiving termination messages, destroys all data and exit to pull file module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410333526.1A CN104123080A (en) | 2014-07-15 | 2014-07-15 | Automation file dragging method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410333526.1A CN104123080A (en) | 2014-07-15 | 2014-07-15 | Automation file dragging method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104123080A true CN104123080A (en) | 2014-10-29 |
Family
ID=51768511
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410333526.1A Pending CN104123080A (en) | 2014-07-15 | 2014-07-15 | Automation file dragging method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104123080A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104768126A (en) * | 2015-05-05 | 2015-07-08 | 深圳市东方拓宇科技有限公司 | Method for sharing data between mobile terminals and mobile terminals |
CN110874276A (en) * | 2018-08-31 | 2020-03-10 | 杭州海康威视系统技术有限公司 | Cross-process communication method and device and computer readable storage medium |
CN111131360A (en) * | 2018-10-31 | 2020-05-08 | 北京国双科技有限公司 | Multi-file uploading method and device |
CN111459387A (en) * | 2020-04-09 | 2020-07-28 | 上海尊溢商务信息咨询有限公司 | Interaction method for frame selection and dragging type picture classification |
CN113656196A (en) * | 2021-08-16 | 2021-11-16 | 深圳技德智能科技研究院有限公司 | Linux-compatible Android application file transfer method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452403A (en) * | 2008-12-19 | 2009-06-10 | 北京数码大方科技有限公司 | Drawing support method and device |
CN103235792A (en) * | 2013-03-29 | 2013-08-07 | 东莞宇龙通信科技有限公司 | Method and device for operating file |
CN103559445A (en) * | 2013-11-07 | 2014-02-05 | 北京奇虎科技有限公司 | Application-program interactive control method and device |
CN103577608A (en) * | 2013-11-20 | 2014-02-12 | 北京奇虎科技有限公司 | Method and device for operating files/file folders |
-
2014
- 2014-07-15 CN CN201410333526.1A patent/CN104123080A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452403A (en) * | 2008-12-19 | 2009-06-10 | 北京数码大方科技有限公司 | Drawing support method and device |
CN103235792A (en) * | 2013-03-29 | 2013-08-07 | 东莞宇龙通信科技有限公司 | Method and device for operating file |
CN103559445A (en) * | 2013-11-07 | 2014-02-05 | 北京奇虎科技有限公司 | Application-program interactive control method and device |
CN103577608A (en) * | 2013-11-20 | 2014-02-12 | 北京奇虎科技有限公司 | Method and device for operating files/file folders |
Non-Patent Citations (1)
Title |
---|
左国才: "一步拖放 轻松完成文件整理", 《秘书之友》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104768126A (en) * | 2015-05-05 | 2015-07-08 | 深圳市东方拓宇科技有限公司 | Method for sharing data between mobile terminals and mobile terminals |
CN110874276A (en) * | 2018-08-31 | 2020-03-10 | 杭州海康威视系统技术有限公司 | Cross-process communication method and device and computer readable storage medium |
CN110874276B (en) * | 2018-08-31 | 2023-02-28 | 杭州海康威视系统技术有限公司 | Cross-process communication method and device and computer readable storage medium |
CN111131360A (en) * | 2018-10-31 | 2020-05-08 | 北京国双科技有限公司 | Multi-file uploading method and device |
CN111131360B (en) * | 2018-10-31 | 2023-02-21 | 北京国双科技有限公司 | Multi-file uploading method and device |
CN111459387A (en) * | 2020-04-09 | 2020-07-28 | 上海尊溢商务信息咨询有限公司 | Interaction method for frame selection and dragging type picture classification |
CN113656196A (en) * | 2021-08-16 | 2021-11-16 | 深圳技德智能科技研究院有限公司 | Linux-compatible Android application file transfer method and device |
CN113656196B (en) * | 2021-08-16 | 2024-02-27 | 深圳技德应用技术有限公司 | Method and device for transferring files between applications of Linux compatible with Android |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110704136B (en) | Method for rendering applet components, client, electronic device and storage medium | |
CN104123080A (en) | Automation file dragging method | |
CN106484224B (en) | A kind of operating method and terminal | |
US20210168194A1 (en) | App remote control method and related devices | |
US10761713B2 (en) | Data transmission method and apparatus | |
CN103544059B (en) | The realization method and system of pending buffer effect during a kind of application switching | |
WO2014117554A1 (en) | Method, server and browser for pushing message actively | |
US20160092152A1 (en) | Extended screen experience | |
CN105992066B (en) | A kind of characters input method and character entry apparatus applied to smart machine | |
CN102662618B (en) | Image processing method in remote assistance process and device | |
CN102664924B (en) | Information processing method in remote assistance process and device | |
CN104158972A (en) | Method for calling third-party application in conversation process and user terminal | |
US9678632B2 (en) | Data processing method and apparatus | |
CN108459794A (en) | A kind of interactive operation processing method and processing device of button-free screen | |
TW201627849A (en) | Processing application interface | |
CN103209203A (en) | Cross-platform application providing method and client | |
CN112346612B (en) | Page display method and device | |
KR101686495B1 (en) | Display control device, thin-client system, display control method, and recording medium | |
JPWO2012127627A1 (en) | Information device, screen switching method, and screen switching program | |
US11064008B2 (en) | Methods for facilitating a remote interface and devices thereof | |
CN105049900A (en) | Method and system for controlling smart television terminal, and smart television terminal | |
CN105511787B (en) | Input method, electronic equipment and input system | |
US20150271431A1 (en) | Information Transmission Method and Wireless Display System | |
CN101980193B (en) | Method, device and system for modifying dynamic page | |
WO2016061921A1 (en) | Method, device, terminal and computer storage medium for combining multiple application operations |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141029 |
|
WD01 | Invention patent application deemed withdrawn after publication |