Jmjl Posted February 13, 2004 Posted February 13, 2004 I have 2 questions... I would like to know how to: 1) Launch an exe from a specified directory. 2) Maximize a window. Thanks.
CyberSlug Posted February 13, 2004 Posted February 13, 2004 (edited) See the help file for Run and WinShowRun ( "filename" [, "workingdir" [, flag]] )Run("C:\some folder\another folder\program.exe")Run("program.exe", "C:\some folder\another folder\", @SW_MAXIMIZE)WinShow ( "title", "text", flag )WinShow("Untitled - Notepad", "", @SW_MAXIMIZE)Hope that helps Edited February 13, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Bartokv Posted February 13, 2004 Posted February 13, 2004 The Run function may be used to launch an application: Run("C:\MyStuff\SomeFile.exe")The Winshow function may be used to show/hide existing windows:WinShow("Untitled - Notepad", "", @SW_MINIMIZE)The Help file covers additional options which may be used for both of these functions.
Bartokv Posted February 13, 2004 Posted February 13, 2004 Ack, I see that CyberSlug beat me to the response.
Guest VanDike Posted December 13, 2004 Posted December 13, 2004 What to do if @SW_MAXIMIZE does not maximize the window in this script? RunWait ("explorer http://www.hotmail.com","", @SW_MAXIMIZE) IE always opens in Window mode...
CyberSlug Posted December 13, 2004 Posted December 13, 2004 What to do if @SW_MAXIMIZE does not maximize the window in this script?....IE always opens in Window mode...<{POST_SNAPBACK}>Explorer launches the window Internet Explorer. You need to @SW_MAXIMIZE the Internet Explorer window not "explorer." Just call IE directly:RunWait(@ProgramFilesDir & "\Internet Explorer\iexplore.exe " & "http://www.hotmail.com","", @SW_MAXIMIZE) Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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