Jump to content

Input from command prompt


Recommended Posts

I have a script that runs some testcases I execute following "C:\Program Files (x86)\AutoIt3\autoit3_x64.exe" "C:\Users\opc\Desktop\AutoIt\Tests.au3" | more" command to execute the script from command prompt. But I want to also take input from command prompt like the id of the testcase to run to run that specific test. I have looked for solutions but they require converting .au3 files to exe. But i don't want to do that. Is there any method? Thanks in advance.

Link to comment
Share on other sites

3 hours ago, Jos said:

Check the helpfile for StdinWrite() ?

I checked it but requires process id and how will i get it? Also i do not use Run command. I run the code directly from command prompt.

Edited by ayu_2403
Link to comment
Share on other sites

  • Developers

Correct and i don't understand the issue with that, but maybe for starters you should define the whole scope of this script to better understanding and maybe better suggestions? Using command line input isn't very 2023.😉

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers
57 minutes ago, rsn said:

@ayu_2403 Maybe use the macro for the Process identifier (PID) of the current script?

@AutoItPID

 

@rsn not sure what the goal of this answer was but I am pretty sure this isn't contributing to the discussion, as the last statement the OP made was that there is no script that is shelling the process which needs the input. ;) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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