With a mouse click, the mouse will turn into a small fan-shaped icon. Hold down the left mouse button and drag it to the control you want to Recognize.
The file name input box has the class "Edit" and Instance "1", so the filename is "Edit1".
The Open Button's class is "button" and Instance is "1", so it is saved as "Button1".
open, Write a Script. The Controlfocus () method is used to identify window Windows. The winwait () method sets 10 seconds to wait for the display of the WINDOW. The Controlsettext () method is used to enter the path to the file in the "file name" input box. Sleep (2000) indicates a fixed sleep of 2000 milliseconds. Controlclick () is used to click the Open button in the upload window. AutoIt's script has been written and can be run with the menu bar "Tools"--"Go" (or Press keyboard F5)! Note: the File Upload window should be open at run Time.
Controlfocus ("please Enter file name to save ...", "", "Edit1")
Winwait ("[CLASS: #32770]", "", 10)
Controlsettext ("please Enter file name to save ...", "", "Edit1", "d:\autoit-v3-setup")
Sleep (2000)
Controlclick ("please Enter file name to save ...", "", "Button2");
Open to convert the script to an EXE executable file. Execute EXE DIRECTLY.
try{
Runtime.getruntime (). exec ("d:\\1.exe");
}catch (ioexception E) {
E.printstacktrace ();
}
AutoIt for uploading and downloading