Keyword: playInteW - Run a program, wait

Keywords are used within scripts that enabled powerful features such as dynamic variables, clipboard manipulation, read/write files, mimic inputs and more.
User avatar
YiMeng
Author
Posts: 235
Joined: Sat Jul 18, 2020 10:58 pm
Location: NY
Contact:

Keyword: playInteW - Run a program, wait

Unread post by YiMeng »

Description
  • Execute a program and wait till the program terminates before proceed.
  • Has a 200ms delay at end of execution.

Parameters
  • x: The full file path for an executable for file of any extension; Use double-quote for file path with spaces
  • x: Allow the use of "@@" to specify relative path
  • y (optional): Any parameter for x; Use of double-quotes are allowed

Usage
  • playInteW "x" y
  • playInteW @@example.bat 10

Error
  • If x is not found, window will throw file not found error
  • If x is not supplied, line command is ignored

Alternative
  • Use SHELL keyword as alternative. Ex. “SHELL start /w “” programName.exe” instead.