Swimming_Bird Posted March 19, 2005 Posted March 19, 2005 Is there any way to run a file from %ProgramFiles% using autoit?I've searched the forum, the help file and looked through a bunch of scripts.
MHz Posted March 20, 2005 Posted March 20, 2005 @ProgramFilesDir macro in Autoit is just like %ProgramFiles% in DOS.
Swimming_Bird Posted March 20, 2005 Author Posted March 20, 2005 how could i use it with the Send("") and Run("") command?
MHz Posted March 20, 2005 Posted March 20, 2005 how could i use it with the Send("") and Run("") command?<{POST_SNAPBACK}>Run(@ProgramFilesDir & "\Autoit3\Autoit3.exe")WinWait('Run Script')Send("Swimming Bird.au3")
Swimming_Bird Posted March 20, 2005 Author Posted March 20, 2005 killer thanks for the help.right now i'm assuming that i could useSend(@ProgramFilesDir & "\directory\file.ext")
MHz Posted March 20, 2005 Posted March 20, 2005 killer thanks for the help.right now i'm assuming that i could useSend(@ProgramFilesDir & "\directory\file.ext")<{POST_SNAPBACK}>In the above example, it will be perform correct.
MHz Posted March 20, 2005 Posted March 20, 2005 Interacting with controls directly, is normally more reliable though.Example:Run(@ProgramFilesDir & "\Autoit3\Autoit3.exe")WinWait('Run Script')ControlSetText("Run Script", "", "Edit1", @ProgramFilesDir & "\Common Files")ControlClick("Run Script", "", "Button2")It is all in the Autoit Manual.
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