boaster Posted October 5, 2005 Share Posted October 5, 2005 How would I emulate the Windows Run Mode in AutoIt? For example, if you type Window-R and then type "Winword", Microsoft Word will run regardless of the subdirectory in which it is installed. Also, Window-R followed by a URL will open a web site such as "www.autoscirpt.com". However, using Run("www.autoscript.com") or Run("winword") generates errors in Autoscript. Thanks Link to comment Share on other sites More sharing options...
this-is-me Posted October 5, 2005 Share Posted October 5, 2005 Look for a ShellExecute UDF on these forums. Who else would I be? Link to comment Share on other sites More sharing options...
KXM Posted October 5, 2005 Share Posted October 5, 2005 How would I emulate the Windows Run Mode in AutoIt? For example, if you type Window-R and then type "Winword", Microsoft Word will run regardless of the subdirectory in which it is installed. Also, Window-R followed by a URL will open a web site such as "www.autoscirpt.com".However, using Run("www.autoscript.com")orRun("winword")generates errors in Autoscript.Thanks$command = 'winword'_RunDOS($command) Link to comment Share on other sites More sharing options...
this-is-me Posted October 5, 2005 Share Posted October 5, 2005 @KXM, you forgot to mention that your method requires process.au3 to be included. Who else would I be? Link to comment Share on other sites More sharing options...
B3TA_SCR1PT3R Posted October 5, 2005 Share Posted October 5, 2005 $command = 'winword'_RunDOS($command)now your thinkin! [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right] Link to comment Share on other sites More sharing options...
jefhal Posted October 6, 2005 Share Posted October 6, 2005 Not to be confused with: #include <process.au3> $winword = 'command' _RunDOS($winword) ...which will set the Waybac machine to 1985... ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Link to comment Share on other sites More sharing options...
MHz Posted October 6, 2005 Share Posted October 6, 2005 (edited) Surely this is easier?$command = 'winword' RunWait(@ComSpec & ' /c ' & $command, '', @SW_HIDE)Also typing cmd in Scite4AutoIt3 and pressing the spacebar gives you thisRunWait(@ComSpec & ' /c |', '', @SW_HIDE)As above, the pipe character is where the caret starts from, so you just enter your command.Edit: "Start WinWord" seems to be needed to be used from Comspec. Edited October 6, 2005 by MHz Link to comment Share on other sites More sharing options...
jefhal Posted October 6, 2005 Share Posted October 6, 2005 Also typing cmd in Scite4AutoIt3 and pressing the spacebar gives you thisI just finished ready the manual for beta 75 and now you tell me I really should read the Scite help file? There goes what was left of my "life"... ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format Link to comment Share on other sites More sharing options...
GaryFrost Posted October 6, 2005 Share Posted October 6, 2005 I just finished ready the manual for beta 75 and now you tell me I really should read the Scite help file? There goes what was left of my "life"... heh, you need to play catch up then, cuz beta 80 is the latest SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
MHz Posted October 6, 2005 Share Posted October 6, 2005 (edited) I just finished ready the manual for beta 75 and now you tell me I really should read the Scite help file? There goes what was left of my "life"... Reading the Scite4AutoIt3 Manual is worth it. Abbreviations save so much effort and time that you are missing out big time if you are not using them. Edited October 6, 2005 by MHz Link to comment Share on other sites More sharing options...
jefhal Posted October 6, 2005 Share Posted October 6, 2005 heh, you need to play catch up then, cuz beta 80 is the latest i'm using 80, but the last time I had enough paper to print out the manual was back at 75. i guess i could print just the incremetals... (i like to read the manual on paper --- traditionalist...) ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format 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