Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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

Posted

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.

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