VenomIT Posted June 18, 2010 Share Posted June 18, 2010 Hi ti all i have got most of the varables that autoit use. Example Now can some 1 please tell me whats the varable for "All Users" user documents and settings ?5 - Macro_Varubales.rtf Link to comment Share on other sites More sharing options...
l3ill Posted June 18, 2010 Share Posted June 18, 2010 I think your looking for "Macro's"...specifically directory macros. that's probably why you couldn't find it in the help file ;-) My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
UEZ Posted June 18, 2010 Share Posted June 18, 2010 Search in helpfile for "Macro Reference - Directory". BR, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
MHz Posted June 19, 2010 Share Posted June 19, 2010 So you want something like %ALLUSERSPROFILE% that the OS may offer? I do not see a macro for that one. To know available Environmental Variables for your OS, then just type Set and press Enter at a command prompt to display all available Environmental Variables. To use an Environmental Variable in an AutoIt script, you can use EnvGet() to evaluate the string representation of the Environmental Variable name and get the value. Example: Global Const $ALLUSERSPROFILE = EnvGet('ALLUSERSPROFILE') MsgBox(0x40000, 'ALLUSERSPROFILE', $ALLUSERSPROFILE) Link to comment Share on other sites More sharing options...
PsaltyDS Posted June 19, 2010 Share Posted June 19, 2010 So you want something like %ALLUSERSPROFILE% that the OS may offer? I do not see a macro for that one. Yet another way to do it: ; Default setting Opt("ExpandEnvStrings", 0) ConsoleWrite("All Users dir = %ALLUSERSPROFILE%" & @LF) ; How to get the environment variable with the default setting ConsoleWrite("All Users dir = " & EnvGet("ALLUSERSPROFILE") & @LF & @LF) ; Changed setting Opt("ExpandEnvStrings", 1) ConsoleWrite("All Users dir = %ALLUSERSPROFILE%" & @LF) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
VenomIT Posted June 19, 2010 Author Share Posted June 19, 2010 Thanx for the Help :-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now