ayu_2403 Posted June 28, 2023 Posted June 28, 2023 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.
Developers Jos Posted June 28, 2023 Developers Posted June 28, 2023 Check the helpfile for StdinWrite() ? 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.Â
ayu_2403 Posted June 28, 2023 Author Posted June 28, 2023 (edited) 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 June 28, 2023 by ayu_2403
Developers Jos Posted June 28, 2023 Developers Posted June 28, 2023 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.😉 Somerset 1 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.Â
rsn Posted June 28, 2023 Posted June 28, 2023 @ayu_2403Â Maybe use the macro for the Process identifier (PID) of the current script? @AutoItPID Â
Developers Jos Posted June 28, 2023 Developers Posted June 28, 2023 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.Â
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now