1. Installation steps:
1> Decompression AUTOIT3 Compression pack
2> Click into the SciTE file
3> Double-click SciTE.exe
4> Click to run to enter into the SciTE work interface
2. Instructions for use
1> enter into the SciTE work interface, paste the fixed source code up
The fixed code format is as follows:
A, the processing of the source code to save the popup window
Controlfocus ("Save Picture", "", "Edit1")
; Controlfocus ("title", "Text", ControlID) Edit1=edit instance 1
;D im $name = _date_time_getlocaltime ()
Winwait ("[CLASS: #32770]", "", 10)
Controlsettext ("Save Picture", "" "," Edit1 "," C:\auto1.png ")
Sleep (2000)
Controlclick ("Save Picture", "", "Button1");
B, processing landing related pop-up window source
Dim $account = "Gmsdtech"
Dim $pwd = "111111"
Dim $dialogTitle = "Windows security"
Winactivate ($dialogTitle)
Winwaitactive ($dialogTitle)
Sleep (1*100)
Controlsettext ($dialogTitle, "", "Edit1", $account)
Sleep (1*100)
Controlsettext ($dialogTitle, "", "Edit2", $pwd)
Controlclick ($dialogTitle, "", "Button2")
Sleep (1*100)
2> Save The script source in the SciTE work interface (save the above script code to a place before you can run the script source code), the format of the saved file is. au3 format.
3> Open the System pop-up window (or the system pops up when logged in, such as trading background login) and then run the script to see if it can run successfully
4> when the System pop-up window can not be timely, then modify the above script code, the specific modification method as follows (to save pop-up as an example)
4.1> Open the following tool
Figure One:
Figure II: Click to run
4.2> Click on the following query tool, do not release the mouse, then go to the pop-up window to find the corresponding element and then more script code
4.3> to change the encoding by finding the element
A, the processing of the source code to save the popup window
Controlfocus ("Save Picture", "", "Edit1")
; Controlfocus ("title", "Text", ControlID) Edit1=edit instance 1
;D im $name = _date_time_getlocaltime ()
Winwait ("[CLASS: #32770]", "", 10)
Controlsettext ("Save Picture", "" "," Edit1 "," C:\auto1.png ")
Sleep (2000)
Controlclick ("Save Picture", "", "Button1");
Figure one: Get popup outermost and change parameters
Figure two: Get the input box and change the parameters
Figure three: Get the Save button and change the parameters
5> Run the adjusted script code to see if it can be adjusted, if you can adjust the general rules to convert the script to the. exe format (the format is. au3 format when the above steps are saved)
5.1> using a file from the decompression AUTOIT3 compression package to convert
5.2> double-click and run the. exe file
5.3> Select the saved. au3 format file, select a path for the newly converted EXE file, and then perform the conversion (for example)
6> call the above EXE file with Java Program (code below)
Runtime rn = runtime. GetRuntime ();
Process p = null;
Try {
p = rn.exec ("\" d:/workspace/test.exe\ "");
} catch (Exception e) {
System. out. println ("Error exec!");
}
Identify window windows with AutoIt