Kagayaku Posted July 3, 2012 Share Posted July 3, 2012 Hello everyone. What is the correct form to use macros such as @ProgramFilesDir ? Is it Run("@ProgramFilesDir\Example.exe") or how? Link to comment Share on other sites More sharing options...
Venix Posted July 3, 2012 Share Posted July 3, 2012 Run(@ProgramFilesDir & "Example.exe") I beleive. Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted July 3, 2012 Share Posted July 3, 2012 Try it every way, it rarely will cause your computer to explode, and your dog to run away. Help>contents>autoit>using autoit>running scripts Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
Kagayaku Posted July 3, 2012 Author Share Posted July 3, 2012 Just after I've posted this, I've used "&" and it worked out just fine, but sankyu you for helping me anyway. Mister "DicatoroftheUSA", the help page "reference macros" doesn't contain any example code, and yes I've tried it in different ways until I got it, but at first I was thinking that it will be easier if I ask for help on the forums, thank you anyway. Link to comment Share on other sites More sharing options...
DicatoroftheUSA Posted July 3, 2012 Share Posted July 3, 2012 Good thing I didn't point out that part of the helpfile. Did you go to the part of the help file I pointed out, specifically "running scripts". You will save yourself a lot of time if you familiarize yourself with help-file. Statism is violence, Taxation is theft. Autoit Wiki 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