Sign in to follow this  
Followers 0
sykes

Using Vb Script With Autoit

4 posts in this topic

I think I have seen this posted in the past, but if you collect infomation with Autoit and store the information in variable, can you then use these variables in VB Script to write the info to a table in an access database? I know the valuse can be written to the database with VB Script, but am unsure if the variables collected will be recognized in VB. :huh2::D


We have enough youth. How about a fountain of SMART?

Share this post


Link to post
Share on other sites



Wow, that avatar is distracting...

You could always output the variables from AutoIT into an intermediate file to be read by VBA, then delete the intermediate file (ie, data.txt)

Share this post


Link to post
Share on other sites

This is a very interesting question...I write in VBscript and use compiled AutoIT to handle issues VBscript cannot.

I've called compiled AutoIT scripts and passed varibles via the $cmdline[x] feature, but I've never requested them back. I have used some compiledAutoIT scripts in a few VBscript subroutines; writing registry entries and later on in my VBscript calling the registry entries. This could save me a number lines of code in several scripts.

Share this post


Link to post
Share on other sites

The variables in VBscript and AutoItV3 are seperate and there is no convienent mechanism to send the values from one to the other.

You could create a file (.txt or .INI) in one language and read it in the other, that could allow for the transfer. Or you could pass the values of the variable in the command line, calling the other language. I am sure there are other ways we could do this as well, but I am not sure what they would be.


David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

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