Sign in to follow this  
Followers 0
TomK

Special_Variables

4 posts in this topic

Can someone give me a exapmle of how the "Special_Variables" work?

I found a list of the special variables but no clue of how to use them.

Thanks

Tom

Share this post


Link to post
Share on other sites



post the list


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

post the list

I found the following in a section of the documentation called "Special Variables"

A_OSTYPE The type of Operating System being run. Either "WIN32_WINDOWS" or "WIN32_NT".

A_OSVERSION "WIN_XP", "WIN_2000", "WIN_NT4", "WIN_95", "WIN_98", "WIN_ME".

A_SCRIPTNAME The current script name, e.g. "myscript.aut".

A_SCRIPTDIR The directory that the current script resides in.

A_SCRIPTFULLPATH The full pathname of the current script, e.g. "C:\Windows\Scripts\myscript.aut".

A_WORKINGDIR The current working directory.

A_NUMBATCHLINES The current setting of the "SetBatchLines" command.

A_SEC Seconds after the minute (00-59)

A_MIN Minutes after the hour (00-59)

A_HOUR Hours after midnight (00-23)

A_MDAY Day of the month (01-31)

A_MON Month of the year (01-12)

A_YEAR The current year (4 digit format, e.g. 2000)

A_WDAY Day of the week (1-7)

A_YDAY Day of the year (1-366)

no clue on how to use them

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I found the following in a section of the documentation called "Special Variables"

A_OSTYPE The type of Operating System being run. Either "WIN32_WINDOWS" or "WIN32_NT".

A_OSVERSION "WIN_XP", "WIN_2000", "WIN_NT4", "WIN_95", "WIN_98", "WIN_ME".

A_SCRIPTNAME The current script name, e.g. "myscript.aut".

A_SCRIPTDIR The directory that the current script resides in.

A_SCRIPTFULLPATH The full pathname of the current script, e.g. "C:\Windows\Scripts\myscript.aut".

A_WORKINGDIR The current working directory.

A_NUMBATCHLINES The current setting of the "SetBatchLines" command.

A_SEC Seconds after the minute (00-59)

A_MIN Minutes after the hour (00-59)

A_HOUR Hours after midnight (00-23)

A_MDAY Day of the month (01-31)

A_MON Month of the year (01-12)

A_YEAR The current year (4 digit format, e.g. 2000)

A_WDAY Day of the week (1-7)

A_YDAY Day of the year (1-366)

no clue on how to use them

They are not special variable but macros. If you read the help file you will see what they all do.

Here is a very basic example.

MsgBox(0,"OS Version", @OSVersion)
MsgBox(0,"OS Version", @ComputerName)
Edited by BigDod


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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