Jump to content

Emulating Windows "Run" mode


Recommended Posts

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

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

$command = 'winword'

_RunDOS($command)

Link to comment
Share on other sites

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

Surely this is easier?

$command = 'winword'
RunWait(@ComSpec & ' /c ' & $command, '', @SW_HIDE)

Also typing cmd in Scite4AutoIt3 and pressing the spacebar gives you this

RunWait(@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 by MHz
Link to comment
Share on other sites

Also typing cmd in Scite4AutoIt3 and pressing the spacebar gives you this

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"...

;)

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Link to comment
Share on other sites

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"...

:P

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

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. :P Edited by MHz
Link to comment
Share on other sites

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...) :P
...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...