Sign in to follow this  
Followers 0
Vitamin

Receiving input in scripts from outside programs

4 posts in this topic

Hi,

The company I work for uses Selenium to automate our websites for quality assurance. The underlying architecture is Java. Is there any way to send flags (I used the forum search feature, came up empty handed) to an AutoIt script like argc, argv from C when invoking the script?

An example after the Java program runs I want to invoke the AutoIt EXE script with flags like

test.au3 --results=pass --runtime=300

where the variables "results", "runtime" would have "pass" and "300" respectively.

Thanks in advance for your time.

Share this post


Link to post
Share on other sites



I found this:

but I want it to be the other way around - accessing AutoIt from Java

I found the dll section in the help file but i'm having trouble interpreting this for JNI and the bridge. All the examples seems to be for for C/C++

Share this post


Link to post
Share on other sites

Command Line Parameters are what you are looking for. There is a page about them in the help file.

oh baby. thanks for your reply. for those in the future googling:

http://www.autoitscript.com/autoit3/docs/intro/running.htm

Share this post


Link to post
Share on other sites

You can also hook into standard input and output streams in both directions from both the Java side using sockets and the AutoIt side using TCPConnect. This way your two programs (Java and AutoIt) can actually converse.

Share this post


Link to post
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
Sign in to follow this  
Followers 0