Sign in to follow this  
Followers 0
Guest phillip

Macros

2 posts in this topic

where to get a list of built in macros for version 3.

Share this post


Link to post
Share on other sites



Should be in the help file...

@AppDataCommonDir Path to Application Data.

@AppDataDir Path to current user's Application Data.

@AutoItVersion Version number of AutoIt such as 3.0.81.0.

@CommonFilesDir Path to Common Files folder.

@Compiled Returns 1 if script is a compiled executable; otherwise, returns 0.

@ComputerName Computer's network name.

@ComSpec Returns the value of the %comspec% the SPECified secondary COMmand interpreter. Is primarly for command line uses, e.g. Run(@ComSpec & " /k help | more").

@CR Carriage return, Chr(13); sometimes used for line breaks.

@CRLF = @CR & @LF ;occasionally used for line breaks.

@DesktopCommonDir Path to Desktop.

@DesktopDir Path to current user's Desktop.

@DesktopHeight Height of screen in pixels. (horizontal resolution)

@DesktopWidth Width of screen in pixels. (vertical resolution)

@DocumentsCommonDir Path to Documents.

@error Status of the error flag. See the SetError function.

@FavoritesCommonDir Path to Favorites.

@FavoritesDir Path to current user's Favorites.

@HOUR Hours value of clock in 24-hour format. Range is 00 to 23.

@IPAddress1 IP address of first network adapter. Tends to return 127.0.0.1 on some computers.

@IPAddress2 IP address of second network adapter. Returns 0.0.0.0 if not applicable.

@IPAddress3 IP address of third network adapter. Returns 0.0.0.0 if not applicable.

@IPAddress4 IP address of fourth network adapter. Returns 0.0.0.0 if not applicable.

@LF Line feed, Chr(10); typically used for line breaks.

@MDAY Current day of month. Range is 01 to 31.

@MIN Minutes value of clock. Range is 00 to 59.

@MON Current month. Range is 01 to 12.

@MyDocumentsDir Path to My Documents target.

@OSBuild Returns the OS build number. For example, Windows 2003 Server returns 3790.

@OSLang Returns code denoting OS Language. See Appendix for possible values.

@OSServicePack Service pack info in the form of "Service Pack 3" or, for Windows 95, it may return "B".

@OSTYPE Returns "WIN32_NT" for NT/2000/XP and returns "WIN32_WINDOWS" for 95/98/Me.

@OSVersion Returns one of the following: WIN_XP, WIN_2000, WIN_NT4, WIN_ME, WIN_98, WIN_95.

@ProgramFilesDir Path to Program Files folder.

@ProgramsCommonDir Path to Start Menu's Programs folder.

@ProgramsDir Path to current user's Programs (folder on Start Menu).

@ScriptDir Directory containing the running script. (Result does not contain a trailing backslash).

@ScriptFullPath Equivalent to @ScriptDir & "\" & @ScriptName.

@ScriptName Long filename of the running script.

@SEC Seconds value of clock. Range is 00 to 59.

@StartMenuCommonDir Path to Start Menu folder.

@StartMenuDir Path to current user's Start Menu.

@StartupCommonDir Path to Startup folder.

@StartupDir Current user's Startup folder.

@SW_HIDE Hide window.

@SW_MAXIMIZE Maximize window.

@SW_MINIMIZE Minimize window.

@SW_RESTORE Undoes a window minimization or maximization.

@SW_SHOW Shows a previously hidden window.

@SystemDir Path to Windows System (or System32) folder.

@TAB Tab character, Chr(9).

@TempDir Path to the temporary files folder.

@UserName ID of the currently logged on user.

@WDAY Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday.

@WindowsDir Path to Windows folder.

@WorkingDir Current/active working directory. (Result does not contain a trailing backslash).

@YDAY Current day of year. Range is 1 to 366 (or 365 if not a leap year).

@YEAR Current four-digit year.

Newest version also has @Temp (the temporary directory)

and @UserName


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0