1.

Solve : Send commands to open application from command prompt?

Answer»
I was hoping someone might be able to help me with sending commands to the applications I just opened.
I know each application is different perhaps you could teach me how to find these commands?

I want to EVENTUALLY be able to call a single batch file and launch a game or application (let's use STARCRAFT for an example) then log in, and start a game and run commands to play the game.

I am under the understanding this is POSSIBLE with MS-DOS.
However, in the meantime perhaps we should just start with this example.

I would like to launch VS2015 Command Prompt and MAKE a call to unlock a file. I cannot seem to figure out how to make a call to the VS Developer Command Prompt after it is opened. Can you please help me with this please



echo off
set "pathA=C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2015\Visual Studio Tools\"
set path=%path%;%pathA%
start /max  "Developer Command Prompt for VS2015".lnk  cd "C:\Program Files (x86)\Microsoft Visual Studio 14.0\"
echo. "C:\temp\Test.txt"


Quote from: Skylark on September 14, 2017, 06:24:36 PM
I am under the understanding this is possible with MS-DOS.
No and very doubtful you are using MS-DOS.  A batch file cannot INTERACT with Graphical User Interfaces.  If you need to do that try using Vbscript with Sendkeys method or use a program like AutoIt or AutoHotkey.Thank you for saving me a boatload of time. 
I appreciate your help, I will start learning vb now.


Discussion

No Comment Found