Jump to content

Recommended Posts

Posted

Help please. I can't found information about this.

Problem:

I have a script which associated with extension (.dem). When i run .dem file then script reads command line parameters and calls a function.

How to send command line parameters in running script when i the second time run .dem file.

Sorry for my english.

Posted

not sure if I understand correctly, maybe this?

$Command = 'net user'; command line parameter
Run(@ComSpec & ' /k ' & $Command)
Posted (edited)

oMBRa

No, i'm need to send command line parameters in already running script and execute "exit".

Edited by hunt
Posted (edited)

oMBRa

I know this :D

It is difficult to me to write in English.

I tried again.

When i run script in first time with parameters then script must to work normal but when i run this script in second time with other parameters then i need to send this parameters in previous instance of running script for calling function in this previous running script.

Edited by hunt
Posted

Inverted

I tried to use the register for this purpose but would like to find a fast way at which it would be not necessary to check the register through certain time.

Posted

Help please. I can't found information about this.

Problem:

I have a script which associated with extension (.dem). When i run .dem file then script reads command line parameters and calls a function.

How to send command line parameters in running script when i the second time run .dem file.

Sorry for my english.

You could try to use StdinWrite() and StdoutRead(), but i'm not sure if you can get around having to run the second process as the firsts' STDOUT_CHILD.
Posted

Tvern

I thought about this but this way does not approach because when i run a file, associated with an autoit-script, then autoit-script process cannot be child.

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
×
×
  • Create New...