AutoIt shortcut-> HotKeySet
You can customize shortcut keys when using AutoIt to compile GUI programs. You can usually use the following code:
1 ; FILENAME HotKeySetDemo01.au3 2 ; PURPOSE: Hotkey demo 3 ; CREATED BY: @kysnail at 4 ; NOTE: 5 ; 6 ; 7 ; RESOURCE: 8 ; 9 ;10 ; Press Esc to terminate script, Pause/Break to "pause"11 12 ; Flag variable 'start/pause' the script13 Global $Paused14
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 Controls
Autoit code:
# CS unzip autoit version: 3.3.8.1 Author: tody Guo Script Function: dllcall function test from DLL, And the DLL file is complied by GCC # ce submit ----------------------------------------------------------------------------; script start-add your code below here $ return = dllcall ("dlltest. DLL "," str "," Ptest "); If @ error = 0 then msgbox (48," OK ", $ return [0]) endif
GCC -- shared
Autoit global scope
A global scope problem is found in programming. The global variable cannot be incremented normally in the while... Wend, and only the value before the loop can be obtained.
1; filename variablescope01.au32; Purpose: scope of global variables3; created by: @ kysnail Il at home4; note:5; the global variable $ row is defined here, but if $ ROW = $ row + 1 is not added in the while... Wend loop, it will always stay on a row for Refresh
V. Automated operations Quick Start Series 5
Control OperationsHowever, it is often difficult to achieve the expected goal only by relying on the above technologies. The following describes the most important control operations.1. Set textDuring software installation, users often need to provide necessary information, such as the installation directory. Many users do not like to install the software to the default C drive, but prefer to install them elsewhere. So what method does the script pr
A long time did not touch Au3, recently under the new version of 3.3.12, with the "Compile with options" when compiling, found that often does not appear in the compilation Options window, but directly compiled.Wherefore?From the registry, look at the key values associated with the compilation options: "C:\Program Files (x86) \autoit3\scite\autoit3wrapper\autoit3wrapper.exe"/showgui/in "%l"Also happen, the same directory, there is source in, finally found that the GUI interface is actually to be
Workaround:
First, clean up boot entry
1, start-run (input msconfig)-point OK or carriage return;
2, then we click: Start;
3, in the pop-up "System Configuration" window of the startup project, retain the "Input method" and "Anti-Virus software", all other items are prohibited, point to determine the exit program.
4. Reboot the computer to see if there are any script error prompts?
Ii. cleaning up the registration form
1. If you still have a script erro
");Figure one: Get popup outermost and change parametersFigure two: Get the input box and change the parametersFigure three: Get the Save button and change the parameters5> 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 convert5.2> double-click and run the. exe file5.3> Select the
Autoit 2 ~ Run
Program Or open a file.
1, Run the program Run Commands or functions are used to run external executable files.
Au3:Run ("File Name"[,"Working directory"[, Flag])
Example:
Au3:Run ("notepad.exe ")
In the above example, no program" Notepad.exe ", Why can it still be executed? This is because they will automatically search for the target file in the directory where the script is located. If yes, they will run. Otherwise, they w
To create a "shortcut key" for an inactive window, you must use the HotKeySet function to associate it. Instead, you cannot use GUISetAccelerators to associate the shortcut to the form or space.
1 $ Form1 = GUICreate ("AcceleratorDemo", 160, 60,-1,-
Note: The window title and window text parameters are always case sensitive.1. Wait for window commands/functionsBoth Ahk and au3 provide a similar set of window wait commands/functions: winwait/winwaitactive/winwaitclose.They are used to wait for
Function Description
Inputbox
An input box is displayed for users to enter data. Inputbox ("title", "prompt information" [, "default data" [, "Password character" [, width, height [, left, top [, time-out period])
Parameters
This is a creation in
Article, where the information may have evolved or changed.
Robotgo v0.40.0 the mouse keyboard operation has been greatly improved, due to cross-platform switching test trouble (merging several platform code to compare the
1. First, we press the Win7 flagship computer keyboard Win+r shortcut to open the computer's running window, in the Open Run window, we enter Msconfig and click Enter, so that you can open the Win7 flagship computer System Configuration window.
2.
Examples of dynamic variable usage in php and php variable usage. Examples of dynamic variable usage in php, and examples of php variable usage this article describes the dynamic variable usage in php. Share it with you for your reference. The specific analysis is as follows: fixed variables defined: examples of dynami
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.