Au3 macro command reference-complete macro command list

Source: Internet
Author: User

The following lists all macros available for autoit in alphabetical order.

Macro commands Description
@ Appdatacommondir [Application Data] folder path
@ Appdatadir Path of the [Application Data] folder of the current user
@ Autoitexe The complete path and file name of the currently running autoit executable file. When the script is compiled, it is the path of the compiled script.
@ Autoitpid PID of the process currently running the script.
@ Autoitversion Autoit version, for example, 3.0.81.0
@ Autoitx64 If the script runs in the 64-bit version of autoit, 1 is returned.
@ Com_eventobj The com event of the object is being fired and only valid for the com event function.
@ Commonfilesdir [Common files] folder path
@ Compiled If it is a compiled executable file, 1 is returned; otherwise, 0 is returned.
@ Computername The Network Name of the computer.
@ Comspec That is, the value of % comspec % points to the level-2 command interpreter;
The return value is c: \ windows \ system32 \ cmd.exe, which is mainly used by command lines, for exampleRun (@ comspec & "/K help | more ")
@ Cpuarch CPU detection. If the 32-bit CPU is used, "x86" is returned, and "x64" is returned for the CPU bit ".
@ Cr Carriage Return, CHR (13); sometimes used for line breaks.
@ CRLF Equal to @ CR & @ lf; occasionally used for line breaks
@ Brief topcommondir [Desktop] folder path
@ Brief topdir Current user's [desktop] folder path
@ Brief topheight Desktop screen height pixel value (vertical resolution)
@ Brief topwidth Desktop screen width pixel value (horizontal resolution)
@ Brief topdepth The desktop screen has a deep color per pixel.
@ Brief toprefresh Screen update rate (HZ ).
@ Documentscommondir [Documents] folder path
@ Error Error flag status. See the seterror function.
@ Exitcode Exit code set for exit.
@ Exitmethod Exit method. See the onautoitexitregister () function.
@ Extended The Return Value of the extended function, used for some specific functions, such as stringreplace.
@ Favoritescommondir Public [favorites] folder path
@ Favoritesdir [Favorites] folder path
@ Gui_ctrlid The identifier of the last clicked control. only valid for the event function. See guictrlsetonevent function.
@ Gui_ctrlhandle The control handle last clicked. only valid for event functions. For details, see guictrlsetonevent function.
@ Gui_dragid The identifier of the drag control. It is only valid for the drop event function. For more information, see guisetonevent function.
@ Gui_dragfile The name of the file to be dragged (drag). It is only valid for the drag and drop event function. See guisetonevent function.
@ Gui_dropid The identifier of the drop GUI control. It is valid only for the drop event function. See guisetonevent function.
@ Gui_winhandle The last clicked GUI window handle. only valid for event functions. See guictrlsetonevent function.
@ Homedrive The drive letter of the current user's main directory, for example, C:
@ Homepath The current user's home directory. For example, the Documents and Settings \ administrator can use the @ homedrive macro to obtain the complete path.
@ Homeshare Contains the server and shared name of the current user's home directory.
@ Hour The Hour value in the 24-hour format. The value ranges from 00 to 23.
@ Hotkeypressed Press the hotkey at the end. Refer to the hotkeyset function.
@ Ipaddress1 The IP address of the first network adapter. 127.0.0.1 may be returned on some computers.
@ Ipaddress2 The IP address of the second network adapter. If the IP address does not exist, 0.0.0.0 is returned.
@ Ipaddress3 The IP address of the third network adapter. If the IP address does not exist, 0.0.0.0 is returned.
@ Ipaddress4 The IP address of the fourth network adapter. If the IP address does not exist, 0.0.0.0 is returned.
@ Kblayout Return to the keyboard layout code. view the appendix.
@ Lf Line Break, CHR (10); usually used for line feed.
@ Logondnsdomain The DNS domain to log on.
@ Logondomain The login domain.
@ Logonserver Login server.
@ Mday What is the daily value of a month? Range: 01 to 31
@ Min The minute value of the clock .? Range: 00 to 59
@ Mon Month value .? Range: 01 to 12
@ Msec The millisecond value of the clock. Range: 00 to 999
@ Muilang Return the multi-language code (Vista is OK by default). Refer to the appendix.
@ Mydocumentsdir [My documents] folder path
@ Numparams Number of user-defined function parameters
@ Osarch Checks the current operating system structure type.
Return one of the following values: "x86", "IA64", "x64 ".
@ Osbuild Returns the OS version number. For example, if Windows 2003 Server Returns 3790
@ Oslang Check the current operating system language. Refer to the appendix.
@ Osservicepack Returns the Service Pack (maintenance package) information, for example, "Service Pack 3 ";
Windows 95 may return "B ".
@ Ostype Checks the current operating system version type. The returned "win32_nt" is:
NT/2000/XP/2003/Vista/2008/win7/2008r2.
@ Osversion Return the internal version number of the Operating System: "win_2008r2", "win_7", "win_8", "win_2008", "win_vista", "win_2003", "win_xp", "win_xpe ", "win_2000 ".
@ Programfilesdir [Program files] folder path. For example, c: \ Program Files
@ Programscommondir [Start Menu \ Program] folder path
@ Programsdir Path to the [Start Menu \ Program] folder of the current user
@ Scriptdir Directory of the script currently running (excluding the trailing backslash)
@ Scriptfullpath Equivalent to "directory \ file name", that is:@ Scriptdir & "\" & @ scriptname combination
@ Scriptlinenumber The currently executed script row number. It is very useful in debugging loop statements. This row number can be passed to the called function. (It has no significance for compiled scripts)
@ Scriptname The file name of the currently running script.
@ Sec The second value of the clock. Range: 00 to 59
@ Startmenucommondir [Start Menu] folder path
@ Startmenudir Current user's [Start Menu] folder path
@ Startupcommondir [Start Menu \ Program \ Start] folder path
@ Startupdir Current user [Start Menu \ Program \ Start] folder path
@ Sw_disable Disable window.
@ Sw_enable Enable window.
@ Sw_hide Hide the window and activate another window.
@ Sw_lock Lock the window to avoid refreshing.
@ Sw_maximize Maximize the specified window.
@ Sw_minimize Minimizes the specified window and activates the next top-level window in Z sequence.
@ Sw_restore Activate and display the specified window. If the window is minimized or maximized, It is restored to the original size and position. This flag should be specified when the application displays the window.
@ Sw_show The activation window is displayed as the current size and position.
@ Sw_showdefault Set the status value of the started application to SW.
@ Sw_showmaximized The activation window is displayed as the maximum window.
@ Sw_showminimized The activation window is displayed as the minimum window.
@ Sw_showminnoactive The window is shown as minimal. Similar to @ sw_showminimized, but the window is not activated.
@ Sw_showna The window is displayed as the current size and position. Similar to @ sw_show, but the window is not activated.
@ Sw_shownoactivate The window is displayed as the last size and position. Similar to @ sw_shownormal, but the window is not activated.
@ Sw_shownormal Activate and display the specified window. If the window is minimized or maximized, It is restored to the original size and position. This flag should be specified when the application displays the window for the first time.
@ Sw_unlock Unlock the window and allow the window to be refreshed.
@ SystemDir [System] or [system32] folder path. For example, c: \ windows \ system32
@ Tab Tab character, CHR (9)
@ Tempdir [Temp] folder path. For example, c: \ temp E ~ 1 \ admini ~ 1 \ locals ~ \ Temp
@ Tray_id The project identifier that is last clicked when the trayset (item) event action is performed.
@ Trayiconflashing 1 is returned when the tray icon blinks. Otherwise, 0 is returned.
@ Trayiconvisible If the tray icon is visible, 1 is returned; otherwise, 0 is returned.
@ Userprofiledir C: \ Documents and Settings \ Administrator folder path.
@ Username The name of the currently logged-in user.
@ Wday Week value. Range: 1 to 7, corresponding to Sunday to Saturday.
@ Windowsdir [Windows] folder path. For example, C: \ WINDOWS
@ Workingdir Current/activated working directory (excluding the backslash symbol at the end)
@ Yday The day of the year. Range: 001 to 366 (if not a leap year, range: 001 to 365)
@ Year Current year (4 digits)

Au3 macro command reference-complete macro command list

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.