Hello,
Just as WinGetTitle shows you the title to use for commands directed towards that window, is there a way to determine what name must be used to Run a particular application?
For example, suppose you want to launch a new instance of Google Chrome. Is there a command which, after opening Google Chrome manually, will display the correct term or wording to use so that it can be opened with an AHK script?
I tried the following:
Run, Google Chrome
Run, GoogleChrome
Run, Google Chrome.exe
Run, GoogleChrome.exe
but each time only got an error message:
Quote:
Error: Failed attempt to launch program or document
Specifically: The system cannot find the file specified
Finally, I discovered the correct one:
Run, Chrome.exe
but it would be helpful if there was a better method than trial and error. I still haven't figured out how to run Internet Explorer.
By the way, now that I have got the Chrome app figured out, is there an AHK command that will launch a new tab rather than an entirely new instance?
Thanks